Socket
Socket
Sign inDemoInstall

gradient-color-generator

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gradient-color-generator

Gradient color generator


Version published
Weekly downloads
1
Maintainers
1
Install size
2.75 kB
Created
Weekly downloads
 

Readme

Source

Gradient color generator

This is a simple gradient color generator function which takes multiple color codes/name and returns a gradient color code.

Installation

Use the package manager npm/yarn to install the package.((please read the documentation first))

npm i gradient-color-generator
yarn add gradient-color-generator

Importing

import gradientGenerator from 'gradient-color-generator';

How to use it

const gradient = gradientGenerator(colorList,step,angle);

colorList: Array of color codes or names (hex,rgb,rgba,hsl,hsla) or color names *required
step: Number of steps
angle: Angle of gradient

Keywords

FAQs

Last updated on 25 Feb 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc