-
Notifications
You must be signed in to change notification settings - Fork 1
/
colour.h
55 lines (47 loc) · 1016 Bytes
/
colour.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef COLOUR_H
#define COLOUR_H
/**
* Class for pixel colours
*/
class Colour{
public:
/**
* Double value for R between 0 and 1
*/
double R;
/**
* Double value for G between 0 and 1
*/
double G;
/**
* Double value for B between 0 and 1
*/
double B;
/**
* Default constructor
*/
Colour();
/**
* Parameterized constructor
* @param R Double value for R between 0 and 1
* @param G Double value for G between 0 and 1
* @param B Double value for B between 0 and 1
*/
Colour (double R, double G, double B);
/**
* Set the value of R
* @param R Double value for R between 0 and 1
*/
void SetR(double R);
/**
* Set the value of G
* @param G Double value for G between 0 and 1
*/
void SetG(double G);
/**
* Set the value of B
* @param B Double value for B between 0 and 1
*/
void SetB(double B);
};
#endif /* COLOUR_H */