I got the parameters reversed for the ternary parts - they should look like this:
Code: Select all
r = r > 255 and 255 or r
g = g > 255 and 255 or g
b = b > 255 and 255 or b
Code: Select all
r = r > 255 and 255 or r
g = g > 255 and 255 or g
b = b > 255 and 255 or b
You can get something to oscillate on and off with a sine or cosine function.TylerKinkade wrote:This is going to sound kind of weird but why are you using sine and cosine functions? What is the purpose? What does it benefit. And what are the uses. That is something that has been bothering me for a long time now.
Whenever I see your avatar, I want to kiss you on your mouth. Then I feel awkward, because you're not Kate Micucci.Jasoco wrote:Wallpaper, skyscrapers, funny papers, patterns!
Evergreens, nouvelle cuisine, human beings, patterns!
Garden rakes, wedding cakes, rattlesnakes, patterns!
Golden wheat, little feet, my heartbeat...
I gotta stop...
Patterns! Patterns! Patterns! Patterns!
Sorry.. that's what came to mind when you said that.
Users browsing this forum: No registered users and 4 guests