-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
213 lines (210 loc) · 9.24 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Draw with your pointer on the HTML canvas, then get the code to render it." />
<meta name="keywords" content="draw, canvas, javascript, mouse, pointer, no-code, HTML, Canvascript" />
<meta name="author" content="Viraj Bijpuria" />
<meta property="og:title" content="CanvaScript - Draw on the HTML canvas without writing code" />
<meta property="og:description" content="Draw with your pointer on the HTML canvas, then get the code to render it." />
<meta property="og:image" content="https://vbprodev.github.io/Canvascript/CanvaScript.png" />
<meta property="og:url" content="https://vbprodev.github.io/Canvascript/" />
<meta property="og:type" content="website" />
<meta name="google-site-verification" content="2nZEIGfRoHGC-BS3L-BIv6bkhVUZDpoGNgUK9Z4Pub8" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" />
<link rel="icon" href="assets/CanvaScript.png" type="image/icon type" />
<link rel="canonical" href="https://github.com/VBproDev/Canvascript" />
<link href="./stylesheet.css" rel="stylesheet" />
<title>CanvaScript - Draw on the HTML canvas without writing code</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "Canvascript",
"url": "https://vbprodev.github.io/Canvascript/",
"description": "Draw with your pointer on the HTML canvas, then get the code to render it",
"applicationCategory": "DesignApplication",
"operatingSystem": "Web",
"author": {
"@type": "Person",
"name": "Viraj Bijpuria"
},
"publisher": {
"@type": "Organization",
"name": "VBproDev",
"url": "https://github.com/VBproDev"
},
"softwareVersion": "1.0",
"image": "https://vbprodev.github.io/Canvascript/CanvaScript.png",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD",
"category": "Open Source"
},
"potentialAction": {
"@type": "UseAction",
"target": "https://vbprodev.github.io/Canvascript/"
},
"keywords": "draw, canvas, javascript, mouse, pointer, no-code, HTML, Canvascript",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://vbprodev.github.io/Canvascript/"
},
"sameAs": [
"https://github.com/VBproDev/Canvascript",
"https://discord.gg/ZXMEkzfZXx"
]
}
</script>
<script src="./script.js" defer></script>
</head>
<body>
<div itemscope itemtype="https://schema.org/SoftwareApplication">
<meta itemprop="name" content="Canvascript" />
<meta itemprop="url" content="https://vbprodev.github.io/Canvascript/" />
<meta itemprop="description" content="Create HTML canvas graphics without writing code. Just draw with your pointer on the HTML canvas, then get the code to render it. A no-code tool for web game devs crafting mobile-friendly high-performance graphics." />
<meta itemprop="applicationCategory" content="DesignApplication" />
<meta itemprop="applicationCategory" content="DeveloperApplication" />
<meta itemprop="operatingSystem" content="Web" />
<meta itemprop="softwareVersion" content="1.0" />
<div itemprop="author" itemscope itemtype="https://schema.org/Person">
<meta itemprop="name" content="Viraj Bijpuria" />
</div>
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<meta itemprop="name" content="VBproDev" />
<meta itemprop="url" content="https://github.com/VBproDev" />
</div>
<meta itemprop="image" content="assets/CanvaScript.png" />
<div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<meta itemprop="price" content="0" />
<meta itemprop="priceCurrency" content="USD" />
<meta itemprop="category" content="Open Source" />
</div>
<div itemprop="potentialAction" itemscope itemtype="https://schema.org/UseAction">
<meta itemprop="target" content="https://vbprodev.github.io/Canvascript/" />
</div>
<meta itemprop="keywords" content="javascript, performance, html5, canvas-api, no-code, web-game-dev, draw, mouse, pointer" />
<div itemprop="featureList" itemscope itemtype="https://schema.org/ItemList">
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<meta itemprop="name" content="Free-hand drawing on HTML canvas" />
</div>
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<meta itemprop="name" content="Automatic code generation" />
</div>
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<meta itemprop="name" content="Curved line support" />
</div>
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<meta itemprop="name" content="Design import/export" />
</div>
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<meta itemprop="name" content="Preview modes" />
</div>
</div>
<div itemprop="mainEntityOfPage" itemscope itemtype="https://schema.org/WebPage">
<meta itemprop="@id" content="https://vbprodev.github.io/Canvascript/" />
</div>
<meta itemprop="sameAs" content="https://github.com/VBproDev/Canvascript" />
<meta itemprop="sameAs" content="https://discord.gg/ZXMEkzfZXx" />
<div itemprop="applicationSuite" itemscope itemtype="https://schema.org/CreativeWorkSeries">
<meta itemprop="name" content="Web Game Development Tools" />
</div>
<meta itemprop="requirements" content="Modern web browser with HTML5 Canvas support" />
<meta itemprop="installUrl" content="https://vbprodev.github.io/Canvascript/" />
</div>
<div class="d-flex justify-content-center">
<div class="popup_saved d-flex align-items-center bg-success text-white rounded-pill py-2 px-4 position-fixed top-0 mt-3 transition-opacity">
<span>Design has been saved</span>
<button class="btn-close btn-close-white ms-2" aria-label="Close"></button>
</div>
</div>
<div class="d-flex justify-content-center p-2">
<h4 class="me-1">Line Color:</h4>
<input class="color me-3" type="color" />
<h4 class="me-1">Line width:</h4>
<input class="stroke-width" placeholder="1" min="1" type="number" id="stroke-width" />
</div>
<div class="d-flex justify-content-center">
<div class="form-check form-switch">
<input class="form-check-input isFreehand" type="checkbox" id="freehandSwitch"> Draw freehand?
</div>
</div>
<div class="d-flex justify-content-center">
<canvas class="canvas"></canvas>
</div>
<div class="actions">
<div>
<button class="undo">Undo</button>
<button class="reset">Reset</button>
<button class="save">Save</button>
</div>
<div>
<button class="generate primary">Generate code</button>
</div>
</div>
<code class="space"></code>
<div class="container curve-input-container" id="0">
<div>
<div class="title">Line curvature</div>
<div class="content">
<div>
X (%):
<input type="range" class="form-range curveX" value="0" /><span class="curveXupdate">0</span>
</div>
<div>
Y (%):
<input type="range" value="0" class="form-range curveY" /><span class="curveYupdate">0</span>
</div>
</div>
</div>
</div>
<div class="code">
<pre>
<code class="space"></code>
</pre>
</div>
<div class="container">
<div>
<div class="title">Project resolution (in pixels)</div>
<div class="content">
<input placeholder="width" name="width-input" class="width form-control" />
<input placeholder="height" name="height-input" class="height form-control" />
<button class="setBtn success">Set</button>
</div>
</div>
</div>
<div class="design_code">
<div>
<div>
<input name="user-design-array" class="design form-control" />
</div>
<p>This is your design, an array (a series of numbers), to edit some else's designs, paste his array here</p>
<div class="d-flex justify-content-center">
<div class="btn btn-success copy mb-3">Copy to clipboard</div>
</div>
</div>
</div>
<div class="use_design">
<button class="user-design success">Use design</button>
</div>
<div class="footer_wrapper">
<footer class="footer">
<div class="waves">
<div class="wave" id="wave1"></div>
<div class="wave" id="wave2"></div>
<div class="wave" id="wave3"></div>
<div class="wave" id="wave4"></div>
</div>
<ul class="menu">
<li><a href="https://discord.gg/ZXMEkzfZXx">Discord</a></li>
<li><a href="https://github.com/vbprodev/Canvascript">GitHub</a></li>
<li><a href="https://github.com/VBproDev/Canvascript/graphs/contributors">Team</a></li>
<li><a href="https://github.com/VBproDev/Canvascript/issues">Support</a></li>
</ul>
<p>©2024 Canvascript</p>
</footer>
</div>
</body>
</html>