93 {
94
95
98
99
101 for (uint16_t
x = 0;
x <
WIDTH;
x++) {
102
103 uint8_t wave = sin8(time + (
x * 8));
104
105
107
108
109
110 uint8_t bri = 128 + (wave / 2);
111
112
114
116
119
123 } else {
124
125 float r = original_color.r / 255.f;
126 float g = original_color.g / 255.f;
127 float b = original_color.b / 255.f;
128
132
133 r = r * 255.f;
134 g = g * 255.f;
135 b = b * 255.f;
136
138 }
139 }
140 }
141}
fl::UIDropdown saturationFunction("Saturation Function", easeOptions)
fl::EaseType getEaseType(int value)
fl::UISlider satSlider("Saturation", 60, 0, 255, 1)
fl::UIDropdown luminanceFunction("Luminance Function", easeOptions)
fl::u64 time() FL_NOEXCEPT
Alias for millis64() - returns 64-bit millisecond time.
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
enable_if< is_fixed_point< T >::value, T >::type pow(T base, T exp) FL_NOEXCEPT
CRGB colorBoost(EaseType saturation_function=EaseType::EASE_NONE, EaseType luminance_function=EaseType::EASE_NONE) const FL_NOEXCEPT
Representation of an 8-bit RGB pixel (Red, Green, Blue)