summaryrefslogtreecommitdiffstats
path: root/Color.h
diff options
context:
space:
mode:
Diffstat (limited to 'Color.h')
-rw-r--r--Color.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Color.h b/Color.h
new file mode 100644
index 0000000..ad242c7
--- /dev/null
+++ b/Color.h
@@ -0,0 +1,19 @@
+#ifndef _COLOR_H_
+#define _COLOR_H_
+
+class Color
+{
+ public:
+ Color(float r0 = 0, float g0 = 0, float b0 = 0, float a0 = 1.0) : r(r0), g(g0), b(b0), a(a0) {}
+
+ float getR() const {return r;}
+ float getG() const {return g;}
+ float getB() const {return b;}
+ float getA() const {return a;}
+
+ private:
+ float r, g, b, a;
+};
+
+#endif /*_COLOR_H_*/
+