Skip to main content

ColorPickerDraw

Callable

  • ColorPickerDraw(X: number, Y: number, Width: number, Height: number, Src: HTMLInputElement, Callback?: ColorPickerCallbackType): void

  • Draws the color picker on the canvas


    Parameters

    • X: number

      Coordinate on the X axis

    • Y: number

      Coordinate on the Y axis

    • Width: number

      Width of the color picker

    • Height: number

      Height of the color picker

    • Src: HTMLInputElement

      Input element that can contain a hex color code

    • optionalCallback: ColorPickerCallbackType

      Callback to execute when the selected color changes

    Returns void

    • Nothing