HIPO  4.3.0
High Performance Output data format for experimental physics
ascii::RGB Class Reference

24-bit true-color RGB terminal color. More...

#include <color.h>

Public Member Functions

 RGB (int r, int g, int b)
 Construct an RGB color from component values. More...
 
int r ()
 
int g ()
 
int b ()
 

Detailed Description

24-bit true-color RGB terminal color.

Represents a true color using red, green, and blue components.

Definition at line 75 of file color.h.

Constructor & Destructor Documentation

◆ RGB()

ascii::RGB::RGB ( int  r,
int  g,
int  b 
)
inline

Construct an RGB color from component values.

Parameters
rthe red component [0, 255]
gthe green component [0, 255]
bthe blue component [0, 255]

Definition at line 83 of file color.h.

Member Function Documentation

◆ b()

int ascii::RGB::b ( )
inline
Returns
the blue component value.

Definition at line 92 of file color.h.

◆ g()

int ascii::RGB::g ( )
inline
Returns
the green component value.

Definition at line 89 of file color.h.

◆ r()

int ascii::RGB::r ( )
inline
Returns
the red component value.

Definition at line 86 of file color.h.


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