Function drawImage

  • Draw an image to the graphics context

    Parameters

    • image: GameImage

      The image to be drawn

    • x: number

      The x coordinate to draw at

    • y: number

      The y coordinate to draw at

    • Optional width: number

      The width of the image to draw

    • Optional height: number

      The height of the image to draw

    • Optional col: string

      The color to tint the image - in CSS format

    Returns void

Generated using TypeDoc