module ChunkyPNG::Color

def grayscale(teint)

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

Parameters:
  • teint (Integer) -- The grayscale teint (0-255), will be used as r, g, and b value.
def grayscale(teint)
  teint << 24 | teint << 16 | teint << 8 | 0xff
end