Azenris
Member
Hi !
colour_get_hue, colour_get_saturation, colour_get_value seem to be returning float numbers.
In the manual it says int. I would expect int 0-255. Is there a reason for it to be a float?
The colour_get_red, colour_get_green, colour_get_blue seem to return ints
As an example I have a col = 7220112 and colour_get_hue returns 226.806945800781.
I mean I will probably just write a wrapper to do it for me, just curious if that had an intended reason or was a bug.
colour_get_hue, colour_get_saturation, colour_get_value seem to be returning float numbers.
In the manual it says int. I would expect int 0-255. Is there a reason for it to be a float?
The colour_get_red, colour_get_green, colour_get_blue seem to return ints
As an example I have a col = 7220112 and colour_get_hue returns 226.806945800781.
Code:
var _col = make_color_hsv( 227, 178, 144 );
var _hue = colour_get_hue( _col );
show_debug_message( "_hue = " + string( _hue ) );
Code:
226.806945800781