Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+20
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user