summaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2018-11-12 16:18:45 -0500
committerBrian Picciano <mediocregopher@gmail.com>2018-11-12 16:18:45 -0500
commit5ed62d23b4bbbf7717de4adfa0eaf2af19365408 (patch)
treeaa3285b40f9905e45b33f61b77afa06a0d33a790 /_posts
parent886684ec4c0a3d032a974ae8b8e29fb0e0632125 (diff)
add viz 2 post
Diffstat (limited to '_posts')
-rw-r--r--_posts/2018-11-12-viz-2.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/_posts/2018-11-12-viz-2.md b/_posts/2018-11-12-viz-2.md
new file mode 100644
index 0000000..29bc84d
--- /dev/null
+++ b/_posts/2018-11-12-viz-2.md
@@ -0,0 +1,42 @@
+---
+title: >-
+ Visualization 2
+description: >-
+ Now in glorious technicolor!
+series: viz
+git_repo: https://github.com/mediocregopher/viz.git
+git_commit: 76caf80afc94655f2a21661714248676ed018328
+---
+
+
+<script src="/assets/viz/2/goog/base.js"></script>
+<script src="/assets/viz/2/cljs_deps.js"></script>
+<script>goog.require("viz.core");</script>
+<p align="center"><canvas id="viz"></canvas></p>
+
+This visualization builds on the previous. Structurally the cortesian grid has
+been turned into an isometric one, but this is more of an environmental change
+than a behavioral one.
+
+Behavioral changes which were made:
+
+* When a live point is deciding its next spawn points, it first sorts the set of
+ empty adjacent points from closest-to-the-center to farthest. Then it randomly
+ chooses a number `n` between `0` to `N` (where `N` is the size of that sorted
+ set) and spawns new points in the first `n` points of the sorted set.
+
+* Each point is spawned with an attached color, where the color chosen is a
+ slightly different hue than its parent. The change is deterministic, so all
+ child points of the same generation have the same color.
+
+The second change is purely cosmetic, but does create a mesmerizing effect. The
+first change alters the behavior dramatically.
+
+In the previous visualization the points moved around in groups aimlessly. Now
+the groups are all competing for the same thing, the center, and as a result
+congregate and are able to be viewed as a larger whole.
+
+The constant churn of the whole takes many forms, from a spiral in the center,
+to waves crashing against each other, to outright chaos, to random purges of
+nearly all points. Each form lasts for only a few seconds before giving way to
+another.