This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (89 loc) · 3.18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>amelia - a creative-coding framework</title>
<link rel="stylesheet" href="./style.css">
<script src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
<script defer>hljs.highlightAll();</script>
</head>
<body>
<header>
<div id="title">
<a href="./">amelia</a>
</div>
<div id="menu">
<a href="./guide/">guide</a>
<a href="./ref/">docs</a>
<a href="./examples/">examples</a>
<a href="./editor/">editor 𝝰</a>
<a href="https://github.com/birdboat00/amelia/">github</a>
</div>
</header>
<main>
<p class="cc">
Amelia is an open-source creative coding toolkit
for modern JavaScript.
<br>
It is lightweight, functional and fast.
<br>
It allows you to create your starry nightsky at a squint.
</p>
<div class="twocolumn">
<div>
<img id="showcaseimage" src="./guide/spiral-labyrinth1.png">
<div class="cc">
<a href="./guide/" class="btn">Get started</a>
<a href="./editor/" class="btn">Open editor 𝝰</a>
</div>
</div>
<div>
<h1>Get amelia</h1>
<p>
Amelia is lightweight and modular and is written in modern
JavaScript.
</p>
<p>
Use it directly by downloading from <a href="https://github.com/birdboat00/amelia">GitHub</a>:
<pre>
<code class="language-js">
import { app } from "/path/to/amelia/mod.mjs";
</code>
</pre>
</p>
<p>
Or import it from <a
href="https://cdn.jsdelivr.net/gh/birdboat00/amelia/module/mod.mjs">jsDelivr</a>:
<pre>
<code class="language-js">
import { app } from "https://cdn.jsdelivr.net/gh/birdboat00/amelia/module/mod.mjs";
</code>
</pre>
</p>
<p>
You can also use the editor at <a href="./editor/">https://birdboat00.github.io/amelia/editor/</a>
</p>
<p>
Draw a rectangle in 7 lines of code:
<pre>
<code class="language-js">
import { app, Color } from "/path/to/amelia/mod.mjs";
app().quickstart((app) => {
let pen = app.pen();
pen.background().color(Color.Plum);
pen.rect().xy(20, 20).wh(60, 60).color(Color.Amber);
pen.plot();
});</code>
</pre>
</p>
</div>
</div>
</main>
<footer>
<a href="../">amelia</a> by <a href="https://github.com/birdboat00">birdboat00</a> and contributors in 2022
licensed under the MIT license.
</footer>
</body>
</html>