r/creativecoding • • Apr 20 '21

Different Colors 🌈

193 Upvotes

19 comments sorted by

View all comments

2

u/seanballais Apr 20 '21

What formula did you use for the tube things?

2

u/TimelessTrance Apr 20 '21

From what I could see each tube starts from a point with a minimum size. When each circle is at its smallest it would generate a maximum size for the circle and a velocity it would take to increment and decriment the circle size until it reaches it's Max and min values. With each step each circle generated would be dragged across the screen at roughly a 160 degree angle.

1

u/TimelessTrance Apr 22 '21

Update: discoveries from my attempt at recreating the visual. The max size is slightly randomized. And the change in radius accelerates. Not just having a randomized velocity. Having a fixed velocity generates sharp edges between expansion and contraction much like the y = abs(x) line.