jetlag2d
    Preparing search index...

    Class FilledBox

    FilledBox describes any object whose visual representation is a filled box.

    Index
    • Build a FilledBox

      Parameters

      • cfg: {
            fillColor: string;
            height: number;
            lineColor?: string;
            lineWidth?: number;
            offset?: JLOffset;
            width: number;
            z?: 0 | 1 | 2 | 4 | -4 | 3 | -3 | -2 | -1;
        }
        • fillColor: string

          Color to fill the box

        • height: number

          Height of the box

        • OptionallineColor?: string

          Optional color for the border

        • OptionallineWidth?: number

          Optional width of the border

        • Optionaloffset?: JLOffset

          An offset between the component's center and its RigidBody's center (optional)

        • width: number

          Width of the box

        • Optionalz?: 0 | 1 | 2 | 4 | -4 | 3 | -3 | -2 | -1

          An optional z index in the range [-4,4]

      Returns FilledBox

    actor?: Actor<unknown>

    The Actor to which this FilledSprite is attached

    fillColor: string

    Fill color

    height: number

    Height of the box

    offset: JLOffset

    An offset between the FilledBox's center and the RigidBody's center

    width: number

    Width of the box

    z: -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4

    Z index of the box