grid <- long_grid(seq(1, 10, length.out = 1000), seq(1, 10, length.out = 1000))
# When noise is generated by it's own it doesn't have fractal properties
grid$clean_perlin <- gen_perlin(grid$x, grid$y)
plot(grid, clean_perlin)
# Use fracture to apply a fractal algorithm to the noise
grid$fractal_perlin <- fracture(gen_perlin, fbm, octaves = 8,
x = grid$x, y = grid$y)
plot(grid, fractal_perlin)
Run the code above in your browser using DataLab