Skip to content

Commit daa8103

Browse files
authored
Merge pull request MoonModules#252 from DedeHai/ParticleSystem_MM
bugfix for very low brightness in PS FX
2 parents b63e72e + 0ea505e commit daa8103

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wled00/FXparticleSystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ void ParticleSystem2D::render() {
590590
}
591591
else {
592592
brightness = min((particles[i].ttl << 1), (int)255);
593-
baseRGB = ColorFromPalette(SEGPALETTE, particles[i].hue, blend);
593+
baseRGB = ColorFromPalette(SEGPALETTE, particles[i].hue, 255, blend);
594594
if (particles[i].sat < 255) {
595595
CHSV baseHSV = rgb2hsv_approximate(baseRGB); // convert to HSV
596596
baseHSV.s = particles[i].sat; // set the saturation
@@ -1452,7 +1452,7 @@ void ParticleSystem1D::render() {
14521452

14531453
// generate RGB values for particle
14541454
brightness = min(particles[i].ttl << 1, (int)255);
1455-
baseRGB = ColorFromPalette(SEGPALETTE, particles[i].hue, blend);
1455+
baseRGB = ColorFromPalette(SEGPALETTE, particles[i].hue, 255, blend);
14561456

14571457
if (advPartProps) { //saturation is advanced property in 1D system
14581458
if (advPartProps[i].sat < 255) {

0 commit comments

Comments
 (0)