particle color change + more binky
All checks were successful
/ test (push) Successful in 15s

This commit is contained in:
Soph :3 2024-08-30 04:04:12 +03:00
parent caa7aaa02a
commit d7f79d0b4c
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
3 changed files with 6 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -22,6 +22,7 @@ const binky = [
["https://windigone.nekoweb.org", "windigone.gif"],
["https://eye.nekoweb.org", "eye.gif"],
["https://yumeo.nekoweb.org", "yumeo.gif"],
["https://bee.nekoweb.org/", "bee.png"],
["insane.gif", "piracy.gif", "dsb.gif", "universe.gif"],
];

View file

@ -30,14 +30,17 @@ class Particle {
this.y = y;
this.id = Math.random();
this.angle = 2 * Math.PI * this.id;
this.color =
// trans flag colors
this.color = ["#5BCEFA", "#F5A9B8", "#FFFFFF"][Math.floor(Math.random() * 3)]
// random pastel color with HSL
/*this.color =
"hsl(" +
360 * Math.random() +
"," +
(25 + 70 * Math.random()) +
"%," +
(85 + 10 * Math.random()) +
"%)";
"%)";*/
this.style = Math.random() < 0.5 ? "-" : Math.random() > 0.5 ? "+" : "*";
}