First audio draft

This commit is contained in:
Paul Brinkmeier
2025-07-22 23:36:18 +02:00
parent 26c35b27b4
commit 729d140243
10 changed files with 302 additions and 29 deletions
+2
View File
@@ -28,5 +28,7 @@ const util = {
return [screenNormal, phi, theta];
},
rgb: (r, g, b) => `rgb(${255 * r}, ${255 * g}, ${255 * b})`,
rgba: (r, g, b, a) => `rgb(${255 * r}, ${255 * g}, ${255 * b}, ${a})`,
deg2rad: (deg) => deg / 180 * Math.PI,
diffAngles: (a, b) => Math.atan2(Math.sin(b - a), Math.cos(b - a)),
};