Dynamic Icons Scripting Reference - v1.3.0
    Preparing search index...

    Interface CreateTextureOptions

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

    Properties

    path?: Path2D

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

    line?: number

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

    color?: string

    The color to use for stroking/filling the path

    angle?: number

    The orientation of the pattern grid in radians

    offset?: Offset

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