0.0.7 • Published 7 years ago

gradient-from-image v0.0.7

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

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

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago