rectangle

common
fun rectangle(xPos: Double, yPos: Double, width: Double, height: Double)

Adds a closed sub-path rectangle of the given size to the current path at position (xPos, yPos) in user-space coordinates.

Parameters

xPos

The X coordinate of the top left corner of the rectangle.

yPos

The Y coordinate of the top left corner of the rectangle.

width

The width of the rectangle.

height

The height of the rectangle.

linuxArm32
fun rectangle(xPos: Double, yPos: Double, width: Double, height: Double)

Parameters

xPos

The X coordinate of the top left corner of the rectangle.

yPos

The Y coordinate of the top left corner of the rectangle.

width

The width of the rectangle.

height

The height of the rectangle.

linuxX64
fun rectangle(xPos: Double, yPos: Double, width: Double, height: Double)

Parameters

xPos

The X coordinate of the top left corner of the rectangle.

yPos

The Y coordinate of the top left corner of the rectangle.

width

The width of the rectangle.

height

The height of the rectangle.