CODeRUS / GyverLampCpp

GyverLamp https://github.com/AlexGyver/GyverLamp fork
https://t.me/GyverLampCpp
81 stars 31 forks source link

What's up with the FlockEffect dimming? #79

Open BlipRanger opened 1 year ago

BlipRanger commented 1 year ago

myMatrix->dimAll(255 - (settings.scale % 11) * 3); basically goes between 255 and 222 and then resets when you hit a multiple of 11. Any idea why that's the case? https://github.com/CODeRUS/GyverLampCpp/blob/26f398e6f21dc379bed9de6dc6a2daa39f427dc5/src/effects/aurora/FlockEffect.cpp#L64

BlipRanger commented 1 year ago

Similar implementation here https://github.com/CODeRUS/GyverLampCpp/blob/26f398e6f21dc379bed9de6dc6a2daa39f427dc5/src/effects/basic/PrismataEffect.cpp#L55

CODeRUS commented 1 year ago

well, it was ported from

https://github.com/pixelmatix/aurora/blob/master/PatternPendulumWave.h

and dimAll is basically "soft clear" of screen, leaving fade of previous pixels and will go away in couple of loops copletely.