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

256-color ANSI terminal color wrapper. More...

#include <color.h>

Public Member Functions

 Color256 (int id)
 Construct a Color256 with the given palette ID. More...
 
int id ()
 

Detailed Description

256-color ANSI terminal color wrapper.

Represents a single color from the 256-color palette.

Definition at line 55 of file color.h.

Constructor & Destructor Documentation

◆ Color256()

ascii::Color256::Color256 ( int  id)
inline

Construct a Color256 with the given palette ID.

Parameters
idthe color ID in the range [0, 255]

Definition at line 61 of file color.h.

Member Function Documentation

◆ id()

int ascii::Color256::id ( )
inline
Returns
the color palette ID.

Definition at line 64 of file color.h.


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