lune-ui-lib
Version:
Lune UI Components Library
27 lines (26 loc) • 896 B
TypeScript
import { FC } from 'react';
/**
* GradientSVG component.
*
* This component generates an SVG with either a radial or linear gradient based on the given hashNumber prop.
* The gradient style is determined by the characteristics of the hashNumber in the following manner:
*
* Color pick is determined by [0]
* Frequency is determined by [1] and [2]
* Rotate is determined by [3]
* Octaves is determined by [4]
* The gradient type (either 'radial' or 'linear') is determined by [5]
* The seed for fractalNoise is determined by [6] + [9] * 110
*
* @param {object} props - Component props.
* @param {number} props.hashNumber - A number used to generate the gradient SVG.
*
* @example
* return <GradientSVG hashNumber={1234567890} />;
*
* @returns {React.Element} The GradientSVG component.
*/
declare const GradientSVG: FC<{
hashNumber: number;
}>;
export default GradientSVG;