Terminal Graphics
Single-file, header-only C++20 functionality for producing graphics on the terminal using the sixel protocol
|
A simple class to hold a 2D image using datatype specified as ValueType
template parameter.
More...
Public Member Functions | |
Image (int x_dim, int y_dim) | |
Instantiate an Image with the specified dimensions. | |
int | width () const |
query image dimensions | |
int | height () const |
ValueType & | operator() (int x, int y) |
query or set intensity at coordinates (x,y) | |
const ValueType & | operator() (int x, int y) const |
query intensity at coordinates (x,y) | |
void | clear () |
clear image, setting all intensities to 0 | |
A simple class to hold a 2D image using datatype specified as ValueType
template parameter.
|
inline |
Instantiate an Image with the specified dimensions.
|
inline |
query image dimensions
|
inline |
|
inline |
query or set intensity at coordinates (x,y)
|
inline |
query intensity at coordinates (x,y)
|
inline |
clear image, setting all intensities to 0