summaryrefslogtreecommitdiffstats
path: root/Color.h
blob: ad242c7eee2f4027cfc68cea078897b59aa77229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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_*/