diff --git a/NationalFlag/NationalFlag/RGB.h b/NationalFlag/NationalFlag/RGB.h new file mode 100644 index 0000000..0a73a3c --- /dev/null +++ b/NationalFlag/NationalFlag/RGB.h @@ -0,0 +1,24 @@ +#pragma once + +class CRGB { +public: + CRGB(); + CRGB(double, double, double); + virtual ~CRGB(); + friend CRGB operator+(const CRGB &, const CRGB &); + friend CRGB operator-(const CRGB &, const CRGB &); + friend CRGB operator*(const CRGB &, const CRGB &); + friend CRGB operator*(const CRGB &, double); + friend CRGB operator*(double, const CRGB &); + friend CRGB operator/(const CRGB &, double); + friend CRGB operator+=(CRGB &, CRGB &); + friend CRGB operator-=(CRGB &, CRGB &); + friend CRGB operator*=(CRGB &, CRGB &); + friend CRGB operator/=(CRGB &, double); + void Normalize(); + +public: + double red; + double green; + double blue; +};