#include <chroma.h>
RGB color function.
- Note
- Notice the difference with pixled::color, that is a fundamental type used to store a color. pixled::chroma::rgb is a pixled::Function, what implies that red, green and blue components can themselves be functions!
- Return values
-
- Parameters
-
uint8_t | red value in [0, 255] |
uint8_t | green value in [0, 255] |
uint8_t | blue value in [0, 255] |
- Examples
- pixled/animation/linear_unit_wave.cpp, pixled/animation/radial_unit_wave.cpp, pixled/conditional/conditional.cpp, pixled/geometry/index.cpp, pixled/random/normal.cpp, pixled/random/uniform.cpp, pixled/signal/sawtooth.cpp, and pixled/signal/square.cpp.
◆ operator()()
color pixled::chroma::rgb::operator() |
( |
led |
l, |
|
|
time |
t |
|
) |
| const |
|
overridevirtual |
Computes the value of this Function for led l
at time t
.
- Parameters
-
- Returns
- Result of this Function, evaluated on led
l
at time t
. Notice that evaluating a function usually requires the recursive evaluation of other Functions (that are actually parameters of this function) until a Constant is reached for example.
Implements pixled::base::Function< color >.
The documentation for this class was generated from the following files:
- src/pixled/chroma/chroma.h
- src/pixled/chroma/chroma.cpp