MCPcopy Create free account
hub / github.com/FastLED/FastLED / getFirePalette

Function getFirePalette

examples/FestivalStick/curr.h:566–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566fl::CRGBPalette16 getFirePalette() {
567 int paletteIndex = (int)firePalette.value();
568 switch (paletteIndex) {
569 case 0:
570 return firepal;
571 case 1:
572 return electricGreenFirePal;
573 case 2:
574 return electricBlueFirePal;
575 default:
576 return firepal;
577 }
578}
579
580uint8_t getFirePaletteIndex(uint32_t millis32, int width, int max_width, int height, int max_height,
581 uint32_t y_speed) {

Callers 1

fillFrameBufferFireFunction · 0.85

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected