Last active
December 2, 2017 19:11
-
-
Save BlogBlocks/29f9c2a9d14ba67f2464c9c1cacaff71 to your computer and use it in GitHub Desktop.
Processing solarsys SUN
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
Planet sun; | |
void setup() { size(600, 600); | |
sun = new Planet(50, 0, 0); | |
sun.spawnMoons(5, 1); | |
} | |
void draw() { | |
background(0); | |
translate(width/2, height/2); | |
sun.show(); | |
sun.orbit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment