projectm_set_easter_egg

Function projectm_set_easter_egg 

Source
pub unsafe extern "C" fn projectm_set_easter_egg(
    instance: projectm_handle,
    value: f32,
)
Expand description

@brief Sets the “easter egg” value.

This doesn't enable any fancy feature, it only influences the randomized display time of presets. It's passed as the "sigma" value of the gaussian random number generator used to determine the maximum display time, effectively multiplying the generated number of seconds by this amount.

See function sampledPresetDuration() of the TimeKeeper class on how it is used.

@param instance The projectM instance handle. @param value The new “easter egg” value. Must be greater than zero, otherwise a default sigma value of 1.0 will be used.