From f91401e6632a28edcd610d134125ebe53ff33c45 Mon Sep 17 00:00:00 2001 From: mehbark Date: Sat, 2 Dec 2023 23:38:16 -0500 Subject: [PATCH] crash: bleh; DONE ENOUGH --- html/crash.tsx | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/html/crash.tsx b/html/crash.tsx index 0ee0fa7..f385c4f 100644 --- a/html/crash.tsx +++ b/html/crash.tsx @@ -7,12 +7,14 @@ scattering letters everywhr`.split("\n"); // i like the freezing effect, but it's probably not right here; const explode_transform = (): [string, string] => { - const [x, y, turns] = [ - Math.random() * 20 + 35, + const [x, y_, turns] = [ + -Math.random() * 25, (Math.random() - 0.5) * 10, Math.random() * 10, ]; + const y = y_ < 0 ? y_ - 35 : y_ + 35; + return [ `translate(${x.toFixed(2)}rem, ${y.toFixed( 2 @@ -38,7 +40,7 @@ const Line = ({ {...(() => { // we're pretending that everything is the same length (we'll see if this works) const delay_per = length_s / 160; - const all_delay = (length_s * (1 - width_ratio)) / 3 - 0.2; + const all_delay = (length_s * (1 - width_ratio)) / 3; console.log(delay_per, all_delay); return [...children].map((c, i) => { @@ -46,16 +48,23 @@ const Line = ({ return ( - {c} + + {c} + ); }); @@ -117,4 +126,4 @@ const Crash = ({ ); -render_and_copy(); +render_and_copy();