Options
All
  • Public
  • Public/Protected
  • All
Menu

Create a material from an image.

 const material = new ImageMaterial({ src: 'image.png', clip: true, opacity: 1.0 });

Hierarchy

Index

Constructors

Properties

Methods

Constructors

Properties

clip: boolean = true
image: HTMLImageElement = ...
opacity: number = 1.0
type: string = 'ImageMaterial'

Methods

  • render(context: CanvasRenderingContext2D): void

Generated using TypeDoc