Skip to content

GaneshSrambikal/random-color-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();