Canvas:renderTo
Render to the Canvas using a function.

This is a shortcut to love.graphics.setCanvas:

canvas:renderTo( func )

is the same as

love.graphics.setCanvas( canvas )

func()

love.graphics.setCanvas()
Canvas:renderTo( func, ... )
func function A function performing drawing operations.
... any Additional arguments to call the function with.