|
Lamp-Da 0.1
A compact lantern project
|
Make an animation disapear with gravity. More...
#include <fadeout.hpp>
Public Member Functions | |
| void | reset (auto &ctx) |
| void | loop (auto &ctx, uint32_t color) |
| void | update_depop_rate (auto &ctx, const float progress) |
| Update the drop rate. | |
Protected Member Functions | |
| bool | depop_one_particles (auto &ctx) |
Static Protected Member Functions | |
| static bool | recycle_particules_if_too_far (const Particle &p) |
Make an animation disapear with gravity.
| MaskBuffId | Index of the buffer that will contain the mask values for the dropped leds |
| minMaskValue | Value to give to a pixel that gets droped |
|
inline |
Update the drop rate.
| [in] | progress | Current progress |