Function

flash

(flashColor: Color, fadeOutTime: number): TimerController

Camera flash.

param flashColor- The color of the flash.

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

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

returns A timer controller.

since v3001.0

group Camera

kaplay logo

Layer

Miscalenous