-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdraw.html
More file actions
70 lines (48 loc) · 1.6 KB
/
draw.html
File metadata and controls
70 lines (48 loc) · 1.6 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SpeakMeDraw</title>
<script src="fabric.js"></script>
<link rel = "stylesheet" href = "draw.css" type = "text/css" >
<link href="https://fonts.googleapis.com/css?family=Arizonia|Bungee+Inline|Charmonman|Dawning+of+a+New+Day|Elsie:900|Fascinate|Meddon|Plaster|Reem+Kufi|Righteous|Sacramento|Sniglet:800|Stalemate" rel="stylesheet"><script src='nlp.js'></script>
<script src="voicedetect.js"></script>
<script src="bravey.min.js"></script>
</head>
<body>
<div class = "back" >
<div class = "nav">
Speak Your Brush Out!
</div>
<canvas id = "myCanvas" width=780 height =500></canvas>
</div>
<div class = "sec1" >
<div class = "name">
AUDAMI
</div>
<textarea id = "ins">
INSTRUCTIONS :
1) Give all your commands as speech.
2) Basic geometrical shapes are supported.
eg. (Draw a Circle of radius 30 )
2) Values are taken in pixel count.
3) Give the shape its attributes like colour, scaling , position etc by calling them by their name.
eg. (Colour the circle green)
4) Clear the canvas when needed.
5) Save your artwork in .png format.
6) Be Creative :)
</textarea>
</div>
<div class = "sec2" >
<!--<button id = "speak" name = "speak" class = "speakbutton" > Start Listening</button> -->
<button type="button" onclick=startRecord() class = "speakbutton">Click to speak</button>
<textarea id = "myinput">
</textarea>
</div>
<script src='handler.js'></script>
<script src='myScript.js'></script>
</body>
<script>
document.getElementById("myinput").readOnly = true;
</script>
</html>