95 {
96
97
98 uint16_t
time = millis() / 16;
99 uint8_t hueOffset = millis() / 32;
100
101
103 for (uint16_t
x = 0;
x <
WIDTH;
x++) {
104
106
107
108 uint8_t
hue = hueOffset + (
x * 255 /
WIDTH);
109
110
111
112 uint8_t bri = 128 + (wave / 2);
113
114
116
118
121
125 } else {
126
127 float r = original_color.r / 255.f;
128 float g = original_color.g / 255.f;
129 float b = original_color.b / 255.f;
130
131 r = pow(r, 2.0);
132 g = pow(g, 2.0);
133 b = pow(b, 2.0);
134
135 r = r * 255.f;
136 g = g * 255.f;
137 b = b * 255.f;
138
140 }
141 }
142 }
143}
UISlider satSlider("Saturation", 60, 0, 255, 1)
EaseType getEaseType(int value)
UIDropdown luminanceFunction("Luminance Function", easeOptions)
UIDropdown saturationFunction("Saturation Function", easeOptions)
#define sin8
Platform-independent alias of the fast sin implementation.
fl::u32 time()
Universal millisecond timer - returns milliseconds since system startup.
CRGB colorBoost(fl::EaseType saturation_function=fl::EASE_NONE, fl::EaseType luminance_function=fl::EASE_NONE) const
Representation of an RGB pixel (Red, Green, Blue)
Representation of an HSV pixel (hue, saturation, value (aka brightness)).