what I've been trying to do (from Bees & Bombs):
why is this a fail? It looks awesome!
@Fedot it's because I use Math.tan()
@trose I just fixed it, the first version had an irritating blinking: https://codepen.io/pen/zQLLpK
This broke my brain and I love it!
this should be the way to go when 2D web animations are on the table
How about setting time to be time = (Date.now() - init) / 1000; intially, because if not set at first run of the resize the expression const ii = i / count + ((time / count) * 2) / 3;would return to NAN
time = (Date.now() - init) / 1000;
const ii = i / count + ((time / count) * 2) / 3;
good point @quadriphobs1 !
honored to know that someone reads my ugly code!
fixed by initializing let time = 0
let time = 0
Need to know how to enable it? Go here.