Options
All
  • Public
  • Public/Protected
  • All
Menu

Applies the "Opacity" effect to a sprite, setting the alpha of all pixels to a given value.

Hierarchy

  • Opacity

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Opacity(opacity: number): Opacity

Properties

opacity

opacity: number

The new opacity of the sprite from 0-1.0

Methods

updatePixel

  • updatePixel(x: number, y: number, imageData: ImageData): void