🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

gradient-from-image

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
g

gradient-from-image

get a beautiful gradient from image

0.0.7
latest
75

Supply Chain Security

100

Vulnerability

78

Quality

76

Maintenance

100

License

Version published
Maintainers
1
Created
Issues
0

Get Beatiful Gradiants from the Image

Install with npm

npm install gradient-from-image

How to use?

note: currently only works with promises

Basic usage

var grad = require("gradient-from-image")

const imgUrl = "https://picsum.photos/200/300?image=82";

grad.gr(imgUrl).then(gradient =>{
	// this will gives you array of gradients
	//change this is to element css el.background="` linear-gradient(${gradient})`"
	console.log(gradient);
});

See live demo and full documentation.

https://kartik1225.github.io/gradient-from-image-demo/

Modules that used in this pakage

FAQs

Package last updated on 12 Aug 2018

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