I notice that the colour conversion functions:
Seem to operate by returning the overall Integer as a negative, with 255,255,255 being equivalent to -1
Whilst this isn't so much a problem itself, it does have a side effect where the BLUE component is in fact the first and the RED component is the last one returned.
It's not too hard to alter in the Decls, switching the Red and the Blue function names :)
BP_GetIntRed%( IntColor ) : "GetIntRed@4" ; returns red component of an integer BP_GetIntGreen%( IntColor ) : "GetIntGreen@4" ; returns green component of an integer BP_GetIntBlue%( IntColor ) : "GetIntBlue@4" ; returns blue component of an integer BP_GetIntAlpha%( IntColor ) : "GetIntAlpha@4" ; returns alpha component of an integer BP_GetRGBInt%( r,g,b ) : "GetRGBInt@12" ; converts r,g,b to integer BP_GetRGBAInt%( r,g,b,a ) : "GetRGBAInt@16" ; converts r,g,b,a To integer
Seem to operate by returning the overall Integer as a negative, with 255,255,255 being equivalent to -1
Whilst this isn't so much a problem itself, it does have a side effect where the BLUE component is in fact the first and the RED component is the last one returned.
It's not too hard to alter in the Decls, switching the Red and the Blue function names :)