6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef HARDWARE_TEST_PATTERN_H
#define HARDWARE_TEST_PATTERN_H
#include <escher.h>
namespace HardwareTest {
class Pattern {
public:
static int numberOfPatterns();
static Pattern patternAtIndex(int i);
KDColor fillColor() const;
KDColor outlineColor() const;
private:
Pattern(int i);
int m_i;
constexpr static int k_numberOfPatterns = 5;
constexpr static KDColor k_fillColors[k_numberOfPatterns] = {KDColorBlack, KDColorRed, KDColorBlue, KDColorGreen, KDColorWhite};
constexpr static KDColor k_outlineColors[k_numberOfPatterns] = {KDColorWhite, KDColorGreen, KDColorRed, KDColorRed, KDColorGreen};
};
}
#endif
|