This commit is contained in:
Michael Miller
2023-04-06 16:46:46 -07:00
committed by GitHub
parent 5bb30975a8
commit cdcadc74be
3 changed files with 5 additions and 5 deletions

View File

@@ -85,14 +85,14 @@ void loop()
// draw something // draw something
// //
uint16_t half = strip.PixelCount() / 2; uint16_t half = strip.PixelCount() / 2;
DrawGradiant(green, black, 0, half - 1); DrawGradient(green, black, 0, half - 1);
DrawGradiant(black, red, half, strip.PixelCount() - 1); DrawGradient(black, red, half, strip.PixelCount() - 1);
// show the results // show the results
strip.Show(); strip.Show();
} }
void DrawGradiant(RgbColor startColor, void DrawGradient(RgbColor startColor,
RgbColor finishColor, RgbColor finishColor,
uint16_t startIndex, uint16_t startIndex,
uint16_t finishIndex) uint16_t finishIndex)

View File

@@ -1,5 +1,5 @@
// NeoPixelGamma // 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. // and then without.
// If the last pixel is on, then the colors being shown are color corrected. // 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 // It will show Red grandiant, Green grandiant, Blue grandiant, a White grandiant, and

View File

@@ -1,5 +1,5 @@
// NeoPixelGammaDynamic // 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. // and then without.
// If the last pixel is on, then the colors being shown are color corrected. // 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 // It will show Red grandiant, Green grandiant, Blue grandiant, a White grandiant, and