getColor(x, y) {
    x -= this.x;
    y -= this.y;
    const i = ((y >> 0) * this.imageData.width + (x >> 0)) * 4;

    return {
      r: this.imageData.data[i],
      g: this.imageData.data[i + 1],
      b: this.imageData.data[i + 2],
      a: this.imageData.data[i + 3]
    };
  }
Gets the color at a specific point in the image.
@param {number} x - The x-coordinate.
@param {number} y - The y-coordinate.
@returns {Object} An object containing r, g, b, and a values.