August 29, 2025

Tiny Code Christmas - Day 8

Link to the eight day

On day 8, we build a multicolor tentacle effect.
We started with drawing several circles in a ellipsis.
The circles were drawn with the `circ` function.
Each circle x,y coordinates dependent on its index and the current time.
The size changes also over time.

To get the "trail" of the tentacles, we copy the color of the previous frame from one column to the right.
This was done using the `pix` function which can both set and get the color of a specific pixel.

In my version, the copying of the background frames and the building of the trails takes a few frames in which the animations look a bit ugly.  

Link to my solutions

Here is the resulting image: 


 

No comments:

Post a Comment