Nuclide
Software Development Kit for id Tech
colors.h File Reference

Go to the source code of this file.

Functions

string Colors_RGB8_to_HEX (vector color)
 Takes a normalized color vector and returns the hexadecimal equivalent for "funstrings". More...
 
string Colors_RGB255_to_HEX (vector color)
 Takes a 0-255 based color vector and returns the hexadecimal equivalent for "funstrings". More...
 

Function Documentation

◆ Colors_RGB255_to_HEX()

string Colors_RGB255_to_HEX ( vector  color)

Takes a 0-255 based color vector and returns the hexadecimal equivalent for "funstrings".

E.g. '255 0 0' becomes "^xF00".

Parameters
color0-255 based color value to convert.
Returns
Returns the funstring equivalent.

◆ Colors_RGB8_to_HEX()

string Colors_RGB8_to_HEX ( vector  color)

Takes a normalized color vector and returns the hexadecimal equivalent for "funstrings".

E.g. '1.0 0.0 0.0' becomes "^xF00".

Parameters
colorNormalized color value to convert.
Returns
Returns the funstring equivalent.