Happy New Year 2023 !!!


2023, Jan 01 edited
tags: animation p5js coding 


The animation below is based on two Coding Train Coding Challenges : #1 "Starfield in Processing" and #59 "Steering Behaviors".

  • The first coding challenge "Starfield in Processing" is programmed in Processing coding language but is quite easy to port to p5.js. It consists of building a starfield. It's based around an object class "Star" that generates stars that appear randomly on the canvas and are subsequently updated to appear moving towards the viewer.

  • The 2nd one "Steering Behaviors" is coded directly in p5js. The aim is to transform a text in series of data points that can be managed as moving particles! This is done thanks to a p5js function called textToPoints.

Check what happens when you move your mouse over the text!

The fuel of coding inspiration:music, travel, photography and whatever drives creativity to code.

You might also like