1 /**********************************************************************
2 * blaRAY -- photon mapper/raytracer
3 * (C) 2008 by Tomasz bla Fortuna <bla@thera.be>, <bla@af.gliwice.pl>
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
11 *********************/
15 #include "General/Debug.hh"
16 #include "World/Color.hh"
20 std::ostream
&operator<<(std::ostream
&os
, const Color
&C
)
22 os
<< "[Color " << C
.Dump();
28 Color::Color(Double r
, Double g
, Double b
)
31 if ( r
<0.0 || g
<0.0 || b
<0.0 || r
>1.0 || g
>1.0 | b
> 1.0) {
32 std::cout
<< "Assert: Color value out of range" << std::endl
;