Skip to content

Instantly share code, notes, and snippets.

@cfaulkingham
Created September 19, 2011 18:36
Show Gist options
  • Save cfaulkingham/1227215 to your computer and use it in GitHub Desktop.
Save cfaulkingham/1227215 to your computer and use it in GitHub Desktop.
Drawbot Visual point viewer
/**
* 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