module ChunkyPNG::Canvas::Drawing

def compose_pixel(x, y, color)

Returns:
  • (Integer) - The composed color.

Parameters:
  • color (Integer) -- The foreground color to blend with
  • y (Integer) -- The y-coordinate of the pixel to blend.
  • x (Integer) -- The x-coordinate of the pixel to blend.
def compose_pixel(x, y, color)
  return unless include_xy?(x, y)
  compose_pixel_unsafe(x, y, ChunkyPNG::Color.parse(color))
end