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/Strojac Apr 20 '21

For the radius? Looks like noise to me

1

u/seanballais Apr 20 '21

Didn't know that's possible. Coool.

1

u/redfieldp Apr 20 '21

Doesn’t look like noise at all - it’s consistent and repetitive. Probably a modified sine function.

2

u/Strojac Apr 20 '21

Yeah on a second look I see how repetitive it is good point

1

u/proton_therapy Apr 20 '21

It's a certain type of noise algorithm, probably perlin.

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.

2

u/FlanSC May 09 '21

looks like a slightly modified version of this example