From 0d2d8cd897e94bd94e0b3ae7c6ce9aa580a44a0a Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Wed, 26 Aug 2026 23:47:59 -0400 Subject: Add a_tension_span --- 2026/games/crm148/util.js | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 2026/games/crm148/util.js (limited to '2026/games/crm148/util.js') 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, -} -- cgit v1.3.1