-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSprite.html
48 lines (48 loc) · 1.65 KB
/
Sprite.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
<<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sprite sheets</title>
<script src="https://unpkg.com/[email protected]/dist/react.js"></script>
<script src="https://unpkg.com/[email protected]/dist/react-dom.js"></script>
<script src="https://unpkg.com/[email protected]/browser.min.js"></script>
<style type="text/css">
body{
background: #dddddd;
#canvas{
position: absolute;
left:0px;
top:20px;
margin: 20px;
background: #ffffff;
border: thin inset rgba(100,150,230,0.5);
cursor:pointer;
}
#readout{
margin-top:10px;
margin-left:15px;
color:blue;
}
}
</style>
</head>
<body>
<div id="readout"></div>
<canvas id="canvas" width="500" height="250">Canvas not supported</canvas>
<div>
<input type="checkbox" id="editCheckbox" checked/>
<input type="checkbox" id="fillCheckbox" checked/>
<input type="checkbox" id="shadowCheckbox" />
<input type="radio" id="drawRadio" checked/>
<input type="radio" id="eraserRadio" checked/>
<input id="scaleSlider" type="range" step='0.01' value='1.0'
min="1" max='3.0'/>
<button id='eraseAllButton'>erase</button>
<button id="sunglassButton">sunglass</button>
<button id="animateButton">startAnimation</button>
<button id="startStopButton">startButton</button>
<output id="scaleOutput">1.0</output>
</div>
<script type="text/javascript" src='basic.js'></script>
</body>
</html>