Evospace  0.19.0
Modding API
 
Loading...
Searching...
No Matches
Color Class Reference

Represents a color using four 8-bit channels (RGBA). More...

Public Attributes

uint8 r
 
uint8 g
 
uint8 b
 
uint8 a
 

Static Public Attributes

static Color red
 red A predefined red color (255, 0, 0).
 
static Color green
 green A predefined green color (0, 255, 0).
 
static Color blue
 blue A predefined blue color (0, 0, 255).
 
static Color yellow
 yellow A predefined yellow color (255, 255, 0).
 
static Color cyan
 cyan A predefined cyan color (0, 255, 255).
 
static Color magenta
 magenta A predefined magenta color (255, 0, 255).
 
static Color white
 white A predefined white color (255, 255, 255).
 
static Color black
 black A predefined black color (0, 0, 0).
 
static Color gray
 gray A predefined gray color (128, 128, 128).
 
static Color transparent
 transparent A predefined transparent color (0, 0, 0, 0).
 

Detailed Description

Represents a color using four 8-bit channels (RGBA).

Color stores color components as unsigned 8-bit integers, each ranging from 0 to 255. This class provides basic functionality to manipulate colors, such as reading and setting individual color channels.

Definition at line 10 of file MathDoxy.h.

Member Data Documentation

◆ a

uint8 Color::a

alpha (transparency) component

Definition at line 15 of file MathDoxy.h.

◆ b

uint8 Color::b

blue color component

Definition at line 14 of file MathDoxy.h.

◆ g

uint8 Color::g

green color component

Definition at line 13 of file MathDoxy.h.

◆ r

uint8 Color::r

red color component

Definition at line 12 of file MathDoxy.h.