dorkhub

gradstop

JavaScript micro library to generate gradient color stops πŸ³οΈβ€πŸŒˆ

Siddharth11
JavaScriptβ˜… 155β‘‚ 12 forksMITupdated 7 years ago
git clone https://github.com/Siddharth11/gradstop.gitSiddharth11/gradstop

gradstop

NPM Version NPM Downloads License: MIT Build Status

JavaScript micro library to generate gradient color stops

Demo UMD Bundle

Usage:

npm install gradstop
import gradstop from 'gradstop';

const gradient = gradstop({
    stops: 5,
    inputFormat: 'hex',
    colorArray: ['#343838', '#00DFFC']
});

console.log(gradient);
// rgb(52,56,56), rgb(39,97,105), rgb(26,139,154), rgb(13,181,203), rgb(0,223,252)

Gradient Strip


Default Parameters:

  • inputFormat: 'hex' (supports hex, rgb and hsl)
  • stops: 5
  • colorArray: ['#fff', '#000'] (supports upto 4 values)

Both shorthand(#fff) and standard(#ffffff) format hex values are supported.

Polyfills required:

  • Math.trunc

more like this

gns3theme

Custom color themes for GNS3 GUI. Built-in schemes, custom JSON themes, device symbols. Supports Linux and macOS.

Pythonβ˜… 50

search

search projects, people, and tags