Public Member Functions | Public Attributes | List of all members
sdf::v11::Color Class Reference

Defines a color. More...

#include <Types.hh>

Public Member Functions

 Color (float _r=0.0f, float _g=0.0f, float _b=0.0f, float _a=1.0f)
 Constructor. More...
 
bool operator== (const Color &_clr) const
 Equality operator. More...
 

Public Attributes

float a
 Alpha value. More...
 
float b
 Blue value. More...
 
float g
 Green value. More...
 
float r
 Red value. More...
 

Detailed Description

Defines a color.

Constructor & Destructor Documentation

◆ Color()

sdf::v11::Color::Color ( float  _r = 0.0f,
float  _g = 0.0f,
float  _b = 0.0f,
float  _a = 1.0f 
)
inline

Constructor.

Parameters
[in]_rRed value (range 0 to 1)
[in]_gGreen value (range 0 to 1
[in]_bBlue value (range 0 to 1
[in]_aAlpha value (0=transparent, 1=opaque)
Deprecated:
Use ignition::math::Color

Member Function Documentation

◆ operator==()

bool sdf::v11::Color::operator== ( const Color _clr) const
inline

Equality operator.

Parameters
[in]_clrThe color to check for equality
Returns
True if the this color equals _clf

References a, b, sdf::v11::equal(), g, and r.

Member Data Documentation

◆ a

float sdf::v11::Color::a

Alpha value.

Referenced by operator==().

◆ b

float sdf::v11::Color::b

Blue value.

Referenced by operator==().

◆ g

float sdf::v11::Color::g

Green value.

Referenced by operator==().

◆ r

float sdf::v11::Color::r

Red value.

Referenced by operator==().


The documentation for this class was generated from the following file: