2017-05-18 21:53:58 +01:00
|
|
|
#pragma once
|
|
|
|
|
2017-06-01 20:52:11 +01:00
|
|
|
class GraphicsColors
|
2017-05-18 21:53:58 +01:00
|
|
|
{
|
|
|
|
public:
|
2017-06-01 21:36:42 +01:00
|
|
|
GraphicsColors(const int firstColor, const int firstPair, const int numberOfGreys);
|
2017-05-18 21:53:58 +01:00
|
|
|
|
|
|
|
int getPair(int color) const;
|
2017-06-01 21:36:42 +01:00
|
|
|
int getGrey(double foreground, double background) const;
|
2017-05-18 21:53:58 +01:00
|
|
|
|
|
|
|
private:
|
2017-06-01 21:36:42 +01:00
|
|
|
int myFirstGRPair;
|
|
|
|
int myFirstHGRPair;
|
|
|
|
|
|
|
|
const int myNumberOfGRColors;
|
|
|
|
const int myNumberOfGreys;
|
|
|
|
|
2017-05-18 21:53:58 +01:00
|
|
|
};
|