SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Colours.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 Martin Hansen
3  *
4  * This file is part of SPAOP (Spatial Audio Object Positioner).
5  *
6  * SPAOP 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  * SPAOP 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 SPAOP. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef COLOURS_H_INCLUDED
21 #define COLOURS_H_INCLUDED
22 
23 #include <stdint.h>
24 
25 namespace wonder {
26 
28 struct Colour
29 {
30  uint8_t r;
31  uint8_t g;
32  uint8_t b;
35  Colour(uint8_t red, uint8_t green, uint8_t blue):
36  r(red), g(green), b(blue) {}
37 };
38 
40 class Colours
41 {
42 public:
43  static Colour RED;
44  static Colour GREEN;
45  static Colour BLUE;
46  static Colour YELLOW;
47 private:
48  Colours();
49 };
50 
51 }
52 
53 #endif // COLOURS_H_INCLUDED
static Colour GREEN
Definition: Colours.h:44
static Colour BLUE
Definition: Colours.h:45
uint8_t b
The blue value.
Definition: Colours.h:32
Colour(uint8_t red, uint8_t green, uint8_t blue)
Constructor.
Definition: Colours.h:35
uint8_t r
The red value.
Definition: Colours.h:30
A struct representing a (RGB) colour.
Definition: Colours.h:28
uint8_t g
The green value.
Definition: Colours.h:31
static Colour YELLOW
Definition: Colours.h:46
static Colour RED
Definition: Colours.h:43
A class that contains various Colour constants.
Definition: Colours.h:40