Module | Pixels::HasAlphaChannel |
In: |
lib/pixels.rb
|
Mix-in module for image types having an alpha channel.
It makes has_alpha? return true, and it emulates rgb_from_color and color_from_rgb.
Given separate [r, g, b] values, return the integer colour value.
This is a wrapper around color_from_rgba. The alpha channel is always set fully opaque.