Created
December 1, 2011 22:07
-
-
Save zeffii/1420241 to your computer and use it in GitHub Desktop.
does not work
This file contains hidden or 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
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