Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
export function degToRad (deg) {
return (deg / 180 * Math.PI);
}
export function radToDeg (rad) {
return (rad /Math.PI * 180);
}
//Funktion addiert 'color'-Wert aus PartyBaseData zu 256^3 und gibt gueltigen Hex Color Code zurück.
export function paintIt (color) {
var hex = (16777216 + color).toString(16);
if (hex.toString().length < 6) {
var i = hex.toString().length;
for (i; i < 6; i++) {
hex = "0" + hex;
}
}
return "#" + hex;
}