On this page

Function sampleImage

  • Get the pixel value of an image at a given position

    Parameters

    • image: HTMLImageElement
    • x: number
    • y: number

    Returns Pixel

    The pixel as {r, g, b, a} in a [0, 1] interval (and not in [0, 255])

Was this helpful?
SDK JS
Modules
Reference
functions
sampleImage