floatToByte
Converts a 'float' color component in the range of 0 to 1.0 into a 'byte' color component in the range of 0 to 255.
Return
The converted number.
Parameters
number
The number to be converted.
Converts a 'float' color component in the range of 0 to 1.0 into a 'byte' color component in the range of 0 to 255.
The converted number.
The number to be converted.