class ChunkyPNG::Canvas

def include_xy?(x, y)

Returns:
  • (true, false) - True if the x- and y-coordinate is in the range of

Parameters:
  • y (Integer) -- The y-coordinate of the pixel (row)
  • x (Integer) -- The x-coordinate of the pixel (column)
def include_xy?(x, y)
  y >= 0 && y < height && x >= 0 && x < width
end