#include <gradient_fx.hpp>
|
| gradient_fx ()=default |
|
| gradient_fx (neo::gradient g, std::chrono::milliseconds duration=1s, float repeats=1.f) |
|
| gradient_fx (gradient_fx &&g_fx) noexcept |
|
gradient_fx & | operator= (gradient_fx &&g_fx) noexcept |
|
neo::gradient | get_gradient () const |
|
void | set_gradient (neo::gradient g) |
|
float | repeats () const |
|
std::chrono::milliseconds | duration () const |
|
void | set_repeats (float n) |
|
void | set_duration (std::chrono::milliseconds d) |
|
std::vector< rgb > | sample (std::size_t n_leds, std::chrono::milliseconds time_since_start, std::vector< rgb > recycle_buffer={}, blending_method method=blend_linear) const |
|
std::function< void(std::chrono::milliseconds)> | make_steady_timer_callback (transmittable_rgb_strip &strip, rmt_channel_t channel, blending_method method=blend_linear) const |
|
std::vector< rgb > | render_frame (transmittable_rgb_strip &strip, rmt_channel_t channel, std::chrono::milliseconds elapsed, std::vector< rgb > recycle_buffer={}, blending_method method=blend_linear) const |
|
◆ gradient_fx() [1/3]
neo::gradient_fx::gradient_fx |
( |
| ) |
|
|
default |
◆ gradient_fx() [2/3]
neo::gradient_fx::gradient_fx |
( |
neo::gradient |
g, |
|
|
std::chrono::milliseconds |
duration = 1s , |
|
|
float |
repeats = 1.f |
|
) |
| |
|
inlineexplicit |
◆ gradient_fx() [3/3]
◆ duration()
std::chrono::milliseconds neo::gradient_fx::duration |
( |
| ) |
const |
|
inline |
◆ get_gradient()
◆ make_steady_timer_callback()
◆ operator=()
◆ render_frame()
◆ repeats()
float neo::gradient_fx::repeats |
( |
| ) |
const |
|
inline |
◆ sample()
std::vector< rgb > neo::gradient_fx::sample |
( |
std::size_t |
n_leds, |
|
|
std::chrono::milliseconds |
time_since_start, |
|
|
std::vector< rgb > |
recycle_buffer = {} , |
|
|
blending_method |
method = blend_linear |
|
) |
| const |
◆ set_duration()
void neo::gradient_fx::set_duration |
( |
std::chrono::milliseconds |
d | ) |
|
|
inline |
◆ set_gradient()
◆ set_repeats()
void neo::gradient_fx::set_repeats |
( |
float |
n | ) |
|
|
inline |
◆ _duration
std::chrono::milliseconds neo::gradient_fx::_duration = 0ms |
|
private |
◆ _gradient
◆ _gradient_mutex
std::recursive_mutex neo::gradient_fx::_gradient_mutex = {} |
|
mutableprivate |
◆ _repeats
float neo::gradient_fx::_repeats = 1.f |
|
private |
The documentation for this class was generated from the following files: