Alpha Blending packege for go
Function uses Alpha Blend for calculating pixels. https://en.wikipedia.org/wiki/Alpha_compositing
- Blend
just set blending image to first arg, background image to second arg.
example:
blendedImage := alphablender.Blend(starImage, backImage)
starImage and backImage variable is image.Image type of Go.
see blend_test.go , describes how to blend two png file images togather.
You can blend two images togather
+ =- two images must be the same size.
- images must be RGBA or NRGBA type.


