Trait Texture
Other items incrystal_ball::color
pub trait Texture: Debug + Send + Sync { fn get_pixel(&self, u: f64, v: f64) -> Color; }
Specify a color of each pixel.
fn get_pixel(&self, u: f64, v: f64) -> Color
Return the color at the given coordinates.
impl Texture for Color
fn get_pixel(&self, _u: f64, _v: f64) -> Color
impl Texture for Image