Add new Audio Responsive Ramp palette
This commit is contained in:
@@ -535,5 +535,11 @@ CRGB getCRGBForBand(int x, uint8_t *fftResult, int pal) {
|
||||
hsv = CHSV(fftResult[b], 255, map(fftResult[b], 0, 255, 30, 255)); // pick hue
|
||||
hsv2rgb_rainbow(hsv, value); // convert to R,G,B
|
||||
}
|
||||
else if(pal == 73) {
|
||||
int b = map(x, 0, 255, 0, 8); // convert palette position to lower half of freq band
|
||||
hsv = CHSV(uint8_t(fftResult[b]), 255, x);
|
||||
hsv2rgb_rainbow(hsv, value); // convert to R,G,B
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user