Options
All
  • Public
  • Public/Protected
  • All
Menu

Player input from image

Hierarchy

  • Image

Implements

Index

Constructors

Methods

Constructors

constructor

  • new Image(source: string): Image
  • new Image(source: Blob): Image
  • Creates Image input from the given {@link Url}

    example
    const photo = new Image("https://placekitten.com/200/300")
    

    Parameters

    • source: string

    Returns Image

  • Creates Image input from the given Blob

    example
    const file = $("#file-input").files[0] // File is subclass of Blob
    const photo = new Image(file)
    

    Parameters

    • source: Blob

    Returns Image

Methods

[Symbol.asyncIterator]

  • [Symbol.asyncIterator](options?: InputOptions): AsyncGenerator<ImageData, void, unknown>