summaryrefslogtreecommitdiff
path: root/2026/games_submissions/crm148/color.js
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-18 00:08:28 -0400
committerLLLL Colonq <llll@colonq>2026-08-18 00:08:28 -0400
commit32a62cfcb925225359a5c90761b795f2f737ebd2 (patch)
tree95c2261964803b19f2d39cb35d8d514ed6e5a6f4 /2026/games_submissions/crm148/color.js
parentde99c5f7636a952025ea13de02bafd25bcb6bdec (diff)
Re-populate games
Diffstat (limited to '2026/games_submissions/crm148/color.js')
-rw-r--r--2026/games_submissions/crm148/color.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/2026/games_submissions/crm148/color.js b/2026/games_submissions/crm148/color.js
deleted file mode 100644
index 8e8ba11..0000000
--- a/2026/games_submissions/crm148/color.js
+++ /dev/null
@@ -1,31 +0,0 @@
-
-const lerp = (start, end, t) => start + (end - start) * t;
-
-export default class Color {
- r = 0;
- g = 0;
- b = 0;
- constructor(r, g, b) {
- this.r = r;
- this.g = g;
- this.b = b;
- }
-
- to_string() {
- return `rgb(${this.r}, ${this.g}, ${this.b})`;
-
- }
-
- static interpolate(color1, color2, t) {
- const r = Math.round(lerp(color1.r, color2.r, t));
- const g = Math.round(lerp(color1.g, color2.g, t));
- const b = Math.round(lerp(color1.b, color2.b, t));
-
- return new Color(r,g,b);
- }
- static PlayerColor = new Color(150, 200, 150);
- static StarDim = new Color(0x77, 0x11, 0x11);
- static StarColor = new Color(0xbb, 0x33, 0x33);
- static StarBright = new Color(0xbb, 0x33, 0x33);
- static PulseColor = new Color(0xcc, 0x22, 0x22);
-}