Skip to main content
100%

SiLK

✓ Published0🌍 Public
SSleepyHarry
Last edited Dec 27, 2016
Created on Dec 27, 2016

SiLK generates an endless sequence of glowing white lightning bolts that streak horizontally across a black canvas, each bolt departing from the vertical center and ending at a random height. The animation runs on a 50-millisecond timer, repeatedly drawing a new bolt while fading the previous frame with a translucent black fill using Canvas `fillRect`. The code builds each bolt as a jagged polyline by stepping across the width, adding random vertical offsets, and then correcting the endpoint drift, all rendered with the Canvas 2D `stroke` API within a D3 v4 setup.

AI-generated description

forked from <a href='http://bl.ocks.org/SleepyHarry/'>SleepyHarry</a>'s block: <a href='http://bl.ocks.org/SleepyHarry/57a94dc08a79e16c72cec2270db012b0'>SiLK I</a>

forked from <a href='http://bl.ocks.org/SleepyHarry/'>SleepyHarry</a>'s block: <a href='http://bl.ocks.org/SleepyHarry/1018ea6e0b5d5bad2be16c473cfc4a49'>SiLK II</a>

mit Licensed

Similar vizzes