azulejeria 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +3 -3
- package/src/azulejeria.js +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ own mottled glaze, a slight turn, a slight shift, and a few of them craze.
|
|
|
12
12
|
|
|
13
13
|
This package is the engine. You bring the motifs, the palettes and the
|
|
14
14
|
presets. Two walls built on it: [Azulejería](https://stepinto.dev/art/azulejeria.html)
|
|
15
|
-
(
|
|
15
|
+
(Talavera rosettes and Mudéjar strapwork) and [Jerez](https://stepinto.dev/art/jerez.html)
|
|
16
16
|
(vines, horses and sherry). The design is written up
|
|
17
17
|
[here](https://stepinto.dev/posts/tiles-painted-by-rule/).
|
|
18
18
|
|
|
@@ -33,7 +33,7 @@ import { createWall, mountPanel, PAINTERS, arcPts, ink } from 'azulejeria';
|
|
|
33
33
|
const palettes = {
|
|
34
34
|
// glaze: the tin white. tint: the mottle in it. ink: the trace line.
|
|
35
35
|
// wash: the main fill. accents: other glazes. grout: between tiles.
|
|
36
|
-
|
|
36
|
+
talavera: { glaze: '#f3f1ea', tint: '#e2e5de', ink: '#1b3a7e', wash: '#2b5cab', accents: [], grout: '#b6b0a2' },
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
const motifs = {
|
|
@@ -59,11 +59,11 @@ const painters = {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
const presets = {
|
|
62
|
-
|
|
62
|
+
talavera: { seed: 71, repeat: 'module', pal: 'talavera', motif: 'rosette', density: 4, hand: 0.5, brush: 1, scale: 120, bands: true, age: false },
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
const wall = createWall(document.getElementById('c'), { palettes, motifs, painters, presets });
|
|
66
|
-
mountPanel(wall, { fileName: 'wall', defaultPreset: '
|
|
66
|
+
mountPanel(wall, { fileName: 'wall', defaultPreset: 'talavera' });
|
|
67
67
|
</script>
|
|
68
68
|
```
|
|
69
69
|
|
|
@@ -93,8 +93,8 @@ a `mood` line for the seed; `.card[data-preset]` cards each holding a
|
|
|
93
93
|
canvas for a thumbnail; `.tab[data-tab]` buttons switching `presetsBody`
|
|
94
94
|
and `panelBody`; `panel` with `panelHead` and `panelToggle`; and a `title`
|
|
95
95
|
overlay that fades on first touch. Anything missing is skipped. It also
|
|
96
|
-
reads the query string, so `?preset=
|
|
97
|
-
`?seed=4242&repeat=rotate&pal=
|
|
96
|
+
reads the query string, so `?preset=talavera` or
|
|
97
|
+
`?seed=4242&repeat=rotate&pal=talavera&motif=rosette&density=5&age=1` is a
|
|
98
98
|
shareable wall. Copy the markup from either of the two pages above.
|
|
99
99
|
|
|
100
100
|
**`azulejeria.css`** styles that markup. Colour it with the custom
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azulejeria",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Tin-glazed tiles painted by rule. A seeded canvas engine for
|
|
5
|
-
"keywords": ["canvas", "generative", "tiles", "azulejo", "
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Tin-glazed tiles painted by rule. A seeded canvas engine for Spanish azulejo walls: a diagonal-symmetric design, brushwork that drifts, washes that pool, and four ways to repeat the tile.",
|
|
5
|
+
"keywords": ["canvas", "generative", "tiles", "azulejo", "mudejar", "sevilla", "pattern", "procedural", "art", "wallpaper"],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Andy Cross",
|
|
8
8
|
"homepage": "https://stepinto.dev/art/azulejeria.html",
|
package/src/azulejeria.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// azulejeria: tin-glazed tiles painted by rule.
|
|
2
2
|
//
|
|
3
3
|
// A design lives in the unit square and is symmetric across its
|
|
4
|
-
// diagonal, which is the trick every
|
|
4
|
+
// diagonal, which is the trick every four-tile módulo relies on. Lay it as a
|
|
5
5
|
// quarter of a tile and the tile carries the whole motif. Lay it as a
|
|
6
6
|
// whole tile and the motif only completes where four tiles meet,
|
|
7
7
|
// mirrored or turned, so the wall reads at a scale no single tile has.
|