module ChunkyPNG::Color

def rgba(r, g, b, a)

Returns:
  • (Integer) - The newly constructed color value.

Parameters:
  • a (Integer) -- The opacity (0-255)
  • b (Integer) -- The b-component (0-255)
  • g (Integer) -- The g-component (0-255)
  • r (Integer) -- The r-component (0-255)
def rgba(r, g, b, a)
  r << 24 | g << 16 | b << 8 | a
end