ESPHome
2024.12.2
|
#include <transformers.h>
Public Member Functions | |
void | start () override |
optional< LightColorValues > | apply () override |
Public Member Functions inherited from esphome::light::LightTransformer | |
virtual | ~LightTransformer ()=default |
void | setup (const LightColorValues &start_values, const LightColorValues &target_values, uint32_t length) |
virtual bool | is_finished () |
Indicates whether this transformation is finished. More... | |
virtual void | stop () |
This will be called after transition is finished. More... | |
const LightColorValues & | get_start_values () const |
const LightColorValues & | get_target_values () const |
Static Protected Member Functions | |
static float | smoothed_progress (float x) |
Protected Attributes | |
bool | changing_color_mode_ {false} |
LightColorValues | end_values_ {} |
LightColorValues | intermediate_values_ {} |
Protected Attributes inherited from esphome::light::LightTransformer | |
uint32_t | start_time_ |
uint32_t | length_ |
LightColorValues | start_values_ |
LightColorValues | target_values_ |
Additional Inherited Members | |
Protected Member Functions inherited from esphome::light::LightTransformer | |
float | get_progress_ () |
The progress of this transition, on a scale of 0 to 1. More... | |
Definition at line 12 of file transformers.h.
|
inlineoverridevirtual |
Implements esphome::light::LightTransformer.
Definition at line 38 of file transformers.h.
|
inlinestaticprotected |
Definition at line 60 of file transformers.h.
|
inlineoverridevirtual |
Reimplemented from esphome::light::LightTransformer.
Definition at line 14 of file transformers.h.
|
protected |
Definition at line 62 of file transformers.h.
|
protected |
Definition at line 63 of file transformers.h.
|
protected |
Definition at line 64 of file transformers.h.