sacred-geometry-generator 1.0.0
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/.github/FUNDING.yml +3 -0
- package/LICENSE +21 -0
- package/README.md +51 -0
- package/favicon.png +0 -0
- package/gallery.html +90 -0
- package/icon-192.png +0 -0
- package/icon-512.png +0 -0
- package/index.html +240 -0
- package/js/sg.js +318 -0
- package/manifest.json +24 -0
- package/package.json +35 -0
- package/patterns.js +316 -0
- package/sg-app.png +0 -0
- package/sg-flower.png +0 -0
- package/sg-gallery.png +0 -0
- package/sg.css +295 -0
- package/sw.js +66 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Olivier Giulieri
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Sacred-Geometry
|
|
2
|
+
|
|
3
|
+
Draw, tune, and export the classic figures of sacred geometry: Vesica Piscis, Seed of Life, Flower of Life, Metatron's Cube, and the Golden Spiral. Every figure is constructed from circles and straight lines only - no images, no libraries.
|
|
4
|
+
|
|
5
|
+
- [Open the generator](https://evoluteur.github.io/sacred-geometry/)
|
|
6
|
+
- [Browse the gallery](https://evoluteur.github.io/sacred-geometry/gallery.html)
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
## Patterns
|
|
11
|
+
|
|
12
|
+
- **Vesica Piscis** - two circles, each passing through the other's center. The almond-shaped overlap (the mandorla) holds the square roots of 2, 3, and 5, and every figure below is built from it.
|
|
13
|
+
- **Seed of Life** - six circles around a seventh, each centered on the rim of the last.
|
|
14
|
+
- **Flower of Life** - the Seed continued outward on a triangular lattice, from 7 circles up to 127.
|
|
15
|
+
- **Metatron's Cube** - the thirteen circles of the Fruit of Life with all 78 lines joining their centers, holding the flat shadows of the five Platonic solids.
|
|
16
|
+
- **Golden Spiral** - Fibonacci squares laid corner to corner, with quarter circles approximating the logarithmic spiral that grows by phi (1.618...) every quarter turn.
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
## Controls
|
|
21
|
+
|
|
22
|
+
- **Depth** - rings, circles, or squares, depending on the pattern
|
|
23
|
+
- **Rotation** - 0 to 360 degrees
|
|
24
|
+
- **Stroke** - hairline to heavy
|
|
25
|
+
- **Palette** - Gold, Moonlight, Rose Quartz, Jade, Spectrum, Ink
|
|
26
|
+
- **Background** - Midnight, Void, Parchment, or transparent
|
|
27
|
+
- **Construction lines** - show the scaffolding each figure is built on
|
|
28
|
+
- **Animate** - watch the figure draw itself, stroke by stroke
|
|
29
|
+
- **Surprise me** - a random pattern, palette, rotation, and weight
|
|
30
|
+
|
|
31
|
+
## Exports
|
|
32
|
+
|
|
33
|
+
**Save SVG** and **Copy SVG** give you true vectors, so they scale to any size for print, laser cutting, plotting, or embroidery. **Save PNG** renders a 2048 x 2048 image. A transparent background exports with no backdrop at all.
|
|
34
|
+
|
|
35
|
+

|
|
36
|
+
|
|
37
|
+
## Under the hood
|
|
38
|
+
|
|
39
|
+
Plain HTML, CSS, and JavaScript building SVG through the DOM - no dependencies, no build step, no tracking. Each pattern is defined in [`patterns.js`](patterns.js) as a function returning shape descriptors in unit space, so adding a new figure means adding one entry to that array.
|
|
40
|
+
|
|
41
|
+
Sacred Geometry Generator is a Progressive Web App (PWA): you can install it on your phone or computer from the browser, and it works offline.
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
Sacred Geometry Generator is Open Source at [GitHub](https://github.com/evoluteur/sacred-geometry) with MIT license.
|
|
46
|
+
|
|
47
|
+
Encourage this project by [becoming a sponsor](https://github.com/sponsors/evoluteur).
|
|
48
|
+
|
|
49
|
+
You may also be interested in my other projects [Healing Frequencies](https://github.com/evoluteur/healing-frequencies) and [Motivational Numerology](https://github.com/evoluteur/motivational-numerology).
|
|
50
|
+
|
|
51
|
+
(c) 2026 [Olivier Giulieri](https://evoluteur.github.io/)
|
package/favicon.png
ADDED
|
Binary file
|
package/gallery.html
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<script
|
|
5
|
+
async
|
|
6
|
+
src="https://www.googletagmanager.com/gtag/js?id=G-063933E3C2"
|
|
7
|
+
></script>
|
|
8
|
+
<script>
|
|
9
|
+
window.dataLayer = window.dataLayer || [];
|
|
10
|
+
function gtag() {
|
|
11
|
+
dataLayer.push(arguments);
|
|
12
|
+
}
|
|
13
|
+
gtag("js", new Date());
|
|
14
|
+
gtag("config", "G-063933E3C2");
|
|
15
|
+
</script>
|
|
16
|
+
<title>Gallery - Sacred Geometry Generator</title>
|
|
17
|
+
<link
|
|
18
|
+
rel="canonical"
|
|
19
|
+
href="https://evoluteur.github.io/sacred-geometry/gallery.html"
|
|
20
|
+
/>
|
|
21
|
+
<meta charset="utf-8" />
|
|
22
|
+
<meta http-equiv="content-language" content="en" />
|
|
23
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
24
|
+
<link rel="icon" type="image/png" href="favicon.png" />
|
|
25
|
+
<link rel="manifest" href="manifest.json" />
|
|
26
|
+
<link rel="apple-touch-icon" href="icon-192.png" />
|
|
27
|
+
<meta name="theme-color" content="#12122a" />
|
|
28
|
+
<link href="sg.css" rel="stylesheet" />
|
|
29
|
+
<script>
|
|
30
|
+
if ("serviceWorker" in navigator) {
|
|
31
|
+
addEventListener("load", () =>
|
|
32
|
+
navigator.serviceWorker.register("sw.js"),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
36
|
+
<meta
|
|
37
|
+
name="description"
|
|
38
|
+
content="All the patterns of the Sacred Geometry Generator side by side: Vesica Piscis, Seed of Life, Flower of Life, Metatron's Cube, and the Golden Spiral."
|
|
39
|
+
/>
|
|
40
|
+
<link
|
|
41
|
+
rel="stylesheet"
|
|
42
|
+
href="https://fonts.googleapis.com/css?family=Marcellus"
|
|
43
|
+
/>
|
|
44
|
+
</head>
|
|
45
|
+
|
|
46
|
+
<body onload="initGallery()">
|
|
47
|
+
<header id="header">
|
|
48
|
+
<div class="links">
|
|
49
|
+
<a href="index.html">Generator</a>
|
|
50
|
+
<a
|
|
51
|
+
href="https://github.com/evoluteur/sacred-geometry"
|
|
52
|
+
target="_blank"
|
|
53
|
+
rel="noopener"
|
|
54
|
+
>GitHub</a
|
|
55
|
+
>
|
|
56
|
+
</div>
|
|
57
|
+
<h1>Sacred <span>Geometry</span></h1>
|
|
58
|
+
</header>
|
|
59
|
+
|
|
60
|
+
<p class="intro">
|
|
61
|
+
Five figures, each one built out of the one before it. Pick any of them to
|
|
62
|
+
open it in the generator, where you can change its depth, rotation,
|
|
63
|
+
palette, and stroke, then export it as SVG or PNG.
|
|
64
|
+
</p>
|
|
65
|
+
|
|
66
|
+
<div class="cards"></div>
|
|
67
|
+
|
|
68
|
+
<div class="footer">
|
|
69
|
+
<p>
|
|
70
|
+
Sacred Geometry Generator is open source on
|
|
71
|
+
<a
|
|
72
|
+
href="https://github.com/evoluteur/sacred-geometry"
|
|
73
|
+
target="_blank"
|
|
74
|
+
rel="noopener"
|
|
75
|
+
>GitHub</a
|
|
76
|
+
>
|
|
77
|
+
with an MIT license.
|
|
78
|
+
</p>
|
|
79
|
+
<p>
|
|
80
|
+
(c) 2026
|
|
81
|
+
<a href="https://evoluteur.github.io/" target="_blank" rel="noopener"
|
|
82
|
+
>Olivier Giulieri</a
|
|
83
|
+
>
|
|
84
|
+
</p>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<script src="patterns.js"></script>
|
|
88
|
+
<script src="js/sg.js"></script>
|
|
89
|
+
</body>
|
|
90
|
+
</html>
|
package/icon-192.png
ADDED
|
Binary file
|
package/icon-512.png
ADDED
|
Binary file
|
package/index.html
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<script
|
|
5
|
+
async
|
|
6
|
+
src="https://www.googletagmanager.com/gtag/js?id=G-063933E3C2"
|
|
7
|
+
></script>
|
|
8
|
+
<script>
|
|
9
|
+
window.dataLayer = window.dataLayer || [];
|
|
10
|
+
function gtag() {
|
|
11
|
+
dataLayer.push(arguments);
|
|
12
|
+
}
|
|
13
|
+
gtag("js", new Date());
|
|
14
|
+
gtag("config", "G-063933E3C2");
|
|
15
|
+
</script>
|
|
16
|
+
<title>Sacred Geometry Generator - Draw and export sacred geometry</title>
|
|
17
|
+
<link rel="canonical" href="https://evoluteur.github.io/sacred-geometry/" />
|
|
18
|
+
<meta charset="utf-8" />
|
|
19
|
+
<meta http-equiv="content-language" content="en" />
|
|
20
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
21
|
+
<link rel="icon" type="image/png" href="favicon.png" />
|
|
22
|
+
<link rel="manifest" href="manifest.json" />
|
|
23
|
+
<link rel="apple-touch-icon" href="icon-192.png" />
|
|
24
|
+
<meta name="theme-color" content="#12122a" />
|
|
25
|
+
<link href="sg.css" rel="stylesheet" />
|
|
26
|
+
<script>
|
|
27
|
+
if ("serviceWorker" in navigator) {
|
|
28
|
+
addEventListener("load", () =>
|
|
29
|
+
navigator.serviceWorker.register("sw.js"),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
</script>
|
|
33
|
+
<meta
|
|
34
|
+
name="keywords"
|
|
35
|
+
content="sacred geometry, flower of life, seed of life, metatron's cube, vesica piscis, fruit of life, golden spiral, fibonacci, golden ratio, phi, mandala, svg, generator, pattern, meditation"
|
|
36
|
+
/>
|
|
37
|
+
<meta
|
|
38
|
+
name="description"
|
|
39
|
+
content="Draw, tune, and export sacred geometry patterns as SVG or PNG: Vesica Piscis, Seed of Life, Flower of Life, Metatron's Cube, and the Golden Spiral."
|
|
40
|
+
/>
|
|
41
|
+
<meta property="og:type" content="website" />
|
|
42
|
+
<meta
|
|
43
|
+
property="og:url"
|
|
44
|
+
content="https://evoluteur.github.io/sacred-geometry/"
|
|
45
|
+
/>
|
|
46
|
+
<meta property="og:title" content="Sacred Geometry Generator" />
|
|
47
|
+
<meta
|
|
48
|
+
property="og:description"
|
|
49
|
+
content="Draw, tune, and export sacred geometry patterns as SVG or PNG: Vesica Piscis, Seed of Life, Flower of Life, Metatron's Cube, and the Golden Spiral."
|
|
50
|
+
/>
|
|
51
|
+
<meta
|
|
52
|
+
property="og:image"
|
|
53
|
+
content="https://raw.githubusercontent.com/evoluteur/sacred-geometry/main/sg-app.png"
|
|
54
|
+
/>
|
|
55
|
+
<meta name="twitter:card" content="summary_large_image" />
|
|
56
|
+
<meta name="twitter:title" content="Sacred Geometry Generator" />
|
|
57
|
+
<meta
|
|
58
|
+
name="twitter:description"
|
|
59
|
+
content="Draw, tune, and export sacred geometry patterns as SVG or PNG."
|
|
60
|
+
/>
|
|
61
|
+
<meta
|
|
62
|
+
name="twitter:image"
|
|
63
|
+
content="https://raw.githubusercontent.com/evoluteur/sacred-geometry/main/sg-app.png"
|
|
64
|
+
/>
|
|
65
|
+
<link
|
|
66
|
+
rel="stylesheet"
|
|
67
|
+
href="https://fonts.googleapis.com/css?family=Marcellus"
|
|
68
|
+
/>
|
|
69
|
+
<script type="application/ld+json">
|
|
70
|
+
{
|
|
71
|
+
"@context": "https://schema.org",
|
|
72
|
+
"@type": "WebApplication",
|
|
73
|
+
"name": "Sacred Geometry Generator",
|
|
74
|
+
"url": "https://evoluteur.github.io/sacred-geometry/",
|
|
75
|
+
"description": "Draw, tune, and export sacred geometry patterns as SVG or PNG: Vesica Piscis, Seed of Life, Flower of Life, Metatron's Cube, and the Golden Spiral.",
|
|
76
|
+
"applicationCategory": "DesignApplication",
|
|
77
|
+
"operatingSystem": "Any",
|
|
78
|
+
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
|
|
79
|
+
"author": {
|
|
80
|
+
"@type": "Person",
|
|
81
|
+
"name": "Olivier Giulieri",
|
|
82
|
+
"url": "https://evoluteur.github.io/"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
</script>
|
|
86
|
+
</head>
|
|
87
|
+
|
|
88
|
+
<body onload="init()">
|
|
89
|
+
<header id="header">
|
|
90
|
+
<div class="links">
|
|
91
|
+
<a href="gallery.html">Gallery</a>
|
|
92
|
+
<a
|
|
93
|
+
href="https://github.com/evoluteur/sacred-geometry"
|
|
94
|
+
target="_blank"
|
|
95
|
+
rel="noopener"
|
|
96
|
+
>GitHub</a
|
|
97
|
+
>
|
|
98
|
+
</div>
|
|
99
|
+
<h1>Sacred <span>Geometry</span></h1>
|
|
100
|
+
<nav class="nav"></nav>
|
|
101
|
+
</header>
|
|
102
|
+
|
|
103
|
+
<main>
|
|
104
|
+
<div class="stage" id="stage"></div>
|
|
105
|
+
|
|
106
|
+
<div class="panel">
|
|
107
|
+
<h2 id="pname"></h2>
|
|
108
|
+
<p class="tagline" id="tagline"></p>
|
|
109
|
+
<p class="blurb" id="blurb"></p>
|
|
110
|
+
|
|
111
|
+
<label id="stepsRow">
|
|
112
|
+
<span><b id="stepsLabel"></b> <b id="stepsVal"></b></span>
|
|
113
|
+
<input
|
|
114
|
+
type="range"
|
|
115
|
+
id="steps"
|
|
116
|
+
min="1"
|
|
117
|
+
max="6"
|
|
118
|
+
step="1"
|
|
119
|
+
oninput="onSteps(this)"
|
|
120
|
+
/>
|
|
121
|
+
</label>
|
|
122
|
+
|
|
123
|
+
<label>
|
|
124
|
+
<span>Rotation <b id="rotVal">0°</b></span>
|
|
125
|
+
<input
|
|
126
|
+
type="range"
|
|
127
|
+
id="rot"
|
|
128
|
+
min="0"
|
|
129
|
+
max="360"
|
|
130
|
+
step="1"
|
|
131
|
+
value="0"
|
|
132
|
+
oninput="onRot(this)"
|
|
133
|
+
/>
|
|
134
|
+
</label>
|
|
135
|
+
|
|
136
|
+
<label>
|
|
137
|
+
<span>Stroke <b id="strokeVal">0.5</b></span>
|
|
138
|
+
<input
|
|
139
|
+
type="range"
|
|
140
|
+
id="stroke"
|
|
141
|
+
min="0.1"
|
|
142
|
+
max="2"
|
|
143
|
+
step="0.1"
|
|
144
|
+
value="0.5"
|
|
145
|
+
oninput="onStroke(this)"
|
|
146
|
+
/>
|
|
147
|
+
</label>
|
|
148
|
+
|
|
149
|
+
<label>
|
|
150
|
+
<span>Palette</span>
|
|
151
|
+
<select id="palette" onchange="onSelect(this, 'palette')"></select>
|
|
152
|
+
</label>
|
|
153
|
+
|
|
154
|
+
<label>
|
|
155
|
+
<span>Background</span>
|
|
156
|
+
<select id="bg" onchange="onSelect(this, 'bg')"></select>
|
|
157
|
+
</label>
|
|
158
|
+
|
|
159
|
+
<label class="check">
|
|
160
|
+
<input
|
|
161
|
+
type="checkbox"
|
|
162
|
+
id="guides"
|
|
163
|
+
onchange="onCheck(this, 'guides')"
|
|
164
|
+
/>
|
|
165
|
+
Construction lines
|
|
166
|
+
</label>
|
|
167
|
+
|
|
168
|
+
<label class="check">
|
|
169
|
+
<input
|
|
170
|
+
type="checkbox"
|
|
171
|
+
id="animate"
|
|
172
|
+
checked
|
|
173
|
+
onchange="onCheck(this, 'animate')"
|
|
174
|
+
/>
|
|
175
|
+
Animate the drawing
|
|
176
|
+
</label>
|
|
177
|
+
|
|
178
|
+
<div class="buttons">
|
|
179
|
+
<button onclick="replay()">Replay</button>
|
|
180
|
+
<button onclick="surprise()">Surprise me</button>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="buttons">
|
|
183
|
+
<button onclick="downloadSvg()">Save SVG</button>
|
|
184
|
+
<button onclick="downloadPng()">Save PNG</button>
|
|
185
|
+
<button onclick="copySvg()">Copy SVG</button>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="hint" id="hint"></div>
|
|
188
|
+
</div>
|
|
189
|
+
</main>
|
|
190
|
+
|
|
191
|
+
<div class="footer">
|
|
192
|
+
<p>
|
|
193
|
+
Every figure is built from circles and straight lines only - no images,
|
|
194
|
+
no libraries, no tracking. Exports are true vectors, so they scale to
|
|
195
|
+
any size for print, laser cutting, or embroidery.
|
|
196
|
+
</p>
|
|
197
|
+
<p>
|
|
198
|
+
Sacred Geometry Generator is open source on
|
|
199
|
+
<a
|
|
200
|
+
href="https://github.com/evoluteur/sacred-geometry"
|
|
201
|
+
target="_blank"
|
|
202
|
+
rel="noopener"
|
|
203
|
+
>GitHub</a
|
|
204
|
+
>
|
|
205
|
+
with an MIT license. Encourage this project by
|
|
206
|
+
<a
|
|
207
|
+
href="https://github.com/sponsors/evoluteur"
|
|
208
|
+
target="_blank"
|
|
209
|
+
rel="noopener"
|
|
210
|
+
>becoming a sponsor</a
|
|
211
|
+
>.
|
|
212
|
+
</p>
|
|
213
|
+
<p>
|
|
214
|
+
You may also like
|
|
215
|
+
<a
|
|
216
|
+
href="https://evoluteur.github.io/healing-frequencies/"
|
|
217
|
+
target="_blank"
|
|
218
|
+
rel="noopener"
|
|
219
|
+
>Healing Frequencies</a
|
|
220
|
+
>
|
|
221
|
+
and
|
|
222
|
+
<a
|
|
223
|
+
href="https://evoluteur.github.io/motivational-numerology/"
|
|
224
|
+
target="_blank"
|
|
225
|
+
rel="noopener"
|
|
226
|
+
>Motivational Numerology</a
|
|
227
|
+
>.
|
|
228
|
+
</p>
|
|
229
|
+
<p>
|
|
230
|
+
(c) 2026
|
|
231
|
+
<a href="https://evoluteur.github.io/" target="_blank" rel="noopener"
|
|
232
|
+
>Olivier Giulieri</a
|
|
233
|
+
>
|
|
234
|
+
</p>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<script src="patterns.js"></script>
|
|
238
|
+
<script src="js/sg.js"></script>
|
|
239
|
+
</body>
|
|
240
|
+
</html>
|