Skip to content

JavaScript function to set canvas image given color to alpha 0 (transparent)

License

Notifications You must be signed in to change notification settings

tomekmy/setAlpha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

This function returns base64 img URL.

Parameters:
photo = image id name
r = red color value (rgb pallet)
g = green color value (rgb pallet)
b= blue color value (rgb pallet)

e.g.
setAlpha("imageID", 255, 255, 255); // Set white color to alpha 0

About

JavaScript function to set canvas image given color to alpha 0 (transparent)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published