Strata - v1.4.10
    Preparing search index...

    Interface LightningProps

    Props for the Lightning component.

    interface LightningProps {
        active?: boolean;
        boltColor?: ColorRepresentation;
        flashColor?: ColorRepresentation;
        flashIntensity?: number;
        frequency?: number;
        onStrike?: () => void;
    }
    Index

    Properties

    active?: boolean

    Whether the lightning system is active. Default: true.

    boltColor?: ColorRepresentation

    Color of the visible lightning bolt. Default: '#ccccff'.

    flashColor?: ColorRepresentation

    Color of the screen-space flash. Default: white.

    flashIntensity?: number

    Brightness intensity of the flash effect. Default: 2.0.

    frequency?: number

    Probability of a strike per frame (0-1). Default: 0.1.

    onStrike?: () => void

    Callback fired whenever a lightning bolt strikes.