-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
121 lines (115 loc) · 3.65 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
<!DOCTYPE html>
<html>
<head>
<!-- <link rel="stylesheet" href="css/tokens.css" />
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/layout.css" />
<link rel="stylesheet" href="css/type.css" />
<link rel="stylesheet" href="css/input.css" />
<link rel="stylesheet" href="css/feedback.css" />
<link rel="stylesheet" href="css/media.css" />
<link rel="stylesheet" href="css/utility.css" />
<link rel="stylesheet" href="css/special.css" /> -->
<style>
body {
display: flex;
justify-content: space-around;
justify-content: center;
align-items: center;
height: 100vh;
max-height: 100%;
margin: 0;
background: #eee;
}
main {
flex: 2;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
max-height: 100%;
}
aside {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: left;
gap: 1rem;
padding: 2rem;
height: 100vh;
max-height: 100%;
}
</style>
</head>
<body>
<main>
<svg id="gradient-svg" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient id="radial-gradient" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
<stop offset="0%" style="stop-color: red" />
<stop offset="100%" style="stop-color: blue" />
</radialGradient>
</defs>
<circle id="circle" cx="100" cy="100" r="80" fill="url(#radial-gradient)" />
</svg>
</main>
<aside>
<label>
Stops
<span id="stops-value"></span>
<input type="range" min="2" max="7" value="2" id="stops">
</label>
<div id="color-picker"></div>
<button id="randomise">Randomise Colors</button>
<div>
<label>
<input type="radio" name="spread" value="pad"> Pad
</label>
<label>
<input type="radio" name="spread" value="reflect"> Reflect
</label>
<label>
<input type="radio" name="spread" value="repeat" checked> Repeat
</label>
</div>
<label>
Skew X
<span id="skewX-value"></span>
<input type="range" id="skewX" min="-90" max="90" step="1" value="0">
</label>
<label>
Skew Y
<span id="skewY-value"></span>
<input type="range" id="skewY" min="-90" max="90" step="1" value="0">
</label>
<label>
CX
<span id="cx-value"></span>
<input type="range" min="0" max="100" value="50" id="cx">
</label>
<label>
CY
<span id="cy-value"></span>
<input type="range" min="0" max="100" value="50" id="cy">
</label>
<label>
R
<span id="r-value"></span>
<input type="range" min="0" max="100" value="50" id="r">
</label>
<label>
FX
<span id="fx-value"></span>
<input type="range" min="0" max="100" value="50" id="fx">
</label>
<label>
FY
<span id="fy-value"></span>
<input type="range" min="0" max="100" value="50" id="fy">
</label>
</aside>
<script src="ramps.js"></script>
</body>
</html>