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))
})
})

X-axis rotation angle

Y-axis rotation angle

Z-axis rotation angle

sorted:

Sort drawables by maximum distance (front to back)

cull-face:

none or str

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:

Ignore the current transformation matrix

flatten:

Set all z-components to 0.

Elements to draw