flash(flashColor: Color, fadeOutTime: number): TimerController

Camera flash.

paramflashColor- The color of the flash.

paramfadeOutTime- The time it takes for the flash to fade out.

onClick(() => {
    // flashed
    flash(WHITE, 0.5);
});

returnsA timer controller.

sincev3001.0

kaplay logo

Misc

Layer