pub struct ImageRenderer { /* private fields */ }Implementations§
Source§impl ImageRenderer
impl ImageRenderer
pub fn new() -> Self
pub fn set_gradient(self, gradient: ColorGradient) -> Self
pub fn gradient(&self) -> &ColorGradient
pub fn enable_light(&mut self)
pub fn disable_light(&mut self)
pub fn light_enabled(&self) -> bool
pub fn set_light_azimuth(self, azimuth: f64) -> Self
pub fn light_azimuth(&self) -> f64
pub fn set_light_brightness(self, brightness: f64) -> Self
pub fn light_brightness(&self) -> f64
pub fn set_light_color(self, color: Color) -> Self
pub fn light_color(&self) -> Color
pub fn set_light_contrast(self, contrast: f64) -> Self
pub fn light_contrast(&self) -> f64
pub fn set_light_elevation(self, elevation: f64) -> Self
pub fn light_elevation(&self) -> f64
pub fn set_light_intensity(self, intensity: f64) -> Self
pub fn light_intensity(&self) -> f64
pub fn enable_wrap(self) -> Self
pub fn wrap_enabled(&self) -> bool
pub fn render(&mut self, noise_map: &NoiseMap) -> NoiseImage
pub fn render_with_background( &mut self, noise_map: &NoiseMap, background: &NoiseImage, ) -> NoiseImage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageRenderer
impl RefUnwindSafe for ImageRenderer
impl Send for ImageRenderer
impl Sync for ImageRenderer
impl Unpin for ImageRenderer
impl UnsafeUnpin for ImageRenderer
impl UnwindSafe for ImageRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more