Definition at line 159 of file Functors.h. References Impala::Core::Array::Element::Vec3Int32::X(), Impala::Core::Array::Element::Vec3Int32::Y(), and Impala::Core::Array::Element::Vec3Int32::Z(). 00160 { 00161 int o2,o3,r,g,b; //static to prevent allocation and cleanup every iteration 00162 o2 = p.Y() - 127; 00163 o3 = p.Z() - 127; 00164 r = p.X()+o2-(0.666666666666*o3); 00165 if(r<0) 00166 r=0; 00167 if(r>255) 00168 r=255; 00169 g = p.X()-o2-(0.666666666666*o3); 00170 if(g<0) 00171 g=0; 00172 if(g>255) 00173 g=255; 00174 b = p.X()+(1.3333333333*o3); 00175 if(b<0) 00176 b=0; 00177 if(b>255) 00178 b=255; 00179 return Vec3Int32(r, g, b); 00180 }
Here is the call graph for this function:
|