-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·142 lines (140 loc) · 3.87 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang='en' >
<head>
<meta charset='UTF-8'>
<title>INDETERMINACY</title>
<link rel='stylesheet' href='css/style.css'>
<link href='https://fonts.googleapis.com/css?family=Space+Mono' rel='stylesheet'>
<!-- <link href="https://fonts.googleapis.com/css?family=Montserrat:100,400,900|Space+Mono" rel="stylesheet"> -->
</head>
<body>
<section class='description'>
<h1>INDETERMINACY</h1>
<p>
<a href='https://en.wikipedia.org/wiki/Indeterminacy_(music)' target='_blank'>Indeterminacy</a>
is a composing approach in which some aspects of a work are left open to chance or to the
interpreter’s free choice.
</p>
<p>
<a href='https://en.wikipedia.org/wiki/John_Cage' target='_blank'>John Cage</a>, a pioneer
of indeterminacy, defined it as “the ability of a piece to be performed in substantially
different ways.”
</p>
<p>
We invite you to create and share your own posters using this tool.
</p>
<p>
<b>CODE + CONCEPT BY</b>
<br>
<a href='https://github.com/alitorbati' target='_blank'>@alitorbati</a>
+ <a href='https://github.com/zekewattles' target='_blank'>@zekewattles</a>
</p>
<button onClick='toggleTheme()'>Theme</button>
</section>
<canvas></canvas>
<div class='config'>
<form class='form' onsubmit='return false;'>
<section>
<input
type='text'
name='text'
autofocus
autocomplete='off'
value='ORDER AND CHAOS'
>
</section>
<section>
<label>
Displacement
<br />
<input
type='range'
name='displacement'
min='0'
max='8'
step='1'
value=''
>
</label>
<br />
<label>
Rotation
<br />
<input
type='range'
name='rotation'
min='0'
max='8'
step='1'
value=''
>
</label>
<br />
<label>
Font Size
<br />
<input
type='range'
name='fontSize'
min='50'
max='450'
step='50'
value='100'
>
</label>
<br><br>
<label>
<input
type='radio'
name='textStyle'
value='fill'
checked
>Fill
</label>
<br />
<label>
<input
type='radio'
name='textStyle'
value='stroke'
>Stroke
</label>
<br><br>
<label>
<input
type='checkbox'
name='showBoxes'
>Show Boxes
</label>
<br />
<label>
<input
type='checkbox'
name='negative'
>Negative
</label>
<br><br>
<label>
Ratio
<br />
<select name='ratio'>
<option value='500:500' selected>Square</option>
<option value='612:792'>Letter</option>
<option value='480:720'>Poster</option>
</select>
</label>
<br><br>
<button type='button' name='remix' onClick='remixForm()'>Remix</button>
<button type='button' name='randomize' onClick='randomizeForm()'>Randomize</button>
<!-- <a name='print-canvas' href='#'>Print</a> -->
</section>
</form>
<section>
<a name='download-vector' href='#'>Export SVG</a>
<a name='download-raster' href='#'>Export PNG</a>
</section>
</div>
<script src='js/canvas2svg.js'></script>
<script src='js/index.js'></script>
</body>
</html>