The tour
the language in fifteen figures
-
CEvery word ends in a seed, written as a capital.
Cis a box; the others areT O I Dand the prisms, antiprisms and pyramidsP5 A5 Y5. -
C(3, 2, 1)Numbers in brackets set the size: width, depth and height.
-
x CA step is written to the left of the shape it changes.
xextrudes: it pulls each face out into a block, with sides and a top. -
x[+z] CA selector in square brackets picks the faces a step acts on.
+zis every face looking up. -
k[top] x[+z] CSteps run right to left, each on the shape the one before it left. Faces remember the role they were made in, so
topis the lidxjust made, andkputs a tent on it. -
x[inner](-1.6) i[+z](0.2) CInset the top with
i, then extrude its inner face the other way: a cup. -
x[roof&inner](0.5) i[roof&top](0.3) x[+z](0.4){roof} C(3, 2, 1)A label in braces names what a step makes, and faces built from them keep it. Selectors combine:
&is both,|either,!not. -
house = k[top](0.9) x[+z](0.6) C(3, 2, 1)
x[side](0.3) houseA name stands for a word, from the next line on.
-
storey[part](h) = x[new&inner](h) i[part](0.3)
roof = k[top](0.8)
roof storey[top](1.2)^3 x[+z]{tower} CA word without a seed is a reusable list of steps. It can take numbers in
( )and a selector in[ ], so it acts on whatever part it is given;newis what the step before made.^3repeats a step three times. -
h[inner] i[+x|-x](0.3) x[+x](1) x[-x](1) Chjoins two faces with a tube. It is the only step that makes a hole. -
half = x[+x&side](1.5) x[+z](2) C
mirror[+x&top] halfBuild half an arch, then
mirrorjoins it to its reflection across the faces you pick: here the end of the lintel. The copies keep their roles, so later steps act on both halves. -
twist = turn[top](15) x[top](0.5)
twist^8 x[+z](0.5) C(1.4, 1.4, 0.4)move,turnandstretchmove the whole shape, or with a selector just part of it. Here each storey's lid is turned a little: a twisted column. -
house = k[top](0.4) x[+z](0.4) C(1, 1, 1.2)
tree = k[top](2) x[inner](0.3) i[+z](-3) P8(0.2, 1.2)
spin(8) move(3) house + treeA shape can be in several pieces, its bodies.
+puts shapes side by side,arraycopies one in a row, andspincopies it around the origin. -
t IConway's polyhedron operators are single letters:
d a t k gand the ones made from them. Truncate an icosahedron and you have a football. -
k[vertex](0.25) t IThey take selectors like any other step.
tmade the pentagons as vertex faces, so here only they get tents.
The rest is on the cheatsheet. Try it all in the playground.