forked from Makuna/NeoPixelBus
gradient (#681)
This commit is contained in:
@ -85,14 +85,14 @@ void loop()
|
||||
// draw something
|
||||
//
|
||||
uint16_t half = strip.PixelCount() / 2;
|
||||
DrawGradiant(green, black, 0, half - 1);
|
||||
DrawGradiant(black, red, half, strip.PixelCount() - 1);
|
||||
DrawGradient(green, black, 0, half - 1);
|
||||
DrawGradient(black, red, half, strip.PixelCount() - 1);
|
||||
|
||||
// show the results
|
||||
strip.Show();
|
||||
}
|
||||
|
||||
void DrawGradiant(RgbColor startColor,
|
||||
void DrawGradient(RgbColor startColor,
|
||||
RgbColor finishColor,
|
||||
uint16_t startIndex,
|
||||
uint16_t finishIndex)
|
||||
|
@ -1,5 +1,5 @@
|
||||
// NeoPixelGamma
|
||||
// This example will display a timed series of color gradiants with gamma correction
|
||||
// This example will display a timed series of color gradients with gamma correction
|
||||
// and then without.
|
||||
// If the last pixel is on, then the colors being shown are color corrected.
|
||||
// It will show Red grandiant, Green grandiant, Blue grandiant, a White grandiant, and
|
||||
|
@ -1,5 +1,5 @@
|
||||
// NeoPixelGammaDynamic
|
||||
// This example will display a timed series of color gradiants with gamma correction
|
||||
// This example will display a timed series of color gradients with gamma correction
|
||||
// and then without.
|
||||
// If the last pixel is on, then the colors being shown are color corrected.
|
||||
// It will show Red grandiant, Green grandiant, Blue grandiant, a White grandiant, and
|
||||
|
Reference in New Issue
Block a user