pixled-lib  1.0
signal.h
1 #ifndef PIXLED_FUNCTIONNAL_SIGNALS_H
2 #define PIXLED_FUNCTIONNAL_SIGNALS_H
3 
4 #include "../function.h"
5 
6 namespace pixled { namespace signal {
53  class Sine : public Function<Sine, float, float> {
54  public:
56 
57  /*
58  * f1 : period
59  * f2 : param
60  */
61  float operator()(led l, time t) const override;
62  };
63 
90  class Square : public Function<Square, float, float> {
91  public:
93 
94  float operator()(led l, time t) const override;
95  };
96 
123  class Triangle : public Function<Triangle, float, float> {
124  public:
126 
127  float operator()(led l, time t) const override;
128  };
129 
156  class Sawtooth : public Function<Sawtooth, float, float> {
157  public:
159 
160  float operator()(led l, time t) const override;
161  };
162 }}
163 #endif
Definition: function.h:349
Definition: signal.h:156
float operator()(led l, time t) const override
Definition: signal.cpp:19
Definition: signal.h:53
float operator()(led l, time t) const override
Definition: signal.cpp:5
Definition: signal.h:90
float operator()(led l, time t) const override
Definition: signal.cpp:9
Definition: signal.h:123
float operator()(led l, time t) const override
Definition: signal.cpp:13
Definition: animation.cpp:3
unsigned long time
Definition: time.h:10
Definition: mapping.h:19