Smoke Ring

Installation

npm i @paper-design/shaders-react

Code

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

<SmokeRing
  style={{ height: 500 }}
  colorBack="#000000"
  noiseScale={3}
  noiseIterations={8}
  radius={0.25}
  thickness={0.65}
  innerShape={0.7}
  offsetX={0}
  offsetY={0}
  scale={0.8}
  rotation={0}
  speed={0.5}
  colors={["#cc3333"]}
/>

Props

NameDescriptionTypeValues
colorBackBackground colorstringHex, RGB, or HSL color
colorsUp to 10 colors used for the gradientstring[]Hex, RGB, or HSL color
thicknessThe thickness of the ring shapenumber0.01 to 1
radiusThe radius of the ring shapenumber0 to 1
innerShapeThe ring inner fillnumber0 to 4
noiseIterationsA number of noise layers, more layers gives more detailsnumber1 to 8 (integer)
noiseScaleThe noise frequencynumber0.01 to 5
offsetXHorizontal offset of the ring centernumber-1 to 1
offsetYVertical offset of the ring centernumber-1 to 1
scaleOverall zoom level of the graphicsnumber0.01 to 4
rotationOverall rotation angle of the graphicsnumber0 to 360
speedAnimation speednumber0 to 4

Description

Radial multi-colored gradient shaped with layered noise for a natural, smoky aesthetic