P2D/API
< P2D
Jump to navigation
Jump to search
Revision as of 06:47, 23 May 2009 by J Litewski (talk | contribs) (Partial API (Need to complete in the morning)
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
andp2
.p1.x
andp1.y
are the starting x/y coordinates andp2.x
andp2.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.