WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. Cubios::Math::Color
Mission NodeSDK 6.1C++gfx engine

Cubios::Math::Color

Cubios::Math::Color Constructors Color Constructs RGBA color object Synopsis Color() Arguments r value of the red component g value of the green component b ...

API / SDK 6.1 / C++ / gfx engine

Cubios::Math::Color

Constructors

Color

Constructs RGBA color object

Synopsis

Cubios::Math::Color
CPP
1Color()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • r - value of the red component
  • g - value of the green component
  • b - value of the blue component

Synopsis

Cubios::Math::Color
CPP
1Color(uint8_t r, uint8_t g, uint32_t b)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • r - value of the red component
  • g - value of the green component
  • b - value of the blue component
  • a - value of the alpha component

Synopsis

Cubios::Math::Color
CPP
1Color(uint8_t r, uint8_t g, uint32_t b, uint8_t a)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • v - color value in ARGB8888 format

Synopsis

Cubios::Math::Color
CPP
1Color(uint32_t v)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Public Methods

Set

Summary

Sets per-component values of the color

Arguments

  • r - value of the red component
  • g - value of the green component
  • b - value of the blue component
  • a - value of the alpha component

Synopsis

Cubios::Math::Color
CPP
1void Set(uint8_t r, uint8_t g, uint32_t b, uint8_t a)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • r - value of the red component
  • g - value of the green component
  • b - value of the blue component

Synopsis

Cubios::Math::Color
CPP
1void Set(uint8_t r, uint8_t g, uint32_t b)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • v - color value in ARGB8888 format

Synopsis

Cubios::Math::Color
CPP
1void Set(uint32_t v)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetA

Summary

Sets the value of alpha component of the color

Arguments

  • a - alpha component value

Synopsis

Cubios::Math::Color
CPP
1inline void SetA(uint8_t a)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetAf

Summary

Sets the normalized value of alpha component of the color

Arguments

  • a - alpha component value

Synopsis

Cubios::Math::Color
CPP
1inline void SetAf(float a)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetAfSafe

Summary

Sets the normalized value of alpha component of the color clamping it to [0.0,1.0]

Arguments

  • a - alpha component value

Synopsis

Cubios::Math::Color
CPP
1inline void SetAfSafe(float a)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetR

Sets the value of red component of the color

Arguments

  • v - red component value

Synopsis

Cubios::Math::Color
CPP
1inline void SetR(uint8_t v)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetG

Sets the value of green component of the color

Arguments

  • v - green component value

Synopsis

Cubios::Math::Color
CPP
1inline void SetG(uint8_t v)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetB

Summary

Sets the value of blue component of the color

Arguments

  • v - blue component value

Synopsis

Cubios::Math::Color
CPP
1inline void SetB(uint8_t v)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

A

Summary

Returns the value of alpha component of the color

Synopsis

Cubios::Math::Color
CPP
1inline uint8_t A()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Af

Summary

Returns the normalized value of alpha component of the color

Synopsis

Cubios::Math::Color
CPP
1inline float Af()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

R

Summary

Returns the value of red component of the color

Synopsis

Cubios::Math::Color
CPP
1inline uint8_t R()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

G

Summary

Returns the value of green component of the color

Synopsis

Cubios::Math::Color
CPP
1inline uint8_t G()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

B

Summary

Returns the value of blue component of the color

Synopsis

Cubios::Math::Color
CPP
1inline uint8_t B()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Value

Summary

Returns hexadecimal value of the color in ARGB8888 format

Synopsis

Cubios::Math::Color
CPP
1inline uint32_t Value()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Jump Grid

On This Page

ConstructorsColorPublic MethodsSetSetASetAfSetAfSafeSetRSetGSetBAAfRGBValue
Context Rail

Related nodes

Cubios::Math
API / SDK 6.1 / C++ / gfx engine
Cubios::Math::Vec2
API / SDK 6.1 / C++ / gfx engine
Cubios::Math::Transform
API / SDK 6.1 / C++ / gfx engine
Cubios::Gfx::Colors
API / SDK 6.1 / C++ / gfx engine
Previous Node
Cubios::Math::Transform
API / SDK 6.1 / C++ / gfx engine
Next Node
Cubios::Gfx::Colors
API / SDK 6.1 / C++ / gfx engine