Skip to main content

ortho

ortho() 

Set-up an orthographic projection environment.

This is a transformation matrix that rotates elements around the x, the y and the z axis by the parameters given.

By default an isometric projection (x ≈ 35.264°, y = 45°) is set.

ortho({
on-xz({
rect((-1,-1), (1,1))
})
})

Default: 35.264deg

X-axis rotation angle

Default: 45deg

Y-axis rotation angle

Default: 0deg

Z-axis rotation angle

sorted:

Default: true

Sort drawables by maximum distance (front to back)

cull-face:

none or str
Default: none

Enable back-face culling if set to "cw" for clockwise

or "ccw" for counter-clockwise. Polygons of the specified order will not get drawn.

reset-transform:

Default: false

Ignore the current transformation matrix

Elements to draw