- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColor.cpp
More file actions
Latest commit
25 lines (17 loc) · 414 Bytes
/
Copy pathColor.cpp
File metadata and controls
25 lines (17 loc) · 414 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Tyrus Malmstrom
// 11/9/2016
// Color.cpp class for handling and manipulating color
// directives:
#include<iostream>
#include"Color.h"
// namespace:
usingnamespacestd;
// Macros:
#defineDEBUGfalse
voidColor::pprint(ostream& out) const{
out << "(" << red << ", " << green << ", " << blue << ")" << endl;
}
ostream& operator<< (ostream& out, const Color& c){
c.pprint( out );
return out;
}