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

reset-transform:

Default: false

Ignore the current transformation matrix

Elements to draw