Coding Challenge #1: Starfield in Processing

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=17WoOqgXsRM



Duration: 13:54
1,268,348 views
27,480


This is the first in a new series of videos. In this video I attempt to program a "star field" or "warp speed" visualization in Processing. Code: https://thecodingtrain.com/challenges/1-starfield

πŸ•ΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/1wLHIck3T

πŸŽ₯ Next video: https://youtu.be/LG8ZK-rRkXo?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸ”΄ Coding Train Live 30: https://youtu.be/JljMBn69fZM?t=760s

References:
🌟 Inspiration: https://cs.brynmawr.edu/gxk2013/examples/transformations/starfield/

Related Coding Challenges:
πŸš‚ #27 Fireworks: https://youtu.be/CKeyIbT3vXI
πŸš‚ #46 Asteroids: https://youtu.be/hacZU523FyM

Timestamps:
0:00 Welcome to a 10 minute coding challenge
0:59 Let's create a star class
2:10 Make an array of stars
3:17 Write the update() and show() functions
3:43 Make the stars move!
5:37 Translate to the middle of the canvas
6:17 Add more stars
7:40 Start to tweak size and speed of stars
9:02 Add trails to stars
10:31 Bonus two minutes!

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

πŸš‚ Website: http://thecodingtrain.com/
πŸ‘Ύ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: https://github.com/CodingTrain
πŸ’¬ Discord: https://discord.gg/hPuGy2g
πŸ’– Membership: http://youtube.com/thecodingtrain/join
πŸ›’ Store: https://standard.tv/codingtrain
πŸ–‹οΈ Twitter: https://twitter.com/thecodingtrain
πŸ“Έ Instagram: https://www.instagram.com/the.coding.train/

πŸŽ₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— 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-of-Conduct

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

#space #processing







Tags:
Java
Processing
Starfield
star field
star field simulation
star field visualization
warp speed
challenge
how to
tutorial
processing tutorial
processing 3
creative coding
coding
p5.js
coding challenge
programming challenge
p5js
javascript
coding challenge for stars
javascript starfield