Every pattern piece on this site so far has been a wall: tiles, glaze, clay, cement, a grille in front of whitewash. The three newest leave the wall. Hitomezashi is a running stitch on indigo cotton, Jali is a stone screen and the light it lets onto the floor, and Tartan is wool on a loom. Each one is still a rule, and in two of them the rule was worth moving into the engine.
Hitomezashi with the words sevilla and acapulco, Jali at half past nine in the morning, and Royal Stewart on the loom.
Two words and a running stitch
Hitomezashi is the sashiko pattern made of one stitch. A grid has a running stitch along every row and every column, and the only decision is whether each line starts with a stitch or a gap. That is one bit per row and one bit per column, so the whole design is two strings of bits.
The page takes two words and turns them into those bits. A vowel is a 1 and a consonant is a 0, so "sevilla" across is 0101001 and "acapulco" down is 10101001, and the bits repeat for as long as the cloth goes on. In the advanced tab a letter can instead be five bits, its place in the alphabet. Noughts and ones are taken as typed, which is how the plain patterns are made: 01 both ways gives stairs, 0110 gives crosses.
Stairs (01 and 01), crosses (0110 both ways) and needle and thread at five bits a letter.
Row j has a stitch from i to i + 1 when i plus the row's bit is odd, and the columns work the same way turned. The stitches never cross each other, so the cloth falls into regions, and the "two tones" switch shades them alternately. The tone of a square is the number of stitches you cross walking to it from the origin, counted odd or even. The page works that out from running counts of the bits, so shading a square costs no more than drawing it.
Each stitch is a short round thread with a hole at either end where it goes through, a shadow on the cloth, a lit top and the slanted marks of the ply. The cloth is a plain weave with clouds where the dye took more or less, and the odd slub. Boro lays the cloth down as patches of different blues before it is stitched. The Mantón de Manila has a sheen pass that I thought this might use, but cotton is matt, so it doesn't.
The presets are named for what they look like. I have not checked the traditional Japanese names against a pattern book, so I left them off. The words go in the address as ?rows= and ?cols=, so a cloth made from two names can be sent as a link.
Light through a stone screen
A jali is a pierced stone screen, the window of the Mughal buildings at Fatehpur Sikri, Agra and Ahmedabad: a slab of sandstone or marble with a pattern cut right through it. It is seen two ways at once. From inside the room the stone is dark against the sky in every opening, and on the floor the same pattern lies in sunlight, stretched by the angle of the sun and sliding across the flags through the day.
The sikri preset: red sandstone, stars and hexagons, mid morning, with the sun low on the left throwing the pattern to the right.
The page is the inside of that room. The wall faces you with the screen on a sill, either an arch or a rectangle, and the floor runs back towards you from an eye fifteen units away from the wall. A point on the floor Y units out from the wall is drawn D / (D − Y) times further from the middle of the picture, and lower by the same factor, and that is the whole of the perspective.
Every opening is a polygon. There are four patterns: six-pointed stars with hexagons between them, a honeycomb, octagons with squares, and eight-pointed stars with lozenges. Each is a lattice of shapes at the size where they would touch, shrunk about their middles by the "open" slider, and what is left between them is the stone. On the wall each opening is filled with sky. On the floor each corner of each opening is thrown along the sun's ray to where it lands and then drawn through the eye.
The slab has a thickness. Light only reaches the floor if it gets through both faces of an opening, and with a low sun the back face is shifted sideways from the front one. The light on the floor is the opening intersected with itself moved by that shift, and the part that falls short lights the side of the cut instead. A thick slab at a low sun closes the screen almost completely.
Agra at noon, with the light falling straight down, and the zenana screen, whose slab is thick enough to keep the late morning sun off the floor.
The sun comes from the engine. Sebka cast the first shadows, of brick courses standing proud of a wall, and Rejería cast the second, of iron in front of whitewash. Both carried their own copy of the code. Jali was the third page to want it, so it moved into the package as azulejeria/shadow: sunOf(hour) gives the sun's slant, its height and the colour of the light and the shade, and castShadow draws a caster on a layer, cuts back out whatever must stay lit, blurs it and multiplies it onto the page. Sebka and Rejería now use it too, and I compared seven canvas hashes before and after to check they render exactly as they did.
The shade is blue because what the sun doesn't reach is lit by the sky, and it gets bluer as the sun gets lower and warmer. In Jali the whole wall is the caster and the openings are the cut, which is the reverse of Sebka, where the bricks are the caster and everything else is lit.
The stones are red sandstone, white Makrana marble (the marble of the Taj Mahal), buff and a Jaisalmer yellow. Floral jalis are not built, and nor is a screen cut to one of the wallpaper groups from the seventeen ways a wall can repeat.
A sett is read twice
A tartan is written down as a sett, a string of colours and thread counts. "K4 R24 K24 Y4" is four threads of black, twenty-four of red, twenty-four of black and four of yellow. The weaver warps the loom in that order, turning back at each end so the stripes mirror, and then weaves the weft in the same order. Nothing else is decided.
Black Watch, B/24 K4 B4 K4 B4 K20 G24 K6 G24 K20 B24 K4 B/4, in 2/2 twill.
Where red crosses red the cloth is red, but where red crosses black it is neither. Tartan is a 2/2 twill: each thread goes over two and under two, one step along from its neighbour, so where two colours cross they show in fine diagonal lines, half and half. Six colours in a sett make twenty-one in the cloth, and fifteen of them are mixtures your eye makes out of hatching.
A weaving draft is a small program in three parts. The threading says which shaft each warp thread goes through, the tie-up says which shafts each treadle lifts, and the treadling says which treadle is pressed for each pass of the weft. Where a thread's shaft is lifted the warp lies on top; everywhere else the weft does. That is the whole of the structure, and in the new azulejeria/loom module it is one function, lifted(draft, i, j). The 2/2 twill comes out as this, one row per pass:
1100
0110
0011
1001
The module has six drafts (plain, twill, drill, herringbone, diamond and basket), a parser for setts, and three sets of dyes: modern, ancient and weathered. weavePixels weaves a window of cloth at one pixel a crossing without needing a page, so the rule has tests that run in Node. The page weaves at one pixel a thread, draws that up to size without smoothing, blurs it a little for the nap of the wool, and lays a tile of thread and fibre over the top.
A sett turns back at both ends unless it has "..." in it, in which case it just repeats. "warp | weft" gives the weft a sett of its own, which is what tweed needs. Houndstooth is four black and four white repeating, in the same twill, and nothing more. "On the bias" hangs the cloth at 45°.
Houndstooth (K4 W4, repeating), tweed (a herringbone with a dark warp and a pale weft), and this site's colours as a sett, on the bias.
Black Watch is 304 threads to the repeat and Royal Stewart is 190, most of them red. I took both counts from tartan sellers' pages and haven't checked them against the Scottish Register of Tartans. The double tap gives you a sett nobody has registered: two grounds in broad bands with thin lines over them. Kente and Mallorcan ikat should follow from the same module, but both need a weft that isn't a repeat, and the loom doesn't do that yet.
In the package
azulejeria/shadow and azulejeria/loom are in azulejeria 2.7.0. Hitomezashi put nothing into the package: its rule is short and no other page uses it yet.
First published on stepinto.dev.






Top comments (0)