1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 06:08:31 +01:00
dotSCAD/docs/lib3x-nz_perlin1.md
2022-06-06 13:11:46 +08:00

455 B

nz_perlin1

Returns the 1D Perlin noise value at the x coordinate.

Since: 2.3

Parameters

  • x : The x coordinate.
  • seed : The random seed.

Examples

use <polyline_join.scad>
use <util/rand.scad>
use <noise/nz_perlin1.scad>

seed = rand(0, 255);
polyline_join([for(x = [0:.1:10]) [x, nz_perlin1(x, seed)]])
    circle(.05);

nz_perlin1