Alec Arce
/
PROJECT
Yo here you go kemal
rgbhlr.cpp@0:0dd4a69da379, 2020-12-05 (annotated)
- Committer:
- xalec
- Date:
- Sat Dec 05 06:19:45 2020 +0000
- Revision:
- 0:0dd4a69da379
CS 435
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xalec | 0:0dd4a69da379 | 1 | #include "rgbhlr.h" |
xalec | 0:0dd4a69da379 | 2 | |
xalec | 0:0dd4a69da379 | 3 | ////////////////////////////////////////////////// |
xalec | 0:0dd4a69da379 | 4 | // RGB methods |
xalec | 0:0dd4a69da379 | 5 | ////////////////////////////////////////////////// |
xalec | 0:0dd4a69da379 | 6 | |
xalec | 0:0dd4a69da379 | 7 | // Constructors |
xalec | 0:0dd4a69da379 | 8 | rgb_dws:: RGB::RGB() : red(0), green(0), blue(0) |
xalec | 0:0dd4a69da379 | 9 | {} |
xalec | 0:0dd4a69da379 | 10 | |
xalec | 0:0dd4a69da379 | 11 | rgb_dws:: RGB::RGB(short r, short g, short b) : red(r), green(g), blue(b) |
xalec | 0:0dd4a69da379 | 12 | {} |
xalec | 0:0dd4a69da379 | 13 | |
xalec | 0:0dd4a69da379 | 14 | rgb_dws:: RGB::RGB(const RGB& c) : red(c.red), green(c.green), blue(c.blue) |
xalec | 0:0dd4a69da379 | 15 | {} |
xalec | 0:0dd4a69da379 | 16 | |
xalec | 0:0dd4a69da379 | 17 | ////////////////////////////////////////////////// |
xalec | 0:0dd4a69da379 | 18 | // RGBCalc methods |
xalec | 0:0dd4a69da379 | 19 | ////////////////////////////////////////////////// |
xalec | 0:0dd4a69da379 | 20 | |
xalec | 0:0dd4a69da379 | 21 | // Constructors |
xalec | 0:0dd4a69da379 | 22 | rgb_dws:: RGBCalc::RGBCalc() : redC(0), greenC(0), blueC(0) |
xalec | 0:0dd4a69da379 | 23 | {} |
xalec | 0:0dd4a69da379 | 24 | |
xalec | 0:0dd4a69da379 | 25 | rgb_dws:: RGBCalc::RGBCalc(double r, double g, double b) : redC(r), greenC(g), blueC(b) |
xalec | 0:0dd4a69da379 | 26 | {} |
xalec | 0:0dd4a69da379 | 27 | |
xalec | 0:0dd4a69da379 | 28 | rgb_dws:: RGBCalc::RGBCalc(const rgb_dws::RGBCalc& c) : redC(c.redC), greenC(c.greenC), blueC(c.blueC) |
xalec | 0:0dd4a69da379 | 29 | {} |
xalec | 0:0dd4a69da379 | 30 |