Canvasity.strokeRect

Stroke a rectangular area.

This behaves as though the current path were reset to a single rectangle and then stroked as usual. However, the current path is not actually changed. The current transform at the time that this is called will affect the given point and rectangle. The width and/or the height may be negative or zero. If both are zero, or the current transform is not invertible, this does nothing. If only one is zero, this behaves as though it strokes a single horizontal or vertical line.

Parameters

x float

Horizontal coordinate of a rectangle corner.

y float

Vertical coordinate of a rectangle corner.

w float

Width of the rectangle.

h float

Height of the rectangle.

Meta