Color Struct Reference

#include <RobotAPI/components/ArViz/Client/elements/Color.h>

+ Inheritance diagram for Color:

Public Member Functions

 Color (const data::Color &c)
 
 Color (float r, float g, float b, float a=1.0)
 
 Color (int r, int g, int b, int a=255)
 
 Color (simox::Color c)
 

Static Public Member Functions

static Color azure (int az=255, int a=255)
 2 Blue + 1 Green More...
 
static Color black (int a=255)
 
static Color blue (int b=255, int a=255)
 
static Color cyan (int c=255, int a=255)
 Green + Blue. More...
 
static Color fromRGBA (float r, float g, float b, float a=1.0)
 Construct a float color from R, G, B and optional alpha. More...
 
static Color fromRGBA (int r, int g, int b, int a=255)
 Construct a byte color from R, G, B and optional alpha. More...
 
static Color fromRGBA (simox::Color c)
 Construct from a simox Color. More...
 
static Color gray (int g=128, int a=255)
 
static Color green (int g=255, int a=255)
 
static Color lime (int l=255, int a=255)
 2 Green + 1 Red More...
 
static Color magenta (int m=255, int a=255)
 Red + Blue. More...
 
static Color orange (int o=255, int a=255)
 2 Red + 1 Green More...
 
static Color pink (int p=255, int a=255)
 2 Red + 1 Blue More...
 
static Color purple (int p=255, int a=255)
 2 Blue + 1 Red More...
 
static Color red (int r=255, int a=255)
 
static Color turquoise (int t=255, int a=255)
 2 Green + 1 Blue More...
 
static Color white (int a=255)
 
static Color yellow (int y=255, int a=255)
 Red + Green. More...
 

Detailed Description

Definition at line 13 of file Color.h.

Constructor & Destructor Documentation

◆ Color() [1/4]

Color ( const data::Color &  c)
inline

Definition at line 17 of file Color.h.

◆ Color() [2/4]

Color ( simox::Color  c)
inline

Definition at line 19 of file Color.h.

+ Here is the call graph for this function:

◆ Color() [3/4]

Color ( int  r,
int  g,
int  b,
int  a = 255 
)
inline

Definition at line 26 of file Color.h.

+ Here is the call graph for this function:

◆ Color() [4/4]

Color ( float  r,
float  g,
float  b,
float  a = 1.0 
)
inline

Definition at line 33 of file Color.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ azure()

static Color azure ( int  az = 255,
int  a = 255 
)
inlinestatic

2 Blue + 1 Green

Definition at line 143 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ black()

static Color black ( int  a = 255)
inlinestatic

Definition at line 62 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ blue()

static Color blue ( int  b = 255,
int  a = 255 
)
inlinestatic

Definition at line 89 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cyan()

static Color cyan ( int  c = 255,
int  a = 255 
)
inlinestatic

Green + Blue.

Definition at line 98 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fromRGBA() [1/3]

static Color fromRGBA ( float  r,
float  g,
float  b,
float  a = 1.0 
)
inlinestatic

Construct a float color from R, G, B and optional alpha.

Definition at line 48 of file Color.h.

+ Here is the call graph for this function:

◆ fromRGBA() [2/3]

static Color fromRGBA ( int  r,
int  g,
int  b,
int  a = 255 
)
inlinestatic

Construct a byte color from R, G, B and optional alpha.

Definition at line 42 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fromRGBA() [3/3]

static Color fromRGBA ( simox::Color  c)
inlinestatic

Construct from a simox Color.

Definition at line 54 of file Color.h.

◆ gray()

static Color gray ( int  g = 128,
int  a = 255 
)
inlinestatic

Definition at line 72 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ green()

static Color green ( int  g = 255,
int  a = 255 
)
inlinestatic

Definition at line 84 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lime()

static Color lime ( int  l = 255,
int  a = 255 
)
inlinestatic

2 Green + 1 Red

Definition at line 131 of file Color.h.

+ Here is the call graph for this function:

◆ magenta()

static Color magenta ( int  m = 255,
int  a = 255 
)
inlinestatic

Red + Blue.

Definition at line 110 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ orange()

static Color orange ( int  o = 255,
int  a = 255 
)
inlinestatic

2 Red + 1 Green

Definition at line 119 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pink()

static Color pink ( int  p = 255,
int  a = 255 
)
inlinestatic

2 Red + 1 Blue

Definition at line 125 of file Color.h.

+ Here is the call graph for this function:

◆ purple()

static Color purple ( int  p = 255,
int  a = 255 
)
inlinestatic

2 Blue + 1 Red

Definition at line 149 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ red()

static Color red ( int  r = 255,
int  a = 255 
)
inlinestatic

Definition at line 79 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ turquoise()

static Color turquoise ( int  t = 255,
int  a = 255 
)
inlinestatic

2 Green + 1 Blue

Definition at line 137 of file Color.h.

+ Here is the call graph for this function:

◆ white()

static Color white ( int  a = 255)
inlinestatic

Definition at line 67 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ yellow()

static Color yellow ( int  y = 255,
int  a = 255 
)
inlinestatic

Red + Green.

Definition at line 104 of file Color.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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