From 2b4757367470d8e36bc00901dac567e375796ed4 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Nov 2018 00:24:09 -0500 Subject: update viz 2 to use the newest version, which has some performance improvements and is easier to read the code for. also update the description --- _posts/2018-11-12-viz-1.md | 2 +- _posts/2018-11-12-viz-2.md | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) (limited to '_posts') diff --git a/_posts/2018-11-12-viz-1.md b/_posts/2018-11-12-viz-1.md index 28b00af..8fd9fd9 100644 --- a/_posts/2018-11-12-viz-1.md +++ b/_posts/2018-11-12-viz-1.md @@ -5,7 +5,7 @@ description: >- Using clojurescript and quil to generate interesting visuals series: viz git_repo: https://github.com/mediocregopher/viz.git -git_commit: cb3d9d871d72b4f4487d175e73f0c30041963c42 +git_commit: v1 --- First I want to appologize if you've seen this already, I originally had this up diff --git a/_posts/2018-11-12-viz-2.md b/_posts/2018-11-12-viz-2.md index 29bc84d..56f7aee 100644 --- a/_posts/2018-11-12-viz-2.md +++ b/_posts/2018-11-12-viz-2.md @@ -5,7 +5,7 @@ description: >- Now in glorious technicolor! series: viz git_repo: https://github.com/mediocregopher/viz.git -git_commit: 76caf80afc94655f2a21661714248676ed018328 +git_commit: v2 --- @@ -21,19 +21,26 @@ 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. + empty adjacent points from closest-to-the-center to farthest. It then chooses + a number `n` between `0` to `N` (where `N` is the sorted set's size) and + spawns new points from the first `n` points of the sorted set. `n` is chosen + based on: + + * The live point's linear distance from the center. + + * A random multiplier. * 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. +first change alters the behavior dramatically. Only the points which compete for +the center are able to reproduce, but by the same token are more likely to be +starved out by other points doing the same. 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 +the groups are all competing for the same thing, the center. As a result they 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, -- cgit v1.2.3