react-color4bg
v0.2.1
Published
React component wrapper of color4bg.js written in TypeScript.
Maintainers
Readme
About color4bg.js
Super easily generate dynamic, abstract, and visually stunning background images for your web pages based on WebGL and JavaScript. High performance.
Get Started
1.install react-color4bg
npm i react-color4bg2.Import the component into your project.
<BlurGradientBg
style={{ width: '100%', height: '100%' }}
colors={["#D1ADFF","#98D69B","#FAE390","#FFACD8","#7DD5FF","#D1ADFF"]}
loop
/>Component Props
All components have three identical properties (see below), Some components have additional properties, which can be viewed through TypeScript's type completion, You can visit https://www.color4bg.com/ to view all available background types.
colors
type: string[]
An array of up to 6 hexadecimal color values, used to describe the color combination of the background.
seed
type: number
A Pseudo-random numerical value used to generate a consistent pattern, default is 1000.
loop
type: boolean
Determines whether the background should animated looply or not.
