[−][src]Trait cichlid::prelude::RainbowFill
Fills an iterable object with a rainbow hue of a desired step size.
Step sizes is a u16
. The Most significant byte of each integer is used to represent the
full number of hues to increment between each iterated value, while the second (LSB)
byte is added as a fractional component.
For example, if one desires to change a single hue between each element, the hue_delta
should be set to 0x0100
. If a hue is desired to change every 256 elements, then the
hue_delta
should be 0x0001
.
Required methods
fn rainbow_fill_with_sat_val(
self,
start_hue: u8,
hue_delta: u16,
sat: u8,
val: u8
)
self,
start_hue: u8,
hue_delta: u16,
sat: u8,
val: u8
)
Fills an object with a rainbow gradient hue of a desired step size and from a desired starting hue and constant additional saturation and value (components of a HSV).
Provided methods
fn rainbow_fill(self, start_hue: u8, hue_delta: u16)
Fills an object with a rainbow gradient hue of a desired step size and from a desired starting hue.
Implementors
impl<'a, T, H: 'a> RainbowFill for T where
T: IntoIterator<Item = &'a mut H>,
H: From<HSV>,
[src]
T: IntoIterator<Item = &'a mut H>,
H: From<HSV>,