-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|650|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Variables


 
mike_g
Created : 23 August 2007
Edited : 23 August 2007
Language : Blitz

Fast Colour Blending Function



Heres a fast colour blending function using some techniques I was shown over on the DBF boards. I thought I would share it as its something I find it useful. It avoids floating point maths and RGB colour conversions.
|edit| Oh, and the alpha component should be a number between 0 and 255 |edit|


And heres a test prog for it:

 

Comments


Friday, 24 August 2007, 00:21
shroom_monk
That looks pretty useful. I could use that in future...