scatter 0.1.0
ColourScheme.hpp
1/*
2 * Copyright (C) Tobias Löw (tobi.loew@protonmail.ch)
3 *
4 * This file is part of Scatter
5 *
6 * Scatter is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Scatter is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Scatter. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include <string>
23#include <vector>
24
25namespace scatter
26{
27 class Colour;
28
30 {
31 public:
33
34 ColourScheme(const std::string &name, const std::vector<Colour> &colours);
35
36 virtual ~ColourScheme() = default;
37
38 const Colour &getColour(const unsigned &index) const;
39
40 const std::string &getName() const;
41
42 private:
43 std::string name_;
44
45 std::vector<Colour> colours_;
46 };
47
48} // namespace scatter
Definition ColourScheme.hpp:30
define a RGBA colour
Definition Colour.hpp:34