createNoise4D()
Part of the @remotion/noise
package.
Creates 4D noise. The function takes one argument:
seed
, same as random's one
A NoiseFunction4D
is returned:
tsx
import {createNoise4D } from "@remotion/noise";import type {NoiseFunction4D } from "@remotion/noise";constnoise4d :NoiseFunction4D =createNoise4D ("my-seed");constx = 32;consty = 40;constz = 50;constw = 64;console .log (noise4d (x ,y ,z ,w )); // a number in the interval [-1, 1] which corresponds to (x, y, z, w) coord.
tsx
import {createNoise4D } from "@remotion/noise";import type {NoiseFunction4D } from "@remotion/noise";constnoise4d :NoiseFunction4D =createNoise4D ("my-seed");constx = 32;consty = 40;constz = 50;constw = 64;console .log (noise4d (x ,y ,z ,w )); // a number in the interval [-1, 1] which corresponds to (x, y, z, w) coord.
Credits
Dependency: simplex-noise