Trackmania ManiaScript Reference 2024.9.17.1117
A ManiaScript Reference of the new Trackmania.
Loading...
Searching...
No Matches
ColorLib Namespace Reference

Standard color manipulation functions. More...

Functions

Vec3 HsvToRgb (Vec3 _Hsv)
 
Vec3 RgbToHsv (Vec3 _Rgb)
 
Text RgbToHex3 (Vec3 _Rgb)
 Returns the Hexa3 corresponding to the RGB given.
 
Text RgbToHex6 (Vec3 _Rrggbb)
 Returns the Hexa6 corresponding to the RGB given.
 
Vec3 Hex3ToRgb (Text _Text)
 Returns the RGB color corresponding to Hex3.
 
Vec3 Hex6ToRgb (Text _Text)
 Returns the RGB color corresponding to Hex6.
 
Vec3 HexToRgb (Text _Text)
 Returns the RGB color corresponding to Hex.
 

Detailed Description

Standard color manipulation functions.

Function Documentation

◆ Hex3ToRgb()

Vec3 ColorLib::Hex3ToRgb ( Text _Text)

Returns the RGB color corresponding to Hex3.

Returns an empty Vec3 if an invalid Text is given.

Parameters
_Text: The text you want to convert into a RGB color.

◆ Hex6ToRgb()

Vec3 ColorLib::Hex6ToRgb ( Text _Text)

Returns the RGB color corresponding to Hex6.

Returns an empty Vec3 if an invalid Text is given.

Parameters
_Text: The text you want to convert into a RGB color.

◆ HexToRgb()

Vec3 ColorLib::HexToRgb ( Text _Text)

Returns the RGB color corresponding to Hex.

Returns an empty Vec3 if an invalid Text is given.

Parameters
_Text: The text you want to convert into a RGB color.