-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
33 lines (33 loc) · 2.25 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Four colors</title>
<script type="text/javascript" src="processing.min.js"></script>
<!-- <script type="text/javascript" src="randomColor.js"></script> -->
</head>
<body>
<h1>Draw on me!</h1>
<canvas data-processing-sources="fourcolors.pde"></canvas> <br>
<button onClick="Processing.instances[0].button_reset()">Reset</button>
<button onClick="Processing.instances[0].button_solve()">Solve</button>
<button onClick="Processing.instances[0].button_generate_image()">Generate Image</button><br>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img01.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img02.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img03.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img04.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img05.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img06.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img07.png"></img><br>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img08.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img09.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img10.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img11.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img12.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img13.png"></img>
<img onClick="Processing.instances[0].button_load_image(this.src)" height="50" src="examples/img14.png"></img>
<br>
<div id="data"></div>
<div id="log"></div>
</body>
</html>