aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Color.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/Color.h')
-rw-r--r--Minecraft.World/Color.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Minecraft.World/Color.h b/Minecraft.World/Color.h
new file mode 100644
index 00000000..a9d31eca
--- /dev/null
+++ b/Minecraft.World/Color.h
@@ -0,0 +1,15 @@
+#pragma once
+
+class Color
+{
+private:
+ int colour;
+
+public:
+ //Creates an opaque sRGB color with the specified red, green, and blue values in the range (0.0 - 1.0).
+ Color( float r, float g, float b);
+ Color( int r, int g, int b);
+
+ static Color getHSBColor(float h, float s, float b);
+ int getRGB();
+}; \ No newline at end of file