mwg API
    Preparing search index...

    Interface BeamOptions

    interface BeamOptions {
        additive?: boolean;
        colour?: number;
        duration?: number;
        texture?: Texture<TextureSource<any>> | BeamTextureOptions;
        thin?: boolean;
        width?: number;
    }
    Index
    additive?: boolean

    additive blend; default true, set false for a solid beam

    colour?: number

    plain-line colour; ignored with texture. Default white

    duration?: number

    seconds till done; default 0.2

    texture?: Texture<TextureSource<any>> | BeamTextureOptions

    Repeating strip drawn instead of a plain line. The object form adds BeamTextureOptions.stretch and BeamTextureOptions.anchor; a bare texture tiles exactly as it always has.

    thin?: boolean

    The beam narrows with its own remaining life - thickness * (1 - progress)

    • the way its alpha fades, so it thins to nothing instead of keeping its full width through the whole fade. Default false: only the alpha decays.
    width?: number

    line width, or strip height with a texture; default 2