Struct noise::utils::ColorGradient
source · pub struct ColorGradient { /* private fields */ }
Implementations§
source§impl ColorGradient
impl ColorGradient
pub fn new() -> Self
pub fn add_gradient_point(self, pos: f64, color: Color) -> Self
pub fn clear_gradient(self) -> Self
pub fn build_grayscale_gradient(self) -> Self
pub fn build_terrain_gradient(self) -> Self
pub fn build_rainbow_gradient(self) -> Self
pub fn get_color(&self, pos: f64) -> Color
Trait Implementations§
source§impl Clone for ColorGradient
impl Clone for ColorGradient
source§fn clone(&self) -> ColorGradient
fn clone(&self) -> ColorGradient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ColorGradient
impl Debug for ColorGradient
source§impl Default for ColorGradient
impl Default for ColorGradient
source§fn default() -> ColorGradient
fn default() -> ColorGradient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ColorGradient
impl RefUnwindSafe for ColorGradient
impl Send for ColorGradient
impl Sync for ColorGradient
impl Unpin for ColorGradient
impl UnwindSafe for ColorGradient
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