optimized lerpcolor and increased resolution for kdtree