Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gradient-creator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gradient-creator

A tiny Javascript plugin to create specified amount of gradient colors between two colors provided

  • 1.0.6
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Gradient Creater

A tiny Javascript plugin to create specified amount of gradient colors between two colors provided

Installation

Use the Node Package Manager NPM to install Gradient Creater.

npm i gradient-creater

Usage

import { createGradient } from 'gradient-creater';

const startColor = '#ff0000'; /* Red */
const endColor = '#ffffff'; /* White */
const steps = 10; /* 10 colors should be created between red and white */

createGradient(startColor, endColor, steps) /* returns an array of colors */

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Keywords

FAQs

Package last updated on 20 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc