P2D/API

From Robowiki
< P2D
Revision as of 07:47, 23 May 2009 by J Litewski (talk | contribs) (Partial API (Need to complete in the morning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

P2D API

drawLine(Point2D.Double p1, Point2D.Double p2, Color color);

Draws a line using the x and y coordinates, in pixels, supplied in p1 and p2. p1.x and p1.y are the starting x/y coordinates and p2.x and p2.y are the ending x/y coordinates.

drawCircle(Point2D.Double center, double radius, Color color);

Draws a circle with the the size specified by the radius variable with the center of the circle at the x/y coordinates supplied by the center variable.