Skip to content

SceneImage

Overview

An HTMLImageElement that is backed by a scene. Call update() on this SceneImage to update the image from the scene.

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class SceneImage

import { SceneImage } from 'scenerystack/scenery';

Constructor

new SceneImage( scene )

Instance Methods

update( onComplete )

NOTE: calling this before the previous update() completes may cause the previous onComplete to not be executed @public

@param {function} onComplete

Source Code

See the source for SceneImage.js in the scenery repository.