Skip to content

Commit ae32882

Browse files
committed
Update docs
1 parent cbe2904 commit ae32882

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

docs/_methods/noise_mode.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ class TestNoise < Processing::App
3131
end
3232

3333
def mouse_pressed
34-
mode = Processing::SIMPLEX
34+
mode = NoiseMode::OPEN_SMOOTH # Smooth classic OpenSimplex2
3535
noise_mode mode
36-
sketch_title "#{mode}"
36+
sketch_title mode.description
3737
end
3838

3939
def mouse_released
40-
mode = Processing::VALUE # default mode "Perlin Noise" in vanilla processing
40+
mode = NoiseMode::DEFAULT # Fast classic OpenSimplex2
4141
noise_mode(mode)
42-
sketch_title "#{mode}"
42+
sketch_title mode.description
4343
end
4444

4545

4646
def arrow(x, y, ang)
47-
pushMatrix()
47+
push_matrix()
4848
translate(x, y)
4949
rotate(ang)
5050
line(0, 0, 20, 0)
@@ -53,7 +53,7 @@ class TestNoise < Processing::App
5353
line(0, 0, 5, 0)
5454
rotate(-0.8)
5555
line(0, 0, 5, 0)
56-
popMatrix()
56+
pop_matrix()
5757
end
5858

5959
def settings
@@ -67,16 +67,22 @@ TestNoise.new
6767

6868
### Description ###
6969

70-
Currently supports two implementations of noise ValueNoise (Perlin noise in vanilla processing), up to 3D and SimplexNoise up to 4D.
70+
Currently supports four implementations of noise:-
71+
1. DEFAULT # fast classic OpenSimplex2
72+
2. OPEN_SMOOTH # smoother class OpenSimplex2F
73+
3. FAST_TERRAIN # more suited to terrain
74+
4. SMOOTH_TERRAIN # as above but smoother
7175

7276
### Syntax ###
7377

7478
```ruby
75-
noise_mode(mode) # default mode is Processing::VALUE, and Processing::SIMPLEX
79+
noise_mode(mode) # default is NoiseMode::DEFAULT, a fast classic OpenSimplex2
7680
```
7781

7882
### Related ###
7983

80-
`noise(x, y, z, w)` SimplexNoise only
84+
`noise(x, y, z, w)`
8185

82-
`noise(x, y, z)` ValueNoise and SimplexNoise
86+
`noise(x, y, z)`
87+
88+
`noise(x, y)`

0 commit comments

Comments
 (0)