Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
lampda::modes::anims::fadeout::GravityDissolve< MaskBuffId, minMaskValue > Struct Template Reference

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)
 

Detailed Description

template<uint8_t MaskBuffId, uint8_t minMaskValue = 0>
struct lampda::modes::anims::fadeout::GravityDissolve< MaskBuffId, minMaskValue >

Make an animation disapear with gravity.

Parameters
MaskBuffIdIndex of the buffer that will contain the mask values for the dropped leds
minMaskValueValue to give to a pixel that gets droped

Member Function Documentation

◆ update_depop_rate()

template<uint8_t MaskBuffId, uint8_t minMaskValue = 0>
void lampda::modes::anims::fadeout::GravityDissolve< MaskBuffId, minMaskValue >::update_depop_rate ( auto &  ctx,
const float  progress 
)
inline

Update the drop rate.

Parameters
[in]progressCurrent progress

The documentation for this struct was generated from the following file: