Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 884 Bytes

README.md

File metadata and controls

46 lines (30 loc) · 884 Bytes

DEMO code for Random Color Code Generator package

🚀 Live Demo

https://random-color-code-generator.vercel.app/

📦 NPM Package

https://www.npmjs.com/package/random-color-code-generator

Installation

Install random-color-code-generator with npm

  npm install random-color-code-generator

GET functions

// import RandomColor from package
import { RandomColors } from 'random-color-code-generator';

// intialize RandomColors and destruct get functions
const { getRandomRGBColor, getRandomHSLColor, getRandomHexColor } =
  new RandomColors();

Get Random RGB Color

const { getRandomRGBColor } = new RandomColors();

Get Random HSL Color

const { getRandomHSLColor } = new RandomColors();

Get Random HEX Color

const { getRandomHEXColor } = new RandomColors();