pixled-lib  1.0
chroma.h
1 #ifndef PIXLED_PIXEL_PIXEL_H
2 #define PIXLED_PIXEL_PIXEL_H
3 
4 #include "../function.h"
5 
6 namespace pixled {
10  namespace chroma {
25  class hsb : public Function<hsb, color, float, float, float> {
26  public:
28 
29  color operator()(led l, time t) const override;
30  };
31 
46  class rgb : public Function<rgb, color, uint8_t, uint8_t, uint8_t> {
47  public:
49 
50  color operator()(led l, time t) const override;
51  };
52 
56  static color RED {color::rgb(255, 0, 0)};
60  static color GREEN {color::rgb(0, 255, 0)};
64  static color BLUE {color::rgb(0, 0, 255)};
68  static color LIGHT_RED {color::rgb(239, 71, 111)};
72  static color YELLOW {color::rgb(255, 209, 102)};
76  static color LIGHT_GREEN {color::rgb(6, 214, 160)};
80  static color DARK_BLUE {color::rgb(17, 138, 178)};
84  static color MIDNIGHT_BLUE {color::rgb(7, 59, 76)};
88  static color PINK {color::rgb(255, 102, 255)};
92  static color PURPLE {color::rgb(102, 0, 204)};
93 
94  }
95 }
96 #endif
Definition: function.h:349
Definition: chroma.h:25
color operator()(led l, time t) const override
Definition: chroma.cpp:5
Definition: chroma.h:46
color operator()(led l, time t) const override
Definition: chroma.cpp:9
Definition: color.h:10
static color rgb(uint8_t r, uint8_t g, uint8_t b)
Definition: color.cpp:169
static color RED
Definition: chroma.h:56
static color MIDNIGHT_BLUE
Definition: chroma.h:84
static color BLUE
Definition: chroma.h:64
static color PINK
Definition: chroma.h:88
static color DARK_BLUE
Definition: chroma.h:80
static color PURPLE
Definition: chroma.h:92
static color YELLOW
Definition: chroma.h:72
static color GREEN
Definition: chroma.h:60
static color LIGHT_GREEN
Definition: chroma.h:76
static color LIGHT_RED
Definition: chroma.h:68
Definition: animation.cpp:3
unsigned long time
Definition: time.h:10
Definition: mapping.h:19