tsParticles - v4.0.0-beta.12
    Preparing search index...

    Canvas emitter shape options interface

    interface IEmittersCanvasShapeOptions {
        element?: HTMLCanvasElement;
        filter: string | ((pixel: IRgba) => boolean);
        image?: HTMLImageElement;
        pixels: IPixelsOptions;
        scale: number;
        selector: string;
        text: ITextOptions;
    }

    Implemented by

    Index

    Properties

    The canvas element to use as the shape source

    filter: string | ((pixel: IRgba) => boolean)

    A filter function or string to apply to pixels

    The image element to use as the shape source

    The pixels options

    scale: number

    The scale factor for the shape

    selector: string

    The CSS selector for the canvas element

    The text options