Skip to content

Mojo graphics canvas viewport

mojo:mojo.graphics.Canvas.Viewport

Property Viewport:std.geom.Recti#

The current viewport.

The viewport describes the rect within the render target that rendering occurs in.

All rendering is relative to the top-left of the viewport, and is clipped to the intersection of the viewport and scissor rects.

This property must not be modified if the canvas is in lighting mode.