3DCoatScripting  4.8.31β
You can manage 3DСoat features with help of scripting
coat::scripto::Color Class Reference

Class for working with an RGBA-color. More...

Public Types

typedef unsigned int value_t
 

Public Member Functions

 Color (value_t r, value_t g, value_t b, value_t a=0xFF)
 Constructor for building a color by RGBA-channels. More...
 

Static Public Attributes

static const Color WHITE
 

Detailed Description

Class for working with an RGBA-color.

color.jpg
Since
4.5.32odo fine? Include the comms::cColor.

Constructor & Destructor Documentation

coat::scripto::Color::Color ( value_t  r,
value_t  g,
value_t  b,
value_t  a = 0xFF 
)
inline

Constructor for building a color by RGBA-channels.

Color a( 0x22, 0x8b, 0x22, 202 );

Member Data Documentation

const Color coat::scripto::Color::WHITE
static
Initial value:
{}
bool operator==( const Color& b ) const { return a.value == b.a.value; }
bool operator!=( const Color& b ) const { return a.value != b.a.value; }
Color& value( const value_t& v ) { a.value = v; return *this; }
value_t value() const { return a.value; }
value_t red() const { return value() & 0xFF; }
value_t green() const { return (value() >> 8) & 0xFF; }
value_t blue() const { return (value() >> 16) & 0xFF; }
value_t alpha() const { return (value() >> 24) & 0xFF; }
static const Color EMPTY