clamped {ambient}R Documentation

Clamped fractal

Description

This fractal is a slight variation of fbm() fractal. Before adding the new octave to the cumulated values it will clamp it between a minimum and maximum value. This function is intended to be used in conjunction with fracture()

Usage

clamped(base, new, strength, min = 0, max = Inf, ...)

Arguments

base

The prior values to modify

new

The new values to modify base with

strength

A value to modify new with before applying it to base

min, max

The upper and lower bounds of the noise values

...

ignored

See Also

Other Fractal functions: billow(), fbm(), ridged()

Examples

grid <- long_grid(seq(1, 10, length.out = 1000), seq(1, 10, length.out = 1000))

grid$simplex <- fracture(gen_simplex, clamped, octaves = 8, x = grid$x,
                         y = grid$y)
plot(grid, simplex)


[Package ambient version 1.0.2 Index]