Definition at line 143 of file Functors.h. References Impala::Core::Array::Element::Vec3Int32::X(), Impala::Core::Array::Element::Vec3Int32::Y(), and Impala::Core::Array::Element::Vec3Int32::Z(). 00144 { 00145 int o2,o3,r,g,b; //static to prevent allocation and cleanup every iteration 00146 o2 = p.Y() - 127; 00147 o3 = p.Z() - 127; 00148 r = p.X()+o2-(0.666666666666*o3); 00149 if(r<0) 00150 r=0; 00151 if(r>255) 00152 r=255; 00153 g = p.X()-o2-(0.666666666666*o3); 00154 if(g<0) 00155 g=0; 00156 if(g>255) 00157 g=255; 00158 b = p.X()+(1.3333333333*o3); 00159 if(b<0) 00160 b=0; 00161 if(b>255) 00162 b=255; 00163 return Vec3Int32(r, g, b); 00164 }
Here is the call graph for this function:
|