doodle  0.2
Intended to support teaching C++, doodle is a simple library that helps make a window and makes it easy to do some drawing.
noise.hpp
Go to the documentation of this file.
1 /*--------------------------------------------------------------*
2  Copyright (C) 2021 Rudy Castan
3 
4  This file is distributed WITHOUT ANY WARRANTY. See the file
5  `License.md' for details.
6 *--------------------------------------------------------------*/
7 #pragma once
8 
9 
10 namespace doodle
11 {
71  double noise(double x, double y = 0.0, double z = 0.0) noexcept;
129  void seed_noise(unsigned long long new_seed) noexcept;
130 
196  void set_noise_detail(int perlin_octaves, double amplitude_falloff) noexcept;
198 }
void set_noise_detail(int perlin_octaves, double amplitude_falloff) noexcept
Adjusts the character and level of detail produced by the Perlin noise function.
double noise(double x, double y=0.0, double z=0.0) noexcept
Returns the Perlin noise value at specified coordinates.
void seed_noise(unsigned long long new_seed) noexcept
Sets the seed value for noise().
Definition: angle.hpp:11