Simplex Noise

Installation

npm i @paper-design/shaders-react

Code

import { SimplexNoise } from '@paper-design/shaders-react';

<SimplexNoise
  style={{ height: 500 }}
  stepsPerColor={2}
  softness={0}
  scale={0.6}
  rotation={0}
  speed={0.5}
  colors={["#cc3333","#cc9933","#99cc33","#33cc33","#33cc99"]}
/>

Props

NameDescriptionTypeValues
colorsUp to 10 base colorsstring[]Hex, RGB, or HSL color
stepsPerColorNumber of extra colors between base colors (1 = N color palette, 2 = 2×N color palette, 3 = 3×N color palette, etc)number1 to 10 (integer)
softnessColor transition sharpness (0 = hard edge, 1 = smooth gradient)number0 to 1
scaleOverall zoom level of the graphicsnumber0.01 to 4
rotationOverall rotation angle of the graphicsnumber0 to 360
speedAnimation speednumber0 to 2

Description

A multi-color gradient mapped into smooth, animated curves, delivering a sleek, futuristic visual.