summaryrefslogtreecommitdiff
path: root/2026/games/crm148/util.js
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-26 23:47:59 -0400
committerLLLL Colonq <llll@colonq>2026-08-26 23:47:59 -0400
commit0d2d8cd897e94bd94e0b3ae7c6ce9aa580a44a0a (patch)
treee9039d1c3aedca515d6cb499451d4b73aca4f5fd /2026/games/crm148/util.js
parent242943e5b023ce40eb3be826c418a478d4672f78 (diff)
Add a_tension_span
Diffstat (limited to '2026/games/crm148/util.js')
-rw-r--r--2026/games/crm148/util.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/2026/games/crm148/util.js b/2026/games/crm148/util.js
deleted file mode 100644
index e91c5e4..0000000
--- a/2026/games/crm148/util.js
+++ /dev/null
@@ -1,28 +0,0 @@
-function randomAngle() {
- return Math.random() * Math.PI * 2;
-}
-
-function toDegrees(radians) {
- return radians * 180 / Math.PI;
-}
-
-function toDegreesInt(radians) {
- return Math.floor(toDegrees(radians));
-}
-
-function normalizeAngle(radians) {
- return (radians + Math.PI) % (2 * Math.PI) - Math.PI;
-}
-
-function drawSquare(ctx, v2, size) {
- const off = size / 2;
- ctx.fillRect(v2.x - off, v2.y - off, size, size);
-}
-
-export {
- randomAngle,
- toDegrees,
- toDegreesInt,
- normalizeAngle,
- drawSquare,
-}