-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
153 lines (94 loc) · 3.68 KB
/
Copy pathindex.html
File metadata and controls
153 lines (94 loc) · 3.68 KB
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
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>infinity canvas</title>
<link rel="stylesheet" href="style.css">
<link rel="short icon" href="power.png" />
</head>
<body>
<div class="navbar">
<img id="menu" class="menu-icon" src="./menu.png" alt="loading"/>
<h3 class="title">perfect Lines Canvas</h3>
<a href="https://github.com/SmoothCanvas" target="_blank">
<img class="github-icon" src="./github.png" alt="loading"/>
</a>
</div>
<div class="container" id="view">
<canvas id="Layer1" ></canvas>
<canvas id="Layer2" ></canvas>
<canvas id="Layer3" ></canvas>
<canvas id="Layer4" ></canvas>
<canvas id="Layer5" ></canvas>
<canvas id="Layer6" ></canvas>
</div>
<div class="sp-panel" id="panel">
<div class="sp-section">
<div class="sp-section-title">Stroke</div>
<div class="sp-row">
<span class="sp-label" style="font-weight: bold;font-family:cursive;">Size</span>
<input type="range" id="size" min="0.10" max="400" value="8" step="0.10">
<span class="sp-val" id="size-v" style="font-weight: bold;font-family: cursive;">8</span>
</div>
<div class="sp-row">
<span class="sp-label" style="font-weight: bold;font-family:cursive;">Smoothing</span>
<input type="range" id="smoothing" min="0.001" max="2" value="0.186" step="0.001">
<span class="sp-val" id="smoothing-v" style="font-weight: bold;font-family: cursive;">0.186</span>
</div>
</div>
<div class="tools">
<img id="erraser" src="./kaka.png" alt="erraser"/>
<img id="pen" src="./controllers/b.png" alt="pen"/>
<img id="SelectCursor" src="./controllers/cursor.png" alt="cursor"/>
</div>
<br/>
<div class="tools">
<img id="CreateCurveLine" src="horizontal-line.png" alt="curvy-line-loading"/>
<img id="circle" src="./oval.png" alt="circle"/>
<img id="square" src="./square.png" alt="square" />
</div>
<div>
<div class="sp-section-title">Custom Color</div>
<div class="color-picker-wrapper">
<label for="color" class="color-label">Pick a color:</label>
<input type="color" id="color" class="color-picker" value="#000">
</div>
</div>
<div class="sp-section">
<div class="sp-section-title">Color</div>
<div class="sp-swatch-row" id="fill-swatches"></div>
<div class="sp-swatch-row" id="stroke-swatches">
</div>
</div>
<div class="sp-btns">
<div class="sp-btn-row">
<button class="sp-btn" style="font-weight: bold;font-family:cursive;" >Reset options</button>
</div>
<div class="sp-btn-row">
<button style="font-weight: bold;font-family:cursive;" class="sp-btn weight" id="undo" >undo</button>
<button style="font-weight: bold;font-family:cursive;" class="sp-btn weight" id="redo" >Redo</button>
<button style="font-weight: bold;font-family:cursive;" class="sp-btn weight" id="clear" >Clear</button>
</div>
<button class="sp-btn primary" >Documentation</button>
<button class="sp-btn primary" id="download" >
<a id="downloadlink"
href="#"
download>DOWNLOAD</a>
</button>
<button id="bb">draw Bézier</button>
</div>
</div>
<div id="percentage">1%</div>
<div id="version">V1.7.0 </div>
<div id="version2">
<a href="https://github.com/devtunis" target="_blank"> © 2026 NahdiGhaith </a>
</div>
<div id="tool-bar">
</div>
<script type="module" src="v2.1.5.fixCurveFollow.js"></script>
<script src="
https://cdn.jsdelivr.net/npm/roughjs@4.6.6/bundled/rough.min.js
"></script>
</body>
</html>