Struct noise::Checkerboard
[−]
[src]
pub struct Checkerboard { pub size: usize, // some fields omitted }
Noise module that outputs a checkerboard pattern.
This noise module 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 module 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]
fn new() -> Checkerboard
fn set_size(self, size: usize) -> Checkerboard
Trait Implementations
impl Clone for Checkerboard
[src]
fn clone(&self) -> Checkerboard
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more