-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
103 lines (90 loc) · 3.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SVG Cursor</title>
<link rel="stylesheet" href="style.css">
<body>
<div class="controls-wrapper">
<header class="header">
<h1>SVG Pattern Maker</h1>
<a id="downloadButton" href="#" download="pattern.svg">Download SVG</a>
</header>
<div id="controls">
<div>
<label for="patternType">Pattern Type</label>
<select id="patternType">
<option value="circles">Circles</option>
<option value="squares">Squares</option>
<option value="triangles">Triangles</option>
<option value="lines">Lines</option>
<option value="plus">Plus Sign</option>
<option value="corner">Corner</option>
<option value="dots">Dots</option>
</select>
</div>
<div>
<label for="aspectRatio">Aspect Ratio</label>
<select id="aspectRatio">
<option value="1:1">1:1 (Square)</option>
<option value="4:3">4:3</option>
<option value="16:9">16:9</option>
<option value="2:1">2:1</option>
<option value="1:2">1:2</option>
<option value="custom">Custom</option>
</select>
</div>
<div id="customAspectRatioContainer" style="display: none">
<label for="customAspectRatio">Custom Aspect Ratio</label>
<input
type="number"
id="customAspectRatio"
min="0.1"
max="10"
step="0.1"
value="1"
/>
</div>
<div>
<label for="sizeGradient">Size Gradient</label>
<select id="sizeGradient">
<option value="none">None</option>
<option value="radial">Radial</option>
<option value="angular">Angular</option>
<option value="wave">Wave</option>
<option value="linear">Linear</option>
</select>
</div>
<div>
<label for="size">Size</label>
<input type="range" id="size" min="1" max="100" value="20" />
</div>
<div>
<label for="spacing">Spacing</label>
<input type="range" id="spacing" min="0" max="100" value="10" />
</div>
<div>
<label for="rotation">Rotation </label>
<input type="range" id="rotation" min="0" max="360" value="0" />
</div>
<div>
<label for="backgroundColor">BG Color</label>
<input type="color" id="backgroundColor" value="#ffffff" />
</div>
<div>
<label for="shapeColor">Shape Color</label>
<input type="color" id="shapeColor" value="#000000" />
</div>
<div>
<label for="opacity">Opacity</label>
<input type="range" id="opacity" min="0" max="1" step="0.1" value="1" />
</div>
</div>
<div class="canvas-section">
<div id="patternContainer"></div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>