The User is Drunk
Inclusive Components (I recommend getting the book, it's free!)
The User is Drunk
Inclusive Components (I recommend getting the book, it's free!)
5 HOME:HGR2 | |
10 HCOLOR=5:REM Orange OR Red Line | |
20 HPLOT 0,81 TO 0,72 | |
30 HPLOT 0,72 TO 9,63 | |
40 HPLOT 9,63 TO 36,63 | |
50 HPLOT 36,63 TO 63,90 | |
60 HPLOT 63,90 TO 108,90 | |
110 HCOLOR=2:REM Purple OR Yellow Line |
console.log(`%c `.repeat(5),...`5CFFABFFFFAB5CF`.match(/.../g).map(c=>`background:#${c};display:block;padding:2%26%`)) |
/*! kalreset.css v1.0.0 | MIT License | |
* Based on modern-normalize by sindresorhus, | |
* A (more) Modern CSS Reset by set.studio, | |
* and Adrian Roselli's Blog | |
*/ | |
/* | |
Document | |
======== | |
*/ |
/** | |
* Implementation of Saarna's Bluing Algorithm for generating bluish noise. | |
* | |
* This algorithm creates blue noise with a +3 dB per octave power increase. | |
* Unlike traditional blue noise generation methods that require extensive computation | |
* to massage random values, this algorithm uses an exponentially decaying running | |
* average to prevent clumping of values with minimal computational overhead. | |
* | |
* The algorithm works by: | |
* 1. Generating two random values |
-- https://stackoverflow.com/a/11671820 | |
-- e.g: map({1,2,3,4}, (o) -> o * 2) -> {2,4,6,8} | |
export map = (tbl, fn) -> | |
out = {} | |
for k, v in pairs tbl | |
out[k] = fn v | |
return out |