Skip to main content

ColorPickerGetCoordinates

Callable

  • ColorPickerGetCoordinates(Event: MouseEvent | TouchEvent): { X: number; Y: number }

  • Gets the coordinates of the current event on the canvas


    Parameters

    • Event: MouseEvent | TouchEvent

      The touch/mouse event

    Returns { X: number; Y: number }

    • Coordinates of the click/touch event on the canvas
    • X: number
    • Y: number