123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|687|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> Colour Fading

Tue, 25 Jul 2017, 16:01
spinal
does anyone have a function lying around to smooth fade between 2 rgb values? I;m feeling too lay to think right now.

-=-=-
Check out my excellent homepage!
Tue, 25 Jul 2017, 16:01
Jayenkai
Lazy Spinal!!!

BlitzMax code



-=-=-
''Load, Next List!''
Wed, 26 Jul 2017, 02:00
Krakatomato
Not that it matters much, but you can replace:



with:



No need to use -Abs or Abs just always negate spd.
Wed, 26 Jul 2017, 02:06
Jayenkai
Habit..
I'm thinking of random AI turning itself around at random intervals, thus occasionally heading out-of-bounds of the array!!
I have Abs's and limit checks ingrained in my code!!

-=-=-
''Load, Next List!''
Wed, 26 Jul 2017, 12:44
spinal
If anyone is curious, it was for this...
https://twitter.com/Spinal_Cord/status/890280875568529413

-=-=-
Check out my excellent homepage!
Wed, 26 Jul 2017, 12:55
Jayenkai
\o/yeay\o/

You could easily have a whole rainbow, btw..


-=-=-
''Load, Next List!''
Wed, 26 Jul 2017, 13:02
spinal
Whole rainbow eh.... I'll look into that when I next open it up. I need to lower the resistance on the rgb led, it's a bit dim.

-=-=-
Check out my excellent homepage!