Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...
    • Draw a border.

      Parameters

      • graphics: SmoothGraphics

        The graphics to draw the shape into.

      • shape:
            | Rectangle
            | Polygon
            | Circle
            | Ellipse
            | RoundedRectangle
            | ((graphics: SmoothGraphics) => void)

        The shape to draw or a draw callback.

      • Optionaloptions: { alignment?: number; clear?: boolean; color?: ColorSource; dashed?: boolean } = {}

        Additional options.

        • Optionalalignment?: number

          The alignment of the outline. Default: 0.5.

        • Optionalclear?: boolean

          Clear the graphics before drawing the border? Default: 0.5.

        • Optionalcolor?: ColorSource

          The border color. Default: 0xFFFFFF.

        • Optionaldashed?: boolean

          Dashed border? Default: false.

      Returns void