HP Prime - Drawing a circle from a program - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: HP Prime - Drawing a circle from a program (/thread-255057.html) HP Prime - Drawing a circle from a program - Jean-Michel - 11-06-2013 Hello I can draw a line from a program: line({0,0},{5,5}); But I cannot find the correct syntax to draw a circle by giving coordinates of the center and the radius. I tried all kind of syntaxes I could imagine with no success. Manual did not help me more. Help much appreciated. Kind regards. Re: HP Prime - Drawing a circle from a program - Thomas Chrapkiewicz - 11-06-2013 ARC(G,x,y,r,a1,a2,c) or ARC_P (G,x,y,r,a1,a2,c) Page 538 in Edition 1, July 2013, User Guide. TomC Re: HP Prime - Drawing a circle from a program - Eddie W. Shore - 11-06-2013 Note: radius (r) is always in pixels, regardless of whether ARC or ARC_P is used. So if you are using the Cartesian version of ARC, convert the radius first. I recommend just using ARC_P and work with pixels. I believe the conversion formulas are: X point to pixel: integer((x - Xmin)/(Xmax - Xmin)) * 318 Y point to pixel: integer((y - Ymax)/(Ymin -Ymax)) * 218 Also you can use the C>PX command in the catalog. C>PX(x,y) returns the list {x pixel, y pixel}. Re: HP Prime - Drawing a circle from a program - Jean-Michel - 11-07-2013 Bonjour Thomas Why does the command "circle()" not be used? It was the command I was trying to use. I am confused. Many thanks for you answer. Kind regards. Re: HP Prime - Drawing a circle from a program - Mic - 11-07-2013 elle n'existe pas, tu dois utiliser ARC_P Re: HP Prime - Drawing a circle from a program - Tim Wessman - 11-07-2013 Because "circle" implies that you are drawing a complete circle exclusively. ARC can draw curved arcs between 0