Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2017 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/052f2241067367bf1afc383d7316361c to your computer and use it in GitHub Desktop.
Save anonymous/052f2241067367bf1afc383d7316361c to your computer and use it in GitHub Desktop.
void atom() {
translate(width/2, height/2); // changes the location of 0,0, or origin
for (int x = 0; x<50; x++) { // does this 50 times.. change to get different effect
rotate(radians(100)); // rotates the canvas by n degrees and converts to radians to get different effects
ellipse(10, 0+(x*4), 100, 400); //draws an ellipse
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment