12 for (
int i = 0; i < numToFill; ++i) {
13 targetArray[i] =
color;
19 for (
int i = 0; i < numToFill; ++i) {
20 targetArray[i] =
color;
36 for (
int i = 0; i < numToFill; ++i) {
48 for (
int i = 0; i < numToFill; ++i) {
65 65535 / (u16)numToFill;
69 for (
int i = 0; i < numToFill; ++i) {
72 hueOffset -= hueChange;
74 hueOffset += hueChange;
75 hsv.hue = initialhue +
92 65535 / (u16)numToFill;
96 for (
int i = 0; i < numToFill; ++i) {
99 hueOffset -= hueChange;
101 hueOffset += hueChange;
102 hsv.hue = initialhue +
111 if (endpos < startpos) {
114 endcolor = startcolor;
125 rdistance87 = (endcolor.r - startcolor.r) * 128;
126 gdistance87 = (endcolor.g - startcolor.g) * 128;
127 bdistance87 = (endcolor.b - startcolor.b) * 128;
129 u16 pixeldistance = endpos - startpos;
130 i16 divisor = pixeldistance ? pixeldistance : 1;
132 saccum87 rdelta87 = rdistance87 / divisor;
133 saccum87 gdelta87 = gdistance87 / divisor;
134 saccum87 bdelta87 = bdistance87 / divisor;
140 accum88 r88 = startcolor.r << 8;
141 accum88 g88 = startcolor.g << 8;
142 accum88 b88 = startcolor.b << 8;
143 for (u16 i = startpos; i <= endpos; ++i) {
144 leds[i] =
CRGB(r88 >> 8, g88 >> 8, b88 >> 8);
153 u16 last = numLeds - 1;
159 u16 half = (numLeds / 2);
160 u16 last = numLeds - 1;
167 u16 onethird = (numLeds / 3);
168 u16 twothirds = ((numLeds * 2) / 3);
169 u16 last = numLeds - 1;
#define saccum87
ANSI: signed short _Accum.
void fill_rainbow_circular(CRGB *targetArray, int numToFill, u8 initialhue, bool reversed) FL_NO_EXCEPT
Fill a range of LEDs with a rainbow of colors, so that the hues are continuous between the end of the...
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NO_EXCEPT
Fill a range of LEDs with a solid color.
void fill_rainbow(CRGB *targetArray, int numToFill, u8 initialhue, u8 deltahue) FL_NO_EXCEPT
Fill a range of LEDs with a rainbow of colors.
void fill_gradient_RGB(CRGB *leds, u16 startpos, CRGB startcolor, u16 endpos, CRGB endcolor) FL_NO_EXCEPT
Fill a range of LEDs with a smooth RGB gradient between two RGB colors.
u8 u8 fract8 blur_amount FL_NO_EXCEPT
u16 accum88
ANSI: unsigned short _Accum. 8 bits int, 8 bits fraction.
Base definition for an LED controller.
Representation of an 8-bit RGB pixel (Red, Green, Blue)