Function cgl_rs::noise::get

source ·
pub fn get(
    params: &NoiseParams,
    x: NoiseDataType,
    y: NoiseDataType,
    z: NoiseDataType
) -> NoiseDataType
Expand description

Generates noise with the given NoiseParams and x, y, and z coordinates.

Example

cgl_rs::noise::init();
let mut params = cgl_rs::noise::NoiseParams::new();
let noise = cgl_rs::noise::get(&params, 0.0, 0.0, 0.0);
cgl_rs::noise::shutdown();

See also

  • cgl_rs::noise::NoiseParams::get_noise