Skip to content

Commit

Permalink
Updating README with example
Browse files Browse the repository at this point in the history
  • Loading branch information
cmtt committed Feb 21, 2015
1 parent 01fd076 commit db2fa1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ color-to-alpha

A function which turns a given color for the given pixel transparent while attempting to preserve anti-aliasing.

[Live demo](http://cmtt.github.io/color-to-alpha)

Adapted from GIMP's [color-to-alpha plugin](https://git.gnome.org/browse/gimp/tree/plug-ins/common/color-to-alpha.c?h=gimp-2-8) by Seth Burgess, licenced under GPLv3:

> (...) It will attempt to preserve anti-aliasing information by using a partially intelligent routine that replaces weak color information with weak alpha information. In this way, areas that contain an element of the selected color will maintain a blended appearance with their surrounding pixels.
Source: [http://docs.gimp.org/en/plug-in-colortoalpha.html](http://docs.gimp.org/en/plug-in-colortoalpha.html)


## Usage

This module exports solely the actual color_to_alpha function:
Expand Down

0 comments on commit db2fa1f

Please sign in to comment.