/Gogh

A node package to find N discrete colours inside a gradient.

Primary LanguageJavaScript

Gogh

Gogh is a npm package designed to produce gradient colour pallettes for a given number of chunks.

Installation:

npm install --save gogh-gradient

Usage:

import { gogh } from "gogh-gradient" 

// returns an array (of size n) of hex values between startHex and endHex 
const res = gogh(startHex, endHex, n)