Class DrawPrimitiveCommand

Draws a primitive (Rectangle)

Implements

Constructors

  • Parameters

    • primitiveType: Rectangle

      the type of the Primitive

    • position: [number, number]

      the position of the Primitive (x, y)

    • size: [number, number]

      the size of the Primitive (width, height)

    • fill: boolean = true

      if the Primitive should be filled. Default is true

    • color: string = ...

      the color of the primitive. Default is #d16cd8

    • Optionalthickness: number

      the thickness of the stroke when used when fill is set to false

    Returns DrawPrimitiveCommand

Properties

color: string = ...

the color of the primitive. Default is #d16cd8

fill: boolean = true

if the Primitive should be filled. Default is true

position: [number, number]

the position of the Primitive (x, y)

primitiveType: Rectangle

the type of the Primitive

renderCommandID: RenderCommandID = RenderCommandID.RC_DrawPrimitive
size: [number, number]

the size of the Primitive (width, height)

thickness?: number

the thickness of the stroke when used when fill is set to false

Methods