forked from cjcliffe/CubicVR.js
-
Notifications
You must be signed in to change notification settings - Fork 0
PJSTexture
cjcliffe edited this page Oct 15, 2011
·
4 revisions
The PJSTexture class provides an adapter for Processing.js sketches making it possible to use PJS for generating or animating textures. A PJSTexture can be used in place of a Texture where needed. Note that framerate and size properties of the sketch will be bypassed with the width and height and update() calls you provide.
Parameters:
-
pjs
: The path to a Processing.js sketch, either relative or absolute. -
width
: The width of the texture. -
height
: The height of the texture.
Render the next frame of the Processing.js sketch to the texture.
Returns:
none
For additional methods see the parent class Texture.