blob: 860decf411862b047fdbb8b2286cbbff157fcd21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef CONTINUOUSCOLORSCALE_H
#define CONTINUOUSCOLORSCALE_H
#include "colorscale.h"
class ContinuousColorScale
: public ColorScale
{
public:
ContinuousColorScale(std::initializer_list<QColor> colors);
enum BuiltinContinuousColorScale {
HEATED_OBJECTS,
RED_GRAY_BLUE,
RAINBOW,
};
QColor color(qreal t) const;
static ContinuousColorScale builtin(enum BuiltinContinuousColorScale);
};
#endif // CONTINUOUSCOLORSCALE_H
|