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.

See also