-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
114 lines (105 loc) · 3.3 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
<!DOCTYPE html>
<html>
<head>
<link rel="icon" type="image/svg+xml" href="../assets/icon/favicon.svg" />
<link rel="alternate icon" href="../assets/icon/favicon.ico" />
<title>ConcentriX</title>
<!-- ! meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Diego Inácio" />
<meta
property="og:url"
content="https://diegoinacio.github.io/svg-experiments/svg-experiment-001/index.html"
/>
<meta
name="title"
property="og:title"
content="ConcentriX >> SVG Experiments | Diego Inácio"
/>
<meta
name="description"
property="og:description"
content="Randomly rotated, inscribed and concentric squares."
/>
<meta name="image" property="og:image" content="thumb.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<!-- /! custom meta tags -->
<link type="text/css" rel="stylesheet" href="../assets/css/style.css" />
<style>
#svg-experiment {
background-color: black;
}
</style>
<style id="filter-style">
svg polygon {
filter: url(#drop-shadow);
}
</style>
<script type="text/javascript" src="../assets/js/script.js"></script>
</head>
<body class="experiment">
<div class="wrapper">
<!-- ! Return Corner -->
<div class="return-corner light"></div>
<!-- ! Render Corner -->
<div class="render-corner light"></div>
<!-- ! GitHub Corner -->
<div
class="github-corner light"
href="https://github.com/diegoinacio/svg-experiments/blob/master/svg-experiment-001"
></div>
<!-- ! Description -->
<div class="description light">
<table>
<tbody>
<tr>
<td>🌈</td>
<td>
Define the <em class="command">theta factor</em> <br />
<input
type="number"
id="theta_factor"
name="theta_factor"
value="0.05"
step="0.01"
min="0.01"
max="0.5"
onClick="stop_propagation()"
onChange="set_theta_factor()"
title="Define the maximum angle variance in iterations."
/>
</td>
</tr>
<tr>
<td>🌑</td>
<td>
Toggle <em class="command">drop shadow</em>
<input
type="checkbox"
name="drop_shadow"
id="drop_shadow"
onClick="stop_propagation()"
onChange="set_drop_shadow()"
style="margin-left: 1em"
checked
/>
</td>
</tr>
<tr>
<td>👇🏾</td>
<td>
<em class="command">Click</em> to change the position of the
center/axis.
</td>
</tr>
</tbody>
</table>
</div>
<!-- ! Experiment -->
<div id="svg-experiment"></div>
<script type="text/javascript" src="script.js"></script>
</div>
<script type="text/javascript" src="../assets/js/render.js"></script>
</body>
</html>