Numworks Epsilon  1.4.1
Graphing Calculator Operating System
pattern.cpp
Go to the documentation of this file.
1 #include "pattern.h"
2 
3 namespace HardwareTest {
4 
5 constexpr KDColor Pattern::k_fillColors[Pattern::k_numberOfPatterns];
6 constexpr KDColor Pattern::k_outlineColors[Pattern::k_numberOfPatterns];
7 
9  return k_numberOfPatterns;
10 }
11 
13  return Pattern(i);
14 }
15 
17  return k_fillColors[m_i];
18 }
19 
21  return k_outlineColors[m_i];
22 }
23 
24 Pattern::Pattern(int i) :
25  m_i(i)
26 {
27 }
28 
29 }
static Pattern patternAtIndex(int i)
Definition: pattern.cpp:12
static int numberOfPatterns()
Definition: pattern.cpp:8
Definition: color.h:6
KDColor outlineColor() const
Definition: pattern.cpp:20
KDColor fillColor() const
Definition: pattern.cpp:16