46 if (now >= this->start_time_ + this->
length_)
49 return clamp((now - this->start_time_) /
float(this->
length_), 0.0f, 1.0f);
This class represents the color state for a light object.
Providing packet encoding functions for exchanging data with a remote host.
uint32_t IRAM_ATTR HOT millis()
constexpr const T & clamp(const T &v, const T &lo, const T &hi, Compare comp)