I was wondering if anyone has a quick and easy way to convert a RGB value into the C2 format.
Usually I get 3 values ranging from 0-256 when I am testing for color values.
In C2 I am using the setColor and setTint effects which have a RGB system that ranges from 0-100.
Eg. Neutrail gray RGB is 128,128,128... In C2 it is 50,50,50.
Does anyone have a slick and easy way to convert a Construct 2 ,0-100 value into a RGB, 0-256 value?
Thanks in Advanced.
If all you need is to map a number from range 0-255 to range 0-100, then just divide it by 2.55. To map it the other way, multiply it by 2.55.
Develop games in your browser. Powerful, performant & highly capable.
the Martin, Than you so much!
I had a feeling it was something simple. This will really help me out :)