Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PngPongShapeTransformer

A transformer to draw basic shapes onto an image. Currently only draws rectangles.

export
class

PngPongShapeTransformer

Hierarchy

  • PngPongShapeTransformer

Index

Constructors

Methods

Constructors

constructor

Methods

drawRect

  • drawRect(x: number, y: number, width: number, height: number, color: RGB): void
  • Add a rectangle to the list of draw operations. Must use this before running PngPong.run()

    memberof

    PngPongShapeTransformer

    Parameters

    • x: number
    • y: number
    • width: number
    • height: number
    • color: RGB

    Returns void

Generated using TypeDoc