Coding Challenge #7: Solar System in Processing - Part 1 (2D)

Published: 28 April 2016
on channel: The Coding Train
247,547
3.1k

In this viewer submitted coding challenge, I make a 2D Solar System Generator in Processing. Code: https://thecodingtrain.com/challenges...

🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...

🎥 Previous video:    • Coding Challenge #6: Mitosis Simulation wi...  
🎥 Next video:    • Coding Challenge #8: Solar System in Proce...  
🎥 All videos:    • Coding Challenges  

Videos:
🚂 Gravitational Attraction: https://thecodingtrain.com/tracks/the...
🔴 Coding Train Live 34:    • Coding Train Live 34: Git and GitHub Tutor...  

Related Coding Challenges:
🚂 #8 Solar System (3D):    • Coding Challenge #8: Solar System in Proce...  
🚂 #9 Solar System (3D) with textures:    • Coding Challenge #9: Solar System in Proce...  
🚂 #61 Fractal Spirograph:    • Coding Challenge #61: Fractal Spirograph  
🚂 #144 2D Black Hole Visualization:    • Coding Challenge 144: 2D Black Hole Visual...  

Timestamps:
00:00 Introduction
01:39 Planet class
02:33 Polar Coordinates
04:01 Draw the body
05:42 Create the sun
06:54 Creating a tree-like structure
08:05 Create the planets
11:06 Error! Recursive null check
13:39 translate and rotate by distance and angle
15:06 Resetting transformations
17:21 Setting the angle (Error!)
20:50 Rotating the planets
24:11 Recursively create children planets

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://thecodingtrain.com/discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter:   / thecodingtrain  
📸 Instagram:   / the.coding.train  

🎥 Coding Challenges:    • Coding Challenges  
🎥 Intro to Programming:    • Start learning here!  

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-o...

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...

#solarsystem #transformations #processing


On this page of the site you can watch the video online Coding Challenge #7: Solar System in Processing - Part 1 (2D) with a duration of hours minute second in good quality, which was uploaded by the user The Coding Train 28 April 2016, share the link with friends and acquaintances, this video has already been watched 247,547 times on youtube and it was liked by 3.1 thousand viewers. Enjoy your viewing!