Using Unicode quarter blocks the effective resolution is (40x2)x(24x2). Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
18 lines
344 B
C++
18 lines
344 B
C++
#pragma once
|
|
|
|
class GraphicsColors
|
|
{
|
|
public:
|
|
GraphicsColors(const int firstColor, const int firstPair, const int numberOfGreys);
|
|
|
|
int getPair(int color) const;
|
|
int getGrey(double foreground, double background) const;
|
|
|
|
private:
|
|
int myFirstGRPair;
|
|
int myFirstHGRPair;
|
|
|
|
const int myNumberOfGRColors;
|
|
const int myNumberOfGreys;
|
|
|
|
};
|