Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created December 1, 2011 22:07
Show Gist options
  • Save zeffii/1420241 to your computer and use it in GitHub Desktop.
Save zeffii/1420241 to your computer and use it in GitHub Desktop.
does not work
size(400,400);
background(0);
noFill();
stroke(255);
for (int i = 90; i < 270; i++){
PVector coordinate = getVectorFromDegree(i);
point(coordinate.x+200, coordinate.y+200);
}
PVector getVectorFromDegree(int i){
PVector coordinate = new PVector(cos(radians(i))*150, sin(radians(i))*150);
return coordinate;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment