Struct noise::Checkerboard
[−]
[src]
pub struct Checkerboard { pub size: usize, // some fields omitted }
Noise function that outputs a checkerboard pattern.
This noise function can take one input, size, and outputs 2size-sized blocks of alternating values. The values of these blocks alternate between -1.0 and 1.0.
This noise function is not very useful by itself, but it can be used for debugging purposes.
Fields
size: usize
Controls the size of the block in 2size.
Methods
impl Checkerboard
[src]
Trait Implementations
impl Clone for Checkerboard
[src]
fn clone(&self) -> Checkerboard
[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