class ChunkyPNG::Canvas

def include?(x, y)

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

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