August 11, 2025

Tiny Code Christmas - Day 4

Link to the fourth day

On day 4, we created an animated plasma image rounded rectangles changing colors.

We again used two loop for set every pixel individually.
The rounded rectangles are created by `sin(x+y) + sin(x-y)` and the current time was added for the animation.
Finally mod 12 was used to stay in the first 12 colors.

Link to my solutions

Here is the resulting image: 



No comments:

Post a Comment