Type alias Graphics

Graphics: {
    circle: ((position, radius, options) => void);
    clear: ((colour) => void);
    clearRect: ((rectangle, colour) => void);
    curve: ((from, to, controlPoints, options) => void);
    dodge: ((drawingOperations) => void);
    image: ((image, position, size) => void);
    line: ((from, to, options) => void);
    overlay: ((drawingOperations) => void);
    rect: ((rectangle, options) => void);
    shadow: ((drawingOperations, options?) => void);
    sprite: ((sprite) => void);
    square: ((position, size, options) => void);
    subImage: ((image, position, size, subPosition, subSize) => void);
    text: ((position, text, colour, font) => void);
    tiles: ((position, tileGrid, spriteSheets, scale) => void);
    transparency: ((drawingOperations) => void);
}

Type declaration

  • circle: ((position, radius, options) => void)
      • (position, radius, options): void
      • Parameters

        Returns void

  • clear: ((colour) => void)
      • (colour): void
      • Parameters

        • colour: string

        Returns void

  • clearRect: ((rectangle, colour) => void)
      • (rectangle, colour): void
      • Parameters

        Returns void

  • curve: ((from, to, controlPoints, options) => void)
  • dodge: ((drawingOperations) => void)
      • (drawingOperations): void
      • Parameters

        • drawingOperations: (() => void)
            • (): void
            • Returns void

        Returns void

  • image: ((image, position, size) => void)
      • (image, position, size): void
      • Parameters

        • image: HTMLImageElement
        • position: Point
        • size: Size

        Returns void

  • line: ((from, to, options) => void)
  • overlay: ((drawingOperations) => void)
      • (drawingOperations): void
      • Parameters

        • drawingOperations: (() => void)
            • (): void
            • Returns void

        Returns void

  • rect: ((rectangle, options) => void)
  • shadow: ((drawingOperations, options?) => void)
      • (drawingOperations, options?): void
      • Parameters

        • drawingOperations: (() => void)
            • (): void
            • Returns void

        • Optional options: DropShadowOptions

        Returns void

  • sprite: ((sprite) => void)
      • (sprite): void
      • Parameters

        Returns void

  • square: ((position, size, options) => void)
      • (position, size, options): void
      • Parameters

        Returns void

  • subImage: ((image, position, size, subPosition, subSize) => void)
      • (image, position, size, subPosition, subSize): void
      • Parameters

        Returns void

  • text: ((position, text, colour, font) => void)
      • (position, text, colour, font): void
      • Parameters

        • position: Point
        • text: string
        • colour: string
        • font: string

        Returns void

  • tiles: ((position, tileGrid, spriteSheets, scale) => void)
      • (position, tileGrid, spriteSheets, scale): void
      • Parameters

        • position: Point
        • tileGrid: number[][]
        • spriteSheets: Terrain[]
        • scale: number

        Returns void

  • transparency: ((drawingOperations) => void)
      • (drawingOperations): void
      • Parameters

        • drawingOperations: (() => void)
            • (): void
            • Returns void

        Returns void