Struct ColorMap
gfx_voxel::texture
pub struct ColorMap(_);
A 256x256 image that stores colors.
impl ColorMap
fn from_path<P>(path: P) -> Result<Self, ColorMapError> where P: AsRef<Path>,
Creates a new ColorMap from path.
ColorMap
fn get(&self, x: f32, y: f32) -> [u8; 3]
Gets RGB color from the color map.