ManiaScript Trackmania 2020  30/10/2024
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. More...
 
Text RgbToHex6 (Vec3 _Rrggbb)
 Returns the Hexa6 corresponding to the RGB given. More...
 
Vec3 Hex3ToRgb (Text _Text)
 Returns the RGB color corresponding to Hex3. More...
 
Vec3 Hex6ToRgb (Text _Text)
 Returns the RGB color corresponding to Hex6. More...
 
Vec3 HexToRgb (Text _Text)
 Returns the RGB color corresponding to Hex. More...
 

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.

◆ HsvToRgb()

Vec3 ColorLib::HsvToRgb ( Vec3  _Hsv)

◆ RgbToHex3()

Text ColorLib::RgbToHex3 ( Vec3  _Rgb)

Returns the Hexa3 corresponding to the RGB given.

◆ RgbToHex6()

Text ColorLib::RgbToHex6 ( Vec3  _Rrggbb)

Returns the Hexa6 corresponding to the RGB given.

◆ RgbToHsv()

Vec3 ColorLib::RgbToHsv ( Vec3  _Rgb)