Created
September 19, 2011 18:36
-
-
Save cfaulkingham/1227215 to your computer and use it in GitHub Desktop.
Drawbot Visual point viewer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* used to visualize the points for drawbot in processing. | |
* Colin Faulkingham | |
* http://processing.org/ | |
* replace your moveTo()'s with ellipse() | |
*/ | |
void setup() { | |
size(800, 400); | |
noStroke(); | |
} | |
void draw() | |
{ | |
int w =100; | |
int h = 100; | |
//ellipse(x, y, width, height) | |
ellipse(w/2-40, h,5,5); | |
ellipse(w/2-40,h-80,5,5); | |
ellipse(w/2+40, h-80,5,5); | |
ellipse(w/2+40, h,5,5); | |
ellipse(w/2, h,5,5); | |
fill(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment