Difference between revisions of "P2D"

From Robowiki
Jump to navigation Jump to search
m (remove first, unnessary headline)
m (minor changes)
Line 1: Line 1:
([[P2D/source|Source]])
+
([[P2D/source|Source]])<br>
P2D, short for Point2D, is a helper class that makes drawing to the screen easier. This is taken from {{OldWiki|David_Alves/DrawingBot}} with some slight changes and syntax realignments.
+
P2D, short for Point2D, is a helper class that makes drawing to the screen easier. This is taken from {{OldWiki|David_Alves/DrawingBot}} with some slight changes and syntax realignments currently.
  
 
==How to Use==
 
==How to Use==
Line 12: Line 12:
  
 
==Modifications==
 
==Modifications==
If you have any modifications to the script, like new features or the such, can be done on the [[P2D/source|Source Page]]. I will check the page every once in a while and update the download .jar for easier installs.
+
If you have any modifications to the script, like new features or the such, can be done on the [[P2D/source|Source Page]].
==Where to get it==
 
I'm looking for a site to host it on. When I do find a site, I'll post the link here.
 

Revision as of 06:59, 23 May 2009

(Source)
P2D, short for Point2D, is a helper class that makes drawing to the screen easier. This is taken from David_Alves/DrawingBot with some slight changes and syntax realignments currently.

How to Use

Currently, this script helps draw Circles, Dots, Lines, and Text to the screen. To see these, you need to open your bot's debug console and click the 'Paint' button.

Functions

You can see more details on the functions on the API Page.

  • drawLine(Point2D.Double p1, Point2D.Double p2, Color color)
  • drawCircle(Point2D.Double center, double radius, Color color)
  • drawPoint(Point2D.Double p1, Color color)
  • 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.