]> git.r.bdr.sh - rbdr/r.bdr.sh/commitdiff
black and white
authorRuben Beltran del Rio <redacted>
Tue, 13 Feb 2024 22:01:01 +0000 (23:01 +0100)
committerRuben Beltran del Rio <redacted>
Tue, 13 Feb 2024 22:01:01 +0000 (23:01 +0100)
js/animation.js

index 65ee4bdec2b32430d47da8d276b47ec00dbcf591..e0a543f20f6e7ed45b678294233aa88fcc053e89 100644 (file)
@@ -13,7 +13,7 @@
     x: rand(100),
     y: rand(100),
     angle: Math.random() * 2 * Math.PI,
-    color: Array(3).fill(null).map(() => rand(256))
+    color: Array(3).fill(rand(256))
   }));
   var shapes = [square, circle, heart, chaos, lineChaos];
   var positions = [identity, spin(5), spin(15)];