aboutsummaryrefslogtreecommitdiff
path: root/continuouscolorscale.h
blob: f73470262408bad8f9c56bd0663b44eece9cf6c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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
    };

    QColor color(qreal t) const;

    static ContinuousColorScale builtin(enum BuiltinContinuousColorScale);
};

#endif // CONTINUOUSCOLORSCALE_H