Difference between revisions of "P2D"
Jump to navigation
Jump to search
J Litewski (talk | contribs) (Updated page) |
J Litewski (talk | contribs) m (minor change) |
||
Line 4: | Line 4: | ||
(A detailed description is needed) | (A detailed description is needed) | ||
− | + | ==Functions== | |
You can see more details on the functions on the [[P2D/API|API Page]]. The <code>color</code> variable is optional in all the listed functions. If it's not supplied, it'll default to <code>Color.WHITE</code>. | You can see more details on the functions on the [[P2D/API|API Page]]. The <code>color</code> variable is optional in all the listed functions. If it's not supplied, it'll default to <code>Color.WHITE</code>. | ||
* <code>P2D.drawLine(Point2D.Double p1, Point2D.Double p2, Color color)</code> | * <code>P2D.drawLine(Point2D.Double p1, Point2D.Double p2, Color color)</code> |
Latest revision as of 22:22, 25 May 2009
P2D, short for Point2D, is a helper class that makes drawing to the screen easier. This is taken from David_Alves/DrawingBot with some heavy modifications by Nat. It can currently draw Circles, Lines, Dots, and Text.
How to Use
(A detailed description is needed)
Functions
You can see more details on the functions on the API Page. The color
variable is optional in all the listed functions. If it's not supplied, it'll default to Color.WHITE
.
P2D.drawLine(Point2D.Double p1, Point2D.Double p2, Color color)
P2D.drawCircle(Point2D.Double center, double radius, Color color)
P2D.drawPoint(Point2D.Double p1, Color color)
P2D.drawText(String text, double x, double y, Color color)
Modifications
If you have any modifications to the script, like new features or the such, can be done on the Source Page.