2017-06-08 02:13:35 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2017-06-08 18:47:23 +00:00
|
|
|
<title>viz (1)</title>
|
2017-06-08 02:13:35 +00:00
|
|
|
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">
|
|
|
|
<link rel="stylesheet" href="css/normalize.css">
|
|
|
|
<link rel="stylesheet" href="css/skeleton.css">
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
* {
|
|
|
|
font-family: 'Source Code Pro', monospace;
|
|
|
|
}
|
|
|
|
#viz {
|
|
|
|
//border: 1px solid grey;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script src="js/main.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<p align="center" style="margin-top:1%;"> <canvas id="viz"></canvas> </p>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row" style="margin-top: 10%; margin-bottom:1%;">
|
|
|
|
<div class="twelve column">
|
|
|
|
<h1>1</h1>
|
|
|
|
<p>
|
|
|
|
Using clojurescript and
|
|
|
|
<a href="https://quil.info">quil</a>.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Any point can only be occupied by a single dot.</br>
|
|
|
|
A line cannot intersect another line.</br>
|
|
|
|
Every tick a point may spawn 0 or more adjacent points.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
In this implementation adjacent points are chosen randomly,
|
|
|
|
both in number and direction. The result is somewhere between
|
|
|
|
Conway's Game of Life and white noise.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
This implementation is hella slow, most time is spent drawing
|
|
|
|
the lines. This was optimized so that adjacent parallel lines
|
|
|
|
are drawn in a single operation, but that produced negligible
|
|
|
|
benefit.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<!-- (#_#) -->
|
|
|
|
|
2017-06-08 18:47:23 +00:00
|
|
|
<p>
|
|
|
|
git clone https://github.com/mediocregopher/viz.git</br>
|
2017-06-08 02:13:35 +00:00
|
|
|
git checkout 7e9e898466ce1663ef295deef0e3d0ac86a36de0
|
2017-06-08 18:47:23 +00:00
|
|
|
</p>
|
2017-06-08 02:13:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|