From 8d1de40ef7f0210db7e0fcbeaaf8f5f4e2855f73 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Wed, 8 Jul 2020 19:12:40 -0600 Subject: viz 3 --- _posts/2018-11-12-viz-2.md | 2 +- _posts/2020-07-07-viz-3.md | 154 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 155 insertions(+), 1 deletion(-) create mode 100644 _posts/2020-07-07-viz-3.md (limited to '_posts') diff --git a/_posts/2018-11-12-viz-2.md b/_posts/2018-11-12-viz-2.md index 56f7aee..c3e342e 100644 --- a/_posts/2018-11-12-viz-2.md +++ b/_posts/2018-11-12-viz-2.md @@ -14,7 +14,7 @@ git_commit: v2

-This visualization builds on the previous. Structurally the cortesian grid has +This visualization builds on the previous. Structurally the cartesian grid has been turned into an isometric one, but this is more of an environmental change than a behavioral one. diff --git a/_posts/2020-07-07-viz-3.md b/_posts/2020-07-07-viz-3.md new file mode 100644 index 0000000..f56dbb6 --- /dev/null +++ b/_posts/2020-07-07-viz-3.md @@ -0,0 +1,154 @@ +--- +title: >- + Visualization 3 +description: >- + All the pixels. +series: viz +--- + + + +This visualization is built from the ground up. On every frame a random set of +pixels is chosen. Each chosen pixel calculates the average of its color and the +color of a random neighbor. Some random color drift is added in as well. It +replaces its own color with that calculated color. + +Choosing a neighbor is done using the "asteroid rule", ie a pixel at the very +top row is considered to be the neighbor of the pixel on the bottom row of the +same column. + +Without the asteroid rule the pixels would all eventually converge into a single +uniform color, generally a light blue, due to the colors at the edge, the reds, +being quickly averaged away. With the asteroid rule in place the canvas has no +edges, thus no position on the canvas is favored and balance can be maintained. + + -- cgit v1.2.3