tweening colours over time

BlitzMax Forums/BlitzMax Programming/tweening colours over time

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Tween the color difference in the 3 components with the actual value of [0..1]

for example
c1: 200,20,50
c2: 100,200,160

=> dif: -100,180,110
act color = c1 + tween * dif