#include <chroma.h>
HSB color function.
- Note
- Notice the difference with pixled::color, that is a fundamental type used to store a color. pixled::chroma::hsb is a pixled::Function, what implies that hue, saturation and brightness can themselves be functions!
- Return values
-
- Parameters
-
float | hue in [0, 360] |
float | saturation in [0, 1] |
float | brightness in [0, 1] |
- Examples
- pixled/animation/blink.cpp, pixled/animation/blooming.cpp, pixled/animation/linear_unit_wave.cpp, pixled/animation/radial_unit_wave.cpp, pixled/animation/rainbow.cpp, pixled/animation/sequence.cpp, pixled/random/normal.cpp, pixled/random/uniform.cpp, pixled/signal/sine.cpp, and pixled/signal/triangle.cpp.
◆ operator()()
color pixled::chroma::hsb::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