An open API service indexing awesome lists of open source software.

https://github.com/pshihn/recolored-image

Custom element to show image shifted to a different color
https://github.com/pshihn/recolored-image

Last synced: about 2 months ago
JSON representation

Custom element to show image shifted to a different color

Awesome Lists containing this project

README

        

# recolored-image

Custom element to show image shifted to a different color.

Sometimes you want to show an image, usually a logo in different colors. If you had the logo in SVG, then you could easily change the colors using CSS. But what if the image is a png or a jpeg?

`recolored-image` is a custom-element to show an image color shifted to a target color. You can also save this new image.

This adapted and inspired from [@vjeux/image-recolor/](https://github.com/vjeux/image-recolor/) and the related [@tweet](https://twitter.com/Vjeux/status/1387856671238627333?s=20)

## Usage

Install from npm

```
npm i recolored-image
```

or use directly in your web page

```html

```

In your HTML
```html

```

## Demo

You can play with it live on [Codesandbox](https://codesandbox.io/s/recolored-image-demo-uq8q4)