#include <Color.hpp>
Definition at line 11 of file Color.hpp.
◆ Color() [1/2]
◆ Color() [2/2]
| Color::Color |
( |
int | r_, |
|
|
int | g_, |
|
|
int | b_ ) |
|
inline |
Definition at line 15 of file Color.hpp.
15:
r(r_),
g(g_),
b(b_) {}
References b, g, and r.
◆ toPPM()
| std::string Color::toPPM |
( |
| ) |
const |
|
inline |
Definition at line 17 of file Color.hpp.
17 {
18 return std::to_string(
r) +
" " + std::to_string(
g) +
" " + std::to_string(
b);
19 }
References b, g, and r.
The documentation for this class was generated from the following file: