Struct noise::utils::ColorGradient
[−]
[src]
pub struct ColorGradient { /* fields omitted */ }
Methods
impl ColorGradient
[src]
pub fn new() -> ColorGradient
[src]
pub fn add_gradient_point(self, pos: f64, color: Color) -> Self
[src]
pub fn clear_gradient(self) -> Self
[src]
pub fn build_grayscale_gradient(self) -> Self
[src]
pub fn build_terrain_gradient(self) -> Self
[src]
pub fn build_rainbow_gradient(self) -> Self
[src]
pub fn get_color(&self, pos: f64) -> Color
[src]
Trait Implementations
impl Clone for ColorGradient
[src]
fn clone(&self) -> ColorGradient
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ColorGradient
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for ColorGradient
[src]
fn default() -> ColorGradient
[src]
Returns the "default value" for a type. Read more