mirror of
https://github.com/wled/WLED.git
synced 2025-07-24 03:06:36 +00:00
comment
This commit is contained in:
parent
891115ecee
commit
5fe766399b
@ -9045,7 +9045,7 @@ uint16_t mode_particlegalaxy(void) {
|
||||
PartSys->particles[i].sat = distance << 1; // turn white towards center
|
||||
}
|
||||
}
|
||||
if(SEGMENT.custom3 == 31) // color by age but mapped to 1024 as particles have a long life, since age is random, this gives more or less random colors but
|
||||
if(SEGMENT.custom3 == 31) // color by age but mapped to 1024 as particles have a long life, since age is random, this gives more or less random colors
|
||||
PartSys->particles[i].hue = PartSys->particles[i].ttl >> 2;
|
||||
else if(SEGMENT.custom3 == 0) // color by distance
|
||||
PartSys->particles[i].hue = map(distance, 20, (PartSys->maxX + PartSys->maxY) >> 2, 0, 180); // color by distance to center
|
||||
|
Loading…
x
Reference in New Issue
Block a user