strokeRect method
The
CanvasRenderingContext2D.strokeRect()
method of the Canvas 2D API draws a rectangle that is stroked (outlined)
according to
the current CanvasRenderingContext2D.strokeStyle and other
context settings.
This method draws directly to the canvas without modifying the current path, so any subsequent CanvasRenderingContext2D.fill or CanvasRenderingContext2D.stroke calls will have no effect on it.
Implementation
external void strokeRect(
num x,
num y,
num w,
num h,
);