Curv

v0.5+

Constants

pi
circle constant π (~3.14159)
tau
circle constant τ (2π) (~6.28319)
phi
golden ratio φ (~1.61803)
e
Euler's number e (~2.71828)
deg
degrees

Functions

identifier -> expression   function literal f x function with one argument f [x,y] func w/ list of multiple args f {x,y} func w/ record of multiple args f x y curried function x >> f pipeline, equivalent to f x a >> into f [b, c] :equivalent to f [a, b, c] a `f` b infix, equivalent to f [a, b] match function_list call function within a record compose function_list id identity function error error function

3D Shapes

sphere sphere d ellipsoid [dx, dy, dz] cylinder cylinder {d, h} cone {d, h} capped_cone {h, top, bottom} torus {major: d1, minor: d2} box box [dx, dy, dz] box [[xmin,ymin,zmin],[xmax,ymax,zmax]] box {xmin,ymin,zmin,xmax,ymax,zmax} prism n prism n {d, h} S   Platonic solid S can be tetrahedron,
    cube, octahedron, dodecahedron,
    or icosahedron
S d S.circumratio capsule {d: diameter, from: p1, to: p2} half_space {d, normal: n} half_space {at: p, normal: n} half_space [p1, p2, p3] gyroid extrude d shape revolve shape nothing  everything  make_shape {dist, colour, bbox, is_3d}