aboutsummaryrefslogtreecommitdiff
#ifndef DIVERGENTCOLORSCALE_H
#define DIVERGENTCOLORSCALE_H

#include "colorscale.h"

class DivergentColorScale
    : public ColorScale
{
public:
    DivergentColorScale(const Color &color1,
                        const Color &colorMiddle,
                        const Color &color2);

    enum BuiltinDivergentColorScale {
        RedGrayBlue
    };

    Color color(float t) const;

    static DivergentColorScale builtin(BuiltinDivergentColorScale);
    static DivergentColorScale *builtin(BuiltinDivergentColorScale, void *);
};

#endif // DIVERGENTCOLORSCALE_H