🎥 Make videos programmatically with React
update docs
Jonny Burgerc3e3140e8bab
diff --git a/packages/docs/docs/noise/noise-2d.md b/packages/docs/docs/noise/noise-2d.mdindex 9905e650b5..ae2d79f7a4 100644--- a/packages/docs/docs/noise/noise-2d.md+++ b/packages/docs/docs/noise/noise-2d.md@@ -4,24 +4,45 @@ title: noise2D()_Part of the [`@remotion/noise`](/docs/noise) package._-Creates 2D noise. The function takes one argument:+Creates 2D noise.-- `seed`, same as for [`random()`](/docs/random)+## API-A `NoiseFunction2D` is returned:+The function takes three arguments:++### `seed`++Pass any _string_ or _number_. If the seed is the same, you will get the same result for same `x` and `y` values. Change the seed to to get different results for your `x` and `y` values.++### `x`++_number_++The first dimensional value.++### `y`++_number_++The second dimensional value.++## Return value++A value between `-1` and `1`, swinging as your `x` and `y` values change.++## Example```tsx twoslashimport { noise2D } from "@remotion/noise";-const x = 32;const y = 40;-console.log(noise2D("my-seed" x, y)); // a number in the interval [-1, 1] which corresponds to (x, y) coord.+console.log(noise2D("my-seed", x, y)); // a number in the interval [-1, 1] which corresponds to (x, y) coord.```## Credits-Dependency: [simplex-noise](https://www.npmjs.com/package/simplex-noise)+Uses the [simplex-noise](https://www.npmjs.com/package/simplex-noise) dependency## See alsodiff --git a/packages/docs/docs/noise/noise-3d.md b/packages/docs/docs/noise/noise-3d.mdindex c86c8b25f0..73115ad885 100644--- a/packages/docs/docs/noise/noise-3d.md+++ b/packages/docs/docs/noise/noise-3d.md@@ -4,11 +4,39 @@ title: noise3D()_Part of the [`@remotion/noise`](/docs/noise) package._-Creates 3D noise. The function takes one argument:+Creates 3D noise.-- `seed`, same as for [`random()`](/docs/random)+## API-A `NoiseFunction3D` is returned:+The function takes four arguments:++### `seed`++Pass any _string_ or _number_. If the seed is the same, you will get the same result for same `x`, `y` and `z` values. Change the seed to to get different results for your `x`, `y` and `z` values.++### `x`++_number_++The first dimensional value.++### `y`++_number_++The second dimensional value.++### `z`++_number_++The third dimensional value.++## Return value++A value between `-1` and `1`, swinging as your `x`, `y` and `z` values change.++## Example```tsx twoslashimport { noise3D } from "@remotion/noise";@@ -16,12 +44,12 @@ import { noise3D } from "@remotion/noise";const x = 32;const y = 40;const z = 50;-console.log(noise3D("my-seed", x, y, z)); // a number in the interval [-1, 1] which corresponds to (x, y, z) coord.+console.log(noise3D("my-seed", x, y, z));```## Credits-Dependency: [simplex-noise](https://www.npmjs.com/package/simplex-noise)+Uses the [simplex-noise](https://www.npmjs.com/package/simplex-noise) dependency## See alsodiff --git a/packages/docs/docs/noise/noise-4d.md b/packages/docs/docs/noise/noise-4d.mdindex c995372c40..225e018285 100644--- a/packages/docs/docs/noise/noise-4d.md+++ b/packages/docs/docs/noise/noise-4d.md@@ -4,11 +4,45 @@ title: noise4D()_Part of the [`@remotion/noise`](/docs/noise) package._-Creates 4D noise. The function takes one argument:+Creates 4D noise.-- `seed`, same as for [`random()`](/docs/random)+## API-A `NoiseFunction4D` is returned:+The function takes five arguments:++### `seed`++Pass any _string_ or _number_. If the seed is the same, you will get the same result for same `x`, `y`, `z` and `w` values. Change the seed to to get different results for your `x`, `y`, `z`, `w` values.++### `x`++_number_++The first dimensional value.++### `y`++_number_++The second dimensional value.++### `z`++_number_++The third dimensional value.++### `w`++_number_++The fourth dimensional value.++## Return value++A value between `-1` and `1`, swinging as your `x`, `y`, `z` and `w` values change.++## Example```tsx twoslashimport { noise4D } from "@remotion/noise";@@ -17,7 +51,7 @@ const x = 32;const y = 40;const z = 50;const w = 64;-console.log(noise4D("my-seed", x, y, z, w)); // a number in the interval [-1, 1] which corresponds to (x, y, z, w) coord.+console.log(noise4D("my-seed", x, y, z, w));```## Credits