summaryrefslogtreecommitdiff
path: root/core/src/kz/ilotterytea/maxon/utils
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-10-26 00:19:22 +0500
committerilotterytea <iltsu@alright.party>2024-10-26 00:19:22 +0500
commitd1ee70ccb99cc23cbd3d20bb5daf70cd9aa54205 (patch)
treeafd2f85ebb2b4f546ffde2491e4600c3aea6fdea /core/src/kz/ilotterytea/maxon/utils
parent9468770a3471d607b0bfd6b0f8554eeb6eccf1e0 (diff)
upd: unused code cleanup
Diffstat (limited to 'core/src/kz/ilotterytea/maxon/utils')
-rw-r--r--core/src/kz/ilotterytea/maxon/utils/colors/HexToARGB.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/core/src/kz/ilotterytea/maxon/utils/colors/HexToARGB.java b/core/src/kz/ilotterytea/maxon/utils/colors/HexToARGB.java
deleted file mode 100644
index de613eb..0000000
--- a/core/src/kz/ilotterytea/maxon/utils/colors/HexToARGB.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package kz.ilotterytea.maxon.utils.colors;
-
-import com.badlogic.gdx.graphics.Color;
-
-public final class HexToARGB {
- public static Color convert(String hex) {
- hex = hex.charAt(0) == '#' ? hex.substring(1) : hex;
- int r = Integer.valueOf(hex.substring(0, 2), 16);
- int g = Integer.valueOf(hex.substring(2, 4), 16);
- int b = Integer.valueOf(hex.substring(4, 6), 16);
- int a = hex.length() != 8 ? 255 : Integer.valueOf(hex.substring(6, 8), 16);
- return new Color(r / 255f, g / 255f, b / 255f, a / 255f);
- }
-}