Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. Official WOWCube Development Kit

WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelogDeveloper Toolkit
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.

Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. For official documentation and the SDK, see the WOWCube Development Kit.

Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. Cubios::Math::Color
Mission NodeSDK 6.2C++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.2 / C++ / gfx engine
VersionSDK 6.3SDK 6.2SDK 6.1
Report issue

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.

Trust & provenance

Document status

Source
Math-Color · installed SDK headers
Classification
API reference
Verification
Community-maintained · verify against installed SDK

Catalog updated Oct 20, 2018

Structured index

Symbols on this page

Names and signatures are extracted from this SDK-derived page. Signature hashes detect accidental changes.

Cubios::Math::ColorClass
ConstructorsMember
ColorMember
Public MethodsMember
SetMember
SetAMember
SetAfMember
SetAfSafeMember
SetRMember
SetGMember
SetBMember
AMember
AfMember
RMember
GMember
BMember
ValueMember

Used in SDK snippets

Color→Messaging2.cppColor→Messaging2.cppColor→Countdown.cppColor→Countdown.cppColor→Countdown.cpp
Jump Grid

On This Page

ConstructorsColorPublic MethodsSetSetASetAfSetAfSafeSetRSetGSetBAAfRGBValue
Back to top ↑
Context Rail

Related nodes

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