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
Name | Description | Type | Values |
---|---|---|---|
colorBack | Background color | string | Hex, RGB, or HSL color |
colors | Up to 10 colors used for the gradient | string[] | Hex, RGB, or HSL color |
thickness | The thickness of the ring shape | number | 0.01 to 1 |
radius | The radius of the ring shape | number | 0 to 1 |
innerShape | The ring inner fill | number | 0 to 4 |
noiseIterations | A number of noise layers, more layers gives more details | number | 1 to 8 (integer) |
noiseScale | The noise frequency | number | 0.01 to 5 |
offsetX | Horizontal offset of the ring center | number | -1 to 1 |
offsetY | Vertical offset of the ring center | number | -1 to 1 |
scale | Overall zoom level of the graphics | number | 0.01 to 4 |
rotation | Overall rotation angle of the graphics | number | 0 to 360 |
speed | Animation speed | number | 0 to 4 |
Description
Radial multi-colored gradient shaped with layered noise for a natural, smoky aesthetic