Skip to content

About

colorize-alpha for canvas

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

HTML5 Canvas colorize-alpha

Turns the alpha channel of images into hue, using basic linear interpolation between color stops.

api

colorizeAlpha(
    // a canvas element with things drawn on it
    canvas,
    // a list of steps, assumed to be equidistant,
    // start at 0% and end at 100%, in [r, g, b] form.
    [[255, 0, 0], [255, 255, 0], [0, 255, 0], [0, 255, 255]]);

About

colorize-alpha for canvas

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages