First time creative coding!
First time creative coding!
van Yu Jing Ng @yj2511
- 46
- 1
- 0
Introduction
Modified some of the Unit coursework with a bit of variation.



Supplies
Sublime Text, Canvas Sketch, Google Chrome on a Macbook
M&Ms
I added some "const random" and "const palette" with HEX codes to define 5 colours and use them in a random selection for my agents. However, I got stuck on how I wanted the behaviour of the agents & lines to be, as I am truly a beginner at coding. So I used a bit of help from Gemini to prompt the outcome I wanted: which was to make it so each agent would start with an initial colour, and then when a new line is connected to them, the agent's colour changes without the new colour being a repeated colour of the previous original colour (all while keeping the original distance velocity structure).
I think coding as a newbie is generally a bit more difficult, but this has been a very fun course to see the codes immediately displayed out on the browser file due to canvas-sketch.

0 opmerkingen
Log in of doe gratis mee om te reageren