noise_value {ambient} | R Documentation |
Value noise is a simpler version of cubic noise that uses linear interpolation between neighboring grid points. This creates a more distinct smooth checkerboard pattern than cubic noise, where interpolation takes all the surrounding grid points into accout.
noise_value(dim, frequency = 0.01, interpolator = "quintic", fractal = "fbm", octaves = 3, lacunarity = 2, gain = 0.5, pertubation = "none", pertubation_amplitude = 1)
dim |
The dimensions (height, width, (and depth)) of the noise to be generated. The length determines the dimensionality of the noise. |
frequency |
Determines the granularity of the features in the noise. |
interpolator |
How should values between sampled points be calculated?
Either |
fractal |
The fractal type to use. Either |
octaves |
The number of noise layers used to create the fractal noise.
Ignored if |
lacunarity |
The frequency multiplier between successive noise layers
when building fractal noise. Ignored if |
gain |
The relative strength between successive noise layers when
building fractal noise. Ignored if |
pertubation |
The pertubation to use. Either |
pertubation_amplitude |
The maximal pertubation distance from the
origin. Ignored if |
If length(dim) == 2
a matrix, if length(dim) == 3
a 3-dimensional
array.
# Basic use noise <- noise_value(c(100, 100)) image(noise, col = grey.colors(256, 0, 1))