← labopen labyrinth →

Labyrinth

Architecture that follows the hand. A piece of land on a table in the sun (or, with ?flat, the travertine slab), and five brushes along the bottom. It opens in the hand: drag to turn, tap to take something up. auto reads gestures: the hand decides the shape, and the stone works out what it takes to stand. That means arches, arcades and piers under anything with nothing beneath it, arched ways where stone is cut out from under stone, steps and landings where a trace climbs, and courtyards where walls close round the ground. The other brushes are for when auto isn't what you meant: one piece exactly, dressing, taking away, and select, which takes up what was built and reads it another way.

> Townscaper interprets where you place blocks. Labyrinth should interpret what you're trying to construct.

The specification and a critique, in Simplified Technical English (ASD-STE100): labyrinth-ste.md.

The land

The labyrinth is built on a piece of land (land.ts): small, composed, seeded, and fixed once made (nothing built changes it). It's made to give the architecture reasons:

It's drawn as Taohua draws its hill, bleeding into the page: the open ground is the paper itself, only its features drawn, in marks. A bank is hatched in short tapered strokes down its fall; a cliff is washed grey as a dry brush lays it, streaked down its face, with strokes dragged down it and a broken ink line along its top; the shade cast on the ground is laid on in dry strokes. Away from what's built, and toward the land's edge, there are fewer and fewer marks, each as dark as ever: the dry brush reaches less far, the strokes are fewer, the stream breaks into strokes and then a line or two, and what lies on the land (a rock, a shrub, a cypress) is drawn whole or left out, more of them left out the further they are. It isn't faded out; it's drawn less, until there's only the page. No plinth under it. ?plinth puts it back on its plinth; the flat slab is always a slab on its table.

It goes on past its first square. Build within two cells of its edge and four more cells of it appear that way, the same land from the same seed: the rise going on rising, the ravine and its stream running on (never lower upstream, never higher downstream, banked either side), the low ground in front going on low. It goes as far as the grid does. Its first square is exactly as it's composed; undo what asked for more of it, and it's gone again.

Start again clears what's built, back to the land it was on; pressed again on bare land, it makes a new piece of land. ?land=<seed> opens a particular one, and ?flat keeps to the flat slab.

It's held two ways that never disagree.

It's barely drawn, after Taohua.

What's built on it meets the slope. Each block, wall, stair and pier at its column's ground goes down into the land as a foundation, and the plinth runs along the ground's line. A court's paving and a way's paving are laid on the land's flat middles.

Mass, or a way

Nothing is said ahead about what a stroke is for: each is read from where it's drawn (meant(), stroke() in gesture.ts), and the other kind of thing is offered with it (hold at the end of the stroke to read it otherwise). Going somewhere is a way: up or down to a top at another height, along paving, or from or to a place one goes from (a door, a flight's foot, the end of a way, a ladder's foot). A stroke from a top, along it or out from it, is mass. On open ground with neither, the land asks for a way and the slab for a wall. A tap raises, with a way up on to it, or a place to stand, offered with it. The land decides how a stroke is built, never what it's for. (There was a switch over the brushes, mass or way; ?intent=mass|way still holds one fixed, for the harnesses.)

?story=12 is four gestures making a place on land 6:

  1. a court walled round on the shelf (a stroke drawn round it, mass);
  2. a way up to its gate from the low ground in front (flights where the land rises, through the gate);
  3. a house raised two courses across the ravine;
  4. a way from in front of the court over the stream to the house (an arch over the water, a flight up to the house's level).

You can walk from the low ground into the court, and over the stream to the house.

Next for the land:

Forms chosen by their surroundings

What's built and the land it's on ask things of each other (context.ts, buildings.ts), worked out afresh each time:

Traditions: how a land is built

A land is built in one tradition, chosen by the land's own seed, so a settlement holds together. A tradition is a grammar of construction, not a costume: what its walls are made of, how it covers its tops, how it opens its faces. It decides how what's built is finished and drawn, never what's built or where a way goes.

The middle seaThe plateauThe northThe east
afterthe Mediterranean hill townsthe Persian courtyard housesthe canal townsthe courtyard towns of China and Japan
wallsdressed stone; a house rendered and washed in a colour of its own (ochre, peach, rose, pale blue or straw)dressed stonetimber frame over a stone ground storeywhitewash between dark posts, a beam at each floor; free walls too
topsterracotta, hipped or gabled; a shed against what's taller; now and then a dome on a towerflat, a parapet round them; now and then a dome on a towerslate, steep gables, the ends stepped in brick or framed; dormers; a chimney; a spire on a towergrey tile, hipped, low, the eaves deep and turned up at the corners; a skirt of tile at each floor
archesroundpointed; four-centred over two cells or moreroundround
openingsarched, square or slit windows; shutters folded back; an awning now and thentall windows, mostly arched, in panes behind teal, oxblood or turquoise bars; about half litsquare windows, small panes in white or green bars, about half lit; square-headed doorslattice windows and screen doors, lit like paper
stone dressingmarble or brick now and then (never on a washed house)marble or brick now and thenbrick, more oftennone: it's whitewashed

In the north and the east a roof leans only on taller stone, never on the hill: a house set into a bank has its own roof.

The same build in each tradition (the study, story 16): what's built is the same (the checks hold it), the silhouettes and finishes each tradition's own. node devtools/labyrinth-traditions.mjs draws it, and one tradition over several builds:

The sheets show where it stops for now. Only the houses, their walls and the stone's dressing follow the tradition. Arcades, colonnades, balustrades and courts are still the middle sea's in every land, and a build with no roofed houses (story 13) barely changes.

?region= holds a land to one tradition: mediterranean, persian, timber or eaves. ?region=mixed lays districts of the first two over one land, a sketch of lands with more than one; a way from one to the next isn't made yet.

Fronts: a building composed, not opened a face at a time

Three traditions compose their fronts (facades.ts); the middle sea opens each face to itself, as it did. Where a tradition composes round a court (the plateau), a building's faces are read as runs of bays, each knowing what it looks onto, and composed as fronts:

Where a tradition composes to the street (the north): every storey over the ground is jettied out an eighth of a cell over the one under it, a beam along its foot, round its corners, out only into free air; and along the front the house's door is in, each bay but the door's is a shopfront: a wide opening under a timber beam, a stall board, the window lit behind it, a board hinged up over it.

Where a tradition composes on verandas (the east): at the ground, onto open ground, under the skirt of tile over it, a deck of boards on posts, and the front behind it a lattice of screens, lit like paper.

What's built is untouched: galleries, iwans and loggias are cut into stone that's already there. What stands out past it does so by a third of a cell at most (a portal's frame a twelfth, a jetty an eighth, a veranda's deck about a fifth, a balcony a third) and only into free air: never into a way kept for a stair, a passage the hand kept open, or other stone. The roof's things stand on the building's own cells where nothing's put and no way goes. None of it is walked.

?story=17 is the fronts' fixture, a courtyard house: wings two storeys high round a court, the north wing three, a gate through the south. node devtools/labyrinth-traditions.mjs --only=fronts draws the sheet. A rebuild of story 8 on the plateau went from about 105 ms to 118 ms in node; the courtyard house on the plateau is lighter than in the middle sea (53k vertices against 92k: flat tops against tiled roofs).

A finer grid (each cell four in plan, so thin walls and narrow paths are the default) was tried on this house: stories 18 and 19, ?plan=0.5 to see them in proportion. What it costs, what it lets a hand place, and what the rules would need: labyrinth-grid.md.

The half grid

A new world is built on a grid of half cells. Each cell of before is four squares in plan, and a storey is still a square high. A wall or a way one square thick is half a cell: thin unless it's built up. The in-between can be placed by hand: a pier half a cell thick, a storey set back half a cell, a recess, a pilaster, a path half a cell wide. ?grid=cells makes a new world in whole cells as before, and a world already kept stays on its own grid.

What stays a cell's size, read over two squares:

What's built is held in squares and drawn squeezed in plan to its proportions, and a touch is taken back through the squeeze to the square it was aimed at. The grid holds 24 cells each way (48 squares) for now.

Still in cells:

Stories 18 to 20 are on the half grid: the courtyard house made four, the house as the half grid would build it, and a scene built by hand. node devtools/labyrinth-half-smoke.mjs builds one in the browser. The spike that led here is labyrinth-grid.md.

Inside: plans, uses, and the ladder

Buildings now know what's inside them, though nothing of it is drawn yet. Everything is worked out from what's built, never stored.

Floor plans (plans.ts):

Uses (uses.ts) are read from the plan:

The ladder (ladder.ts) isn't shown. It sets out:

reckon(w) says where a settlement stands, what it can build, what the next rung would take and add, and what's built ahead of it. The study, for example, is a hamlet of four houses, short of a workshop, and its tile roofs and shutters are ahead of it.

node devtools/labyrinth-plans.mjs [--stories=… --tradition=… --rooms] reports all of it.

The ladder, drawn

A world made new in the app is drawn by its ladder (realise.ts). What its tradition would build is drawn only as far as the settlement knows how; past that, it falls back to what comes before. Plans and uses still read what the tradition intends, so the ladder never feeds back into its own reckoning.

?ladder=0|1 sets it for any world; ?rung=n draws as if at that rung, with every craft at hand. The storyboards, and worlds kept from before, are drawn as built. node devtools/labyrinth-ladder-look.mjs draws the sheet below: stories 16 and 17 at rungs 0 to 3, and as built.

What the uses leave outside

What a building's for can now be seen from the street (props.ts). Each prop stands against the wall beside the door its use goes in and out by, never in front of it, and only on clear, level ground, half a cell from any other. Props are drawn a little larger than life (1.4×), so they read at the camera's distance.

Workshops can now be built on purpose. Ground floors are windowed every other bay, so a dim ground room hardly ever happened. A ground room come into from outside is now also a workshop when its building is broad: three cells by three somewhere in its plan, two storeys or more, the household living over the work. Houses two cells deep, and a court house's wings, stay dwellings.

Story 21, a town at work, shows all of this (?story=21). It's on the half grid and drawn by its ladder:

It reckons as a town. node devtools/labyrinth-props-look.mjs draws the sheet below, close on each.

A coast. A land seed below nought is the coast made from that seed's size (?land=-11). It's the same land met by the sea across its front:

Stone built in the sea stands on its own ground (a mole, a quay), and in some of the water beside it a rowing boat is moored, white with a wooden inside, its bow to the stone. Along the foot of the cliff, where the sea meets land nothing's built on, there's white water at the waterline and now and then a rock half under it. The sea is drawn as far as the land is, and where the drawing's reach runs out it breaks up into the page, raggedly and finely, as a dry brush leaves a wash, so it never runs on as a sheet to the drawing's edge.

Story 22, a village on a cliff over a harbour (?story=22), is the cliff village board's (node devtools/cliff-board.mjs labyrinth draws it beside the target, devtools/targets/cliff-village.jpg). On a middle-sea coast (land −11):

A pond on the land is let into the ground too: its bench sits a fifth of a level down, under its water, so the water and its kerb show (before, the hillside lay over it). Unlike Blocks, the village isn't cut out as a piece: the land and the sea round it thin out into lines on the page.

Water

The pool brush lets water into whatever it touches: the ground (a pool), or a top, up off the ground (a basin, let into the stone, a rim round it). Traced, it runs a channel along the stroke, along the ground or along a top. A stroke drawn round, back to where it began, fills what it closes round: a pond on the ground, a basin across a terrace. (With the block brush the same: a platform, filled.)

A basin spills. Cells of water side by side at one level are one basin, and it spills from one spout: at the edge over water if there's water below any edge (water finds water), else over the deepest drop; never where stone stands beside it at its level, or a floor runs out level from it. A basin walled in all round holds its water. At the spout the rim is cut and a lip runs out over the edge; the water falls from it in a sheet, curving out as it falls, white streaks running down it, foam where it lands. It lands in water (a pool, the stream, a lower basin, which spills in turn: a cascade), or, on the ground or a top, in a bowl the rules put there to catch it, a round moulded stone bowl. Onto a stair or a way it just lands. No roof is put over water, nor a pot or a lantern in it; it's neither stood on nor walked through. The land's stream falls where its bed steps, with foam at the foot of each.

What grows

No mode of its own: planting is read from the same gestures, as another reading, and from where it's made (green.ts, plants.ts). Plants come in sizes, each standing in its cell (nothing's built or walked there), each a size up from the last, so a plant touched again grows: a shrub (waist high), a hedge (clipped, joined to the hedge beside it), a cypress (slender, two levels), an olive (a gnarled trunk, a round silver-green crown over head height; now and then on two stems), a stone pine (a tall leaning trunk, an umbrella crown two cells out, high over walls; now and then a lower tier out on a limb), and a climber (stems up the face of what it's planted against, as high as that stands, leaves in clumps along them, flowering a deep magenta, spilling over the top where the top's open, not over a roof's eaves). Each tree grows to its own size: some young and small, some old and spreading.

The cats

What's built has residents (cats.ts). They show how a place can be lived in: a warm ledge becomes a bed, a coping a way to balance along, a court somewhere to play.

Who they are. Each is a little individual that stays: a name, a coat (ginger tabby, grey, cream, brown tabby, black, ginger and white, silver tabby, black and white), how it's inclined (to the sun, to height, to shelter, to play; how curious, how bold, how sleepy), and its favourite places, which it comes to by resting in them (kept on the device for each piece of land). Who the nth to come is follows from the land's seed, so it's the same cat every visit.

How many. As many as what's built is home for: worked out from its habitable places (raised terraces, ledges, copings, sheltered corners, courts), not from how much stone there is, so a solid tower is home to fewer than the same stone in terraces. Bare land, or the bare stone, is home to none. When there's room for another, one arrives, walking in from the edge of the land; when there's less, the newest leaves.

Where they can be (perches.ts, a second reading of what's built beside the walk, checked against the stone as it's drawn): every place a figure could stand, and more a cat finds: the top of a thin wall (a coping, one cat at a time, walked only the way its wall runs), the edge of a top over a drop (a ledge, looking out), the top of a parapet. Between them, the walk's own ways (up stairs along their noses, through arches, through a building from door to door, unseen, taking the time it would), up and down the land's banks, and a cat's own: a hop up a level or onto a parapet, down as much as two, a leap across a gap a cell wide (a slot, the stream), each only where the air it would pass through is clear. Each place is known for whether it's in the sun (a ray toward it through the stone), sheltered, high, looking out, by water, in a court.

How they live. Mostly resting or quietly watching. Now and then one wanders off somewhere it doesn't know, or out over a drop; one washes; sometimes two play: a crouch, a short chase, a pounce, then both sit and wash. They rest where they're inclined to: sun, height, shelter, a view, a favourite. One to a resting place, one to a coping or a ledge, so none overlap. A jump is approached, weighed (the head lowered toward where it'll land), gathered for (the haunches dropped), reached across, and landed forepaws first.

What building does to them. Stone going up nearby, they look; close by, they get up and move aside; then, when it's settled, the curious go to see, sniff it, and may claim it as a new place to rest. Build a bridge in front of them and one will find the new way. Stone rising under a cat lifts it; stone taken from under one, it jumps clear. They never fall, and never stand in the hand's way: a tap with a building brush builds, cat or no cat.

Meeting one. With the hand brush, a tap on a cat says who it is and what it's doing; Follow › keeps the eye on the cat, wherever it goes, until ‹ Return to building; how close you are stays yours to pinch.

Showing it somewhere. While one's followed, nothing's built: a drag turns the view, and a tap on a place shows the cat where to go (a ring marks it until it's there). It answers as it is. Awake, it looks where it's shown and goes, the bold at once, the incurious in their own time (a wash first), far off at a trot. Asleep, an ear turns, and only a second tap soon after wakes it (a stretch, then it goes). Where it can't get, it goes as near as it can (the ring dashed); where another cat's resting, it goes to be beside it. Somewhere to rest, it may settle there, and a place it's been shown becomes a little more its own, kept with its favourites between visits, so a cat can be taught where it likes to be. A tap on the cat itself: a slow blink, and a purr (asleep, it purrs in its sleep). A tap on another cat follows that one instead.

How they move. Not from middle to middle: a walk over open places goes wherever in each it happens to pass, a little to one side or the other, its corners cut in easy curves; its pace drifts, quickening and slowing, easing in and to a stop; now and then it stops on the way to look round, or sits a moment; its head leads, the body following. A narrow place is taken slowly. Idle, a head drifts, looking about; before it lies down a cat turns round once or so on the spot; a playful one sometimes dashes off for no reason anyone can see, then washes as if it never happened.

How they're drawn (catbody.ts): to a cat's scale against a storey, a little larger than life, so it reads. Soft, rounded, a few facets left, hardly a face; a coat's markings kept on the body as it moves (a tabby's bands round body, legs and tail; paler underneath). Twelve poses (stand, walk, sit, loaf, curl, groom, stretch, gather, reach, land, assess, sniff), blended from one to the next; the legs found from where the feet are (a cat's knees and elbows); walking, the feet in a cat's order, each planted while the body passes over it. They breathe, a tail's tip twitches, an ear flicks. Drawn with the stone: its shadows, an inked contour.

?story=13 is a place for cats (a court with a gate, a terrace, a stair up to a higher one, a thin wall, and a bridge built last); ?hold=1 keeps the last thing back, for building in front of them. ?catsat=60 runs their lives on a minute before showing them; ?cats=study is the motion sheet; ?cats=0, none.

The brushes

BrushTapTrace
hand (where it opens)takes up what's touched; again, the whole it's part of; on nothing, puts it down. Where there's nothing to take up (the bare land), says what it isturns the view
autoraisesbuilds a wall, reaches out, climbs (below)
piece (hold it, or touch it again, for the sheet; it's always called piece, and its picture is what it holds)puts one piece, or dresses a stonea run of pieces, or dresses every stone passed over
taketakes anything away, the outermost first (a pergola, a basin, a lantern or pot, a roof, a ladder, then the stone, paving or stair under them); what the rules made is taken by changing what made it, so it stays taken: a pier is asked not to stand (what it carried is held another way, or taken with it if nothing else will), a meeting's stone is read at a rung that doesn't lay it. Only the land itself stayscarves through: what's over the cut is carried on an arch
selecttakes up a piece; again, the whole it's part ofturns the view

What's taken up stays taken up while you're in the hand or select. The card shows only what it is; its chevron (or a tap on its name) opens the details: how much of it, its readings, its dressing, take it away. Shut or open, the selection holds; × puts it down, and so does a tap on nothing in the hand.

Two fingers, from any brush, turn the view (across), tilt it (up and down), and pinch closer to where they are.

What the hand is asking for, while it's asking

While a stroke is under the finger:

What kind of wall a stroke makes is chosen once, where it starts, and kept as it grows. Its openings count from its start, so drawing it on never moves them.

The balance between them: auto is for painting, select is for correcting, the piece brush is the fallback. You paint with auto, and where it read you wrong, select what came out and switch it to another reading. The piece brush is for when you already know exactly what you want. Everything it makes is something auto understands, so the two mix freely, and every brush is an operation on the same stone, undone and resolved the same way.

auto: the gestures

GestureOn…Builds
tapbare stonea plinth
a topanother course
a sidethe stone pushed out that way (on an arch or a pier, if there's nothing under it)
tracefrom the stone, across the stonea wall along the stroke
from a top, out over anythinga walkway at that height, on stone laid under it. Where it meets stone at that height it stops and joins it: it never cuts what you built
from a top to another top at the same heighta walkway joining them: a bridge where it crosses the air
from the stone or a top to a top at another heightsteps and landings, climbing evenly along the straight parts of the stroke. Too steep for the stroke, and nothing is built: it says why (draw it longer, or straighter)

piece: one thing, exactly

PieceWhere it's touchedPuts down
blockthe stone, a top, a sidestone in the free cell on that side. Against a side, out over nothing too, as a tap does (the rules carry it)
wallthe samea thin wall: a wall's thickness, full height, running away from what it's put against (or across the view), and on to the stone beside it. Tapped on its top, it goes up as a thin wall; on its side, out along its way
archthe samestone with a way through it, running where it's open either side; on an arch, the same way, making one tall arch
staira floor, or beside stonea flight up a level, climbing toward the stone it was put against (or onto a neighbour's top)
bridgea gap at a level, from beside stonestone laid across the whole span at once (up to seven cells), marked as a bridge so the rules carry it on one arch
treea floor with room above ita cypress
poolthe stonewater let into the stone

Traced, a piece makes a run along the stroke, at the height the stroke started from:

The rest (bridge, tree, pool) are put once, where the stroke began. An arch put by hand carries what's on it like any stone, and a pool by hand sits in a court beside the court's own water.

Dressing

Dressing changes how stone looks, never what stands. Tap a stone, or stroke over several:

Dressing
travertine, brick, marblewhat the stone is. Brick is laid in narrow courses, each brick its own shade, with pavers on top; marble is white and veined, in large blocks
mosswhere it has a reason: on faces turned from the sun, at the damp foot of a course, in the joints and along the edges of a top (not across it), soft patches with a few brighter flecks
ivyreal leaves: a few trailing strands hanging from the top of each open side, every leaf its own size, tilt and shade; some lean out over the top edge, so the ivy breaks the stone's outline
parapeta low wall round the open edges of a top, a wall's thickness all along, with a coping a little proud of it, and a capped post where it ends
balustradethe same edges railed with turned balusters, close set, on a plinth under a rail, a pedestal at each end and corner. On a stair, it climbs with the flight, a baluster on each tread, a newel at its foot and head
jalia screen of pierced stone: round a top, up a stair, or (on a thin wall) the wall itself pierced through
lantern, poton a top with room over it: a lantern on a post, lit; a terracotta pot with a clipped shrub
pergolaover a place (the ground, or a top, touched): posts, beams, rafters, a vine
mashrabiyaa building's upper windows, each in a box of turned lattice out from the wall
colonnettesa building's doors and arched windows framed with slim shafts (and its windows made arched)

A stroke that starts on a stone that already has the dressing takes it off everything it passes over. Take, tapped on a lantern or a pot, takes that first. The rules dress a little of their own accord: a bridge, or an arch two levels up or more, gets a parapet along its open sides.

select: taking something up, and reading it another way

Tap a piece and it's taken up: its own surfaces faintly warmed and its outline drawn round it, in the picture itself (not a box round its cells). A card says what it is, with:

Taken upIts readings
an arch the rules madean arch · a lintel (flat, on its piers) · a colonnade (a raised row of three or more) · two bays (a pier forced under its middle, if it's three or more long) · solid (stone under it, down to what's below)
an arcade, or a bridgethe same, for all its arches at once. Solid fills over its piers too
a piera pier (a column, under a colonnade) · solid
a block (yours, or laid by a connection)a block · a thin wall · an arch either way · a stair
an arch you putan arch · turned · a block · a stair
a staireach of the four ways it could climb · a block
a walla wall · a thin wall · an arcaded wall (a way through each cell of its foot)
a building (a tower, a terrace)its roof as the rules choose · no roof · hipped · gable · shed · dome

A switched reading is an operation like any other: undone, written down, replayed. From then on it's the hand's. The rules don't decide it again.

The stone grows

There's no cap on how high it goes: tap a column up as far as you like, and the view stands back to keep it all in. The slab starts as an 8 × 8 square. After that it is only as big as what's built, plus two cells all round. Build on its edge cell and it grows two cells further; undo, and it goes back. There's always room to go on, and the view follows, framing the whole slab. The grid underneath is 48 × 48 cells.

Moving round it

Print: the layers in hand. In print, the five brushes give way to the drawing's five layers, in the order they're laid from the paper up:

LayerIts sliders
pagehow far everything's taken to the page; where to start from (house, picture, drawing, page; the house setting is the study's)
underhow much of the drawing lies under the picture
colourwhat's built, the land, the water; its reach
lightshade, cast, hollows; how much of them the land keeps; its reach
inkmarks, outlines; their reach; thin ↔ fade (how they give out)

Each layer's reach is how far out from what's built it goes, so the colour can be held close while the light carries on past it (in sepia on the paper) and the lines further still.

Every picture (41)

The storyboard

The palette

Motifs and dressing

A labyrinth

Features and rhythms

Flow

Gestures read

The land

Forms chosen by their surroundings

Water

The cats

Auto, with character

The brushes

Close to

Print