|
| Modulation_base (unsigned resolution, unsigned offset=0) |
| Resolution is the number of steps to complete a full cycle. More...
|
|
auto | get_next_ratio () -> double |
| Finds the next ratio between from the current step and resolution. More...
|
|
◆ Modulation_base()
ox::dynamic::Modulation_base::Modulation_base |
( |
unsigned |
resolution, |
|
|
unsigned |
offset = 0 |
|
) |
| |
|
explicitprotected |
Resolution is the number of steps to complete a full cycle.
offset
is the starting point, in range [0, resolution).
◆ get_next_ratio()
auto ox::dynamic::Modulation_base::get_next_ratio |
( |
| ) |
-> double |
|
protected |
Finds the next ratio between from the current step and resolution.
Returns a value between [0.0, 1.0].
The documentation for this class was generated from the following files:
- /github/workspace/include/termox/painter/dynamic_colors.hpp
- /github/workspace/src/painter/dynamic_colors.cpp