HOME | DD
Published: 2012-10-20 16:22:34 +0000 UTC; Views: 5746; Favourites: 42; Downloads: 40
Redirect to original
Description
A new RGB formula I just came up with (generated in realtime):R = sin( abs(i * 0.01 + sin(x*0.1) * 10) * cos( sin(dist / 10000 + i * 0.01) + a * 3 + i * 0.005 ) ) * 127 + 127
G = cos( sin( dist / 10000 + i * 0.01 ) + a * 3 + i * 0.0001 ) * 127 + 127
B = min( max(0, (R - G)), 255)
Where:
x = x-coordinate of pixel
y = y-coordinate of pixel
dist = distance to centre of stage in pixels
a = angle between pixel and centre of stage (in radians)
i = sin(timer) * 3000
Related content
Comments: 15
willmh93 In reply to Glowandstar [2012-10-23 21:49:31 +0000 UTC]
There's nothing to stop you learning.
π: 0 β©: 1
Glowandstar In reply to willmh93 [2012-10-24 21:31:58 +0000 UTC]
in this case, its telling a fish to climb a tree, i swim lad i can't climb a tree like land creatures.
but i've flopped around the edges of the bark, fun but painful, being a fish is hard:<
π: 0 β©: 2
Thumaszz In reply to Glowandstar [2012-11-08 23:32:33 +0000 UTC]
Well you should give it a try, these types of awesome animations often don't come from hard thinking and reason, a lot of the time when you create stuff like this you are just experimenting with formula's and code. So I guess that it's the fear of failing that stops you from doing it, since it's not that hard, and certainly not impossible.
π: 0 β©: 1
Glowandstar In reply to Thumaszz [2012-11-09 11:29:13 +0000 UTC]
how do i like a comment? DA should have that.
π: 0 β©: 0
willmh93 In reply to Glowandstar [2012-10-31 14:18:37 +0000 UTC]
I was a fish once, you'd be surprised by what a fish is capable of when you put your mind to it!
π: 0 β©: 0