summaryrefslogtreecommitdiff
path: root/src/defines.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-19 16:13:19 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-19 16:13:19 +0100
commit9e735ad2f5c1c7e29a2f27e2be2a1daa5bf8cc8c (patch)
tree9d285a1ba41d5201b8fa633483747594afb57e22 /src/defines.hpp
parent61e10e20484e8867656d39cbaa6d75c3aab7eba6 (diff)
added borders
Diffstat (limited to 'src/defines.hpp')
-rw-r--r--src/defines.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/defines.hpp b/src/defines.hpp
index 9c3856aa..d048c658 100644
--- a/src/defines.hpp
+++ b/src/defines.hpp
@@ -15,4 +15,9 @@
#define interface class
-#define STICKS(a, b) abs((a) - (b)) < 2 \ No newline at end of file
+#define STICKS(a, b) abs((a) - (b)) < 2
+
+#define ALPHA(c) ((double)(((c) >> 24) & 0xff) / 255.0)
+#define RED(c) ((double)(((c) >> 16) & 0xff) / 255.0)
+#define GREEN(c) ((double)(((c) >> 8) & 0xff) / 255.0)
+#define BLUE(c) ((double)(((c)) & 0xff) / 255.0) \ No newline at end of file