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
 
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.
 
static Color fromRGBA (float r, float g, float b, float a=1.0)
 Construct a float color from R, G, B and optional alpha.
 
static Color fromRGBA (int r, int g, int b, int a=255)
 Construct a byte color from R, G, B and optional alpha.
 
static Color fromRGBA (simox::Color c)
 Construct from a simox Color.
 
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
 
static Color magenta (int m=255, int a=255)
 Red + Blue.
 
static Color orange (int o=255, int a=255)
 2 Red + 1 Green
 
static Color pink (int p=255, int a=255)
 2 Red + 1 Blue
 
static Color purple (int p=255, int a=255)
 2 Blue + 1 Red
 
static Color red (int r=255, int a=255)
 
static Color turquoise (int t=255, int a=255)
 2 Green + 1 Blue
 
static Color white (int a=255)
 
static Color yellow (int y=255, int a=255)
 Red + Green.
 

Detailed Description

Definition at line 12 of file Color.h.

Constructor & Destructor Documentation

◆ Color() [1/4]

Color ( const data::Color & c)
inline

Definition at line 16 of file Color.h.

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

◆ Color() [2/4]

Color ( simox::Color c)
inline

Definition at line 20 of file Color.h.

◆ Color() [3/4]

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

Definition at line 28 of file Color.h.

◆ Color() [4/4]

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

Definition at line 36 of file Color.h.

Member Function Documentation

◆ azure()

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

2 Blue + 1 Green

Definition at line 160 of file Color.h.

◆ black()

static Color black ( int a = 255)
inlinestatic

Definition at line 68 of file Color.h.

◆ blue()

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

Definition at line 100 of file Color.h.

◆ cyan()

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

Green + Blue.

Definition at line 109 of file Color.h.

◆ 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 53 of file Color.h.

◆ 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 46 of file Color.h.

◆ fromRGBA() [3/3]

static Color fromRGBA ( simox::Color c)
inlinestatic

Construct from a simox Color.

Definition at line 60 of file Color.h.

◆ gray()

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

Definition at line 80 of file Color.h.

◆ green()

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

Definition at line 94 of file Color.h.

◆ lime()

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

2 Green + 1 Red

Definition at line 146 of file Color.h.

◆ magenta()

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

Red + Blue.

Definition at line 123 of file Color.h.

◆ orange()

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

2 Red + 1 Green

Definition at line 132 of file Color.h.

◆ pink()

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

2 Red + 1 Blue

Definition at line 139 of file Color.h.

◆ purple()

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

2 Blue + 1 Red

Definition at line 167 of file Color.h.

◆ red()

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

Definition at line 88 of file Color.h.

◆ turquoise()

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

2 Green + 1 Blue

Definition at line 153 of file Color.h.

◆ white()

static Color white ( int a = 255)
inlinestatic

Definition at line 74 of file Color.h.

◆ yellow()

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

Red + Green.

Definition at line 116 of file Color.h.


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