Color Panels

Installation

npm i @paper-design/shaders-react

Code

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

<ColorPanels
  style={{ height: 500 }}
  colorBack="#000000"
  density={3}
  angle1={0}
  angle2={0}
  length={1.1}
  edges={false}
  blur={0}
  fadeIn={1}
  fadeOut={0.3}
  gradient={0}
  offsetX={0}
  offsetY={0}
  scale={0.8}
  rotation={0}
  speed={0.5}
  colors={["#cc3333","#cc9933","#99cc33","#33cc33","#33cc99","#3399cc","#3333cc"]}
/>

Props

NameDescriptionTypeValues
colorsUp to 7 colors used to color the panelsstring[]Hex, RGB, or HSL color
colorBackBackground colorstringHex, RGB, or HSL color
densityAngle between every 2 panelsnumber0.25 to 7
angle1Skew angle applied to all panesnumber-1 to 1
angle2Skew angle applied to all panesnumber-1 to 1
lengthPanel length (relative to total height)number0 to 3
edgesColor highlight on the panels edgesboolean
| true | false
blurSide blur (0 for sharp edges)number0 to 0.5
fadeInTransparency near central axisnumber0 to 1
fadeOutTransparency near viewernumber0 to 1
gradientColor mixing within a panel (0 = solid panel color, 1 = gradient of two colors)number0 to 1
offsetXHorizontal offset of the graphics centernumber-1 to 1
offsetYVertical offset of the graphics centernumber-1 to 1
scaleOverall zoom level of the graphicsnumber0.01 to 4
rotationOverall rotation angle of the graphicsnumber0 to 360
speedAnimation speednumber0 to 2

Description

Glowing translucent 3D panels rotating around a central axis