create Draw Rectangle Command
fun Canvas.createDrawRectangleCommand(rectangle: Rectangle, colour: Paint): () -> Unit
Content copied to clipboard
Returns a command for drawing the given rectangle on the caller canvas.