-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathindex.html
98 lines (82 loc) · 3.86 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
<html>
<head>
<title>Turing Drawings</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="encoding" content="utf-8">
<meta name="keywords" content="javascript, html5, canvas, Alan Turing, Turing machine, drawing, evolutionary">
<meta name="description" content="">
<script language="javascript" src="utils-html.js"></script>
<script language="javascript" src="utils-misc.js"></script>
<script language="javascript" src="main.js"></script>
<script language="javascript" src="programs.js"></script>
<link rel=stylesheet href="stylesheet.css" type="text/css">
</head>
<body>
<style>
#forkme { position: absolute; top: 0; right: 0; border: 0 }
@media screen and (max-width: 1000px) { #forkme { display: none } }
</style>
<a id="forkme" href="https://github.com/maximecb/Turing-Drawings">
<img src="forkme.png" alt="Fork me on GitHub">
</a>
<h1 class="title">
Turing Drawings
</h1>
<div align="center">
<table>
<tr>
<!-- canvas column -->
<td>
<div class="canvas_frame" style="width:512px; height:512px;">
<canvas id="canvas">
Your browser does not support the canvas element.
</canvas>
</div>
</td>
<!-- spacer column -->
<td width="10">
</td>
<!-- controls column -->
<td style="text-align:center; vertical-align: text-top;">
<form name="params" action="">
<div style="margin-top:8px; margin-bottom:8px;">
Num states:
<input id="numStates" type="number" value="4" min="1" max="24" step="1">
Num symbols:
<input id="numSymbols" type="number" value="3" min="2" max="99" step="1">
</div>
<div style="margin-top:8px; margin-bottom:8px;">
<button type="button" onclick="randomProg();">Random</button>
<button type="button" onclick="restartProg();">Restart</button>
</div>
<div style="margin-top:16px; margin-bottom:16px; width:400px; text-align: justify;">
Turing Drawings uses randomly generated Turing machines to produce
drawings on a canvas, as a form of generative art. The typical
Turing machine formulation manipulates symbols on a one-dimensional
tape. Turing Drawings uses machines that operate on a finite 2D grid,
where each grid cell can contain one symbol which corresponds to a
color value. This 2D grid is represented in the canvas shown at the left,
which is dynamically updated as the Turing machine iterates.
<br><br>
You can generate new drawings by pressing the "Random" button above. If
you find a drawing you like, and would like to share it online, you can
do so by copying the custom URL shown in the text area below.
</div>
<div style="margin-top:8px; margin-bottom:8px;">
<div>
Shareable URL for this drawing:
</div>
<div>
<input id="shareURL" type="text" size="42" value="" readonly>
</div>
</div>
</form>
</td>
</tr>
</table>
</div>
<div class="copyright">
Copyright © 2012 Maxime Chevalier-Boisvert
</div>
</body>
</html>