Hi MrCode,

mathematically everything is ok.

But (50/255) is always = 0 because they are integers and will be rounded (0.19 = 0)

If you write (50.0/255.0) then it should work.

Regards
dinosaur