meo-skia-canvas
    Preparing search index...

    Interface CreateTextureOptions

    🧪 Not in the HTML Canvas standard.

    interface CreateTextureOptions {
        angle?: number;
        cap?: CanvasLineCap;
        color?: string;
        line?: number;
        offset?: Offset;
        outline?: boolean;
        path?: Path2D;
    }
    Index
    angle?: number

    The orientation of the pattern grid in radians

    The lineCap style to use if stroking the path

    color?: string

    The color to use for stroking/filling the path

    line?: number

    The lineWidth with which to stroke the path (if omitted, the path will be filled instead)

    offset?: Offset

    The amount by which to shift the pattern relative to the canvas origin

    outline?: boolean

    Whether to render the texture as a single path (rather than as a repeating pattern within a clipping mask)

    path?: Path2D

    The 2D shape to be drawn in a repeating grid with the specified spacing (if omitted, parallel lines will be used)