packages/docs/docs/noise/noise-4d.mdx
Part of the @remotion/noise package.
Creates 4D noise.
The function takes five arguments:
seedPass 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 get different results for your x, y, z, w values.
xnumber
The first dimensional value.
ynumber
The second dimensional value.
znumber
The third dimensional value.
wnumber
The fourth dimensional value.
A value between -1 and 1, swinging as your x, y, z and w values change.
import { noise4D } from "@remotion/noise";
const x = 32;
const y = 40;
const z = 50;
const w = 64;
console.log(noise4D("my-seed", x, y, z, w));
Dependency: simplex-noise