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