Witch Lights Software Architecture
- How UpdateIdle() Works Right Now
- CRGB pattern
- A
- B
- C
- ## there are many other details
- the strip copy function then copies that to the LEDs
- for example, drawing is bounded by a conditional that seems to govern the speed of drawing animation frames
- I think this function is the key item to play with.
- when we have gone through a single cycle of frames, we increase a count of the number of times we have run the full idle animation
- ```
void UpdatePattern() {
pattern[0] = colorSets[colorPalette][pixelA];
pattern[1] = colorSets[colorPalette][pixelB];
pattern[2] = colorSets[colorPalette][pixelC];
}
```
- But for
- Stay on Target
- ## This is very silly
- here we have the three indexes, and we are drawing directly to pattern by looking up colors with those in
- but I don't want to get sidetracked trying to fix the novice code I wrote seven years ago while in a fugue state
- # hey it worked!
- instead, for now, let's just try to make an in place replacement of the color set
- https://cdn.kinopio.club/1SLB_FlwyIqRjgUWuSF7-/Colors.gif.gif
- that way, we can have full brightness colors defined, and use dynamic brightness setting in the show function.
- https://cdn.kinopio.club/OAZCl2y6cgV9IvNoOS4i2/image.png
- And we can draw colors from the palettes that we have already defined.
Witch Lights Software Architecture
- How UpdateIdle() Works Right Now
- CRGB pattern
- A
- B
- C
- ## there are many other details
- the strip copy function then copies that to the LEDs
- for example, drawing is bounded by a conditional that seems to govern the speed of drawing animation frames
- I think this function is the key item to play with.
- when we have gone through a single cycle of frames, we increase a count of the number of times we have run the full idle animation
- ```
void UpdatePattern() {
pattern[0] = colorSets[colorPalette][pixelA];
pattern[1] = colorSets[colorPalette][pixelB];
pattern[2] = colorSets[colorPalette][pixelC];
}
```
- But for
- Stay on Target
- ## This is very silly
- here we have the three indexes, and we are drawing directly to pattern by looking up colors with those in
- but I don't want to get sidetracked trying to fix the novice code I wrote seven years ago while in a fugue state
- # hey it worked!
- instead, for now, let's just try to make an in place replacement of the color set
- https://cdn.kinopio.club/1SLB_FlwyIqRjgUWuSF7-/Colors.gif.gif
- that way, we can have full brightness colors defined, and use dynamic brightness setting in the show function.
- https://cdn.kinopio.club/OAZCl2y6cgV9IvNoOS4i2/image.png
- And we can draw colors from the palettes that we have already defined.