com.transmote.nest
Class NestImageSprite
java.lang.Object
java.util.Observable
com.transmote.nest.events.EventDispatcher
com.transmote.nest.NestSprite
com.transmote.nest.NestImageSprite
- All Implemented Interfaces:
- Observer
public class NestImageSprite
- extends NestSprite
A simple NestSprite wrapper for Processing's image() method.
Set path and call loadImage, and manipulate as with other NestSprites.
Also supports alpha.
| Fields inherited from class com.transmote.nest.NestSprite |
blendMode, boundsLeft, boundsTop, handleCaptureEvents, height, inFront, inputChildren, inputEnabled, NO_BLEND_MODE, rotationX, rotationY, rotationZ, scaleX, scaleY, scaleZ, visible, width, x, y, z |
|
Method Summary |
void |
draw(PApplet p)
All drawing to screen should go in this method of subclasses. |
void |
loadImage()
|
void |
loadImage(PApplet p)
|
| Methods inherited from class com.transmote.nest.NestSprite |
addChild, addChild, bounds, dispatchEvent, dispose, dispose, getChildAt, getChildIndex, globalToLocal, hitTest, hitTest, isDisposed, localToGlobal, mousePt, mouseX, mouseY, numChildren, pApplet, parent, removeChild, removeChild, renderer, screenPt, screenX, screenY, setBounds, setBounds, setChildIndex, setDraw, setDraw, setRenderer, setRenderer, setUpdate, setUpdate, swapChildren, swapChildren |
path
public String path
tintR
public int tintR
tintG
public int tintG
tintB
public int tintB
alpha
public float alpha
NestImageSprite
public NestImageSprite(String path)
NestImageSprite
public NestImageSprite(String path,
boolean autoload)
loadImage
public void loadImage()
loadImage
public void loadImage(PApplet p)
draw
public void draw(PApplet p)
- Description copied from class:
NestSprite
- All drawing to screen should go in this method of subclasses.
draw() is called after applying all translation and rotation.
- Parameters:
p - The PApplet application instance.
Processing library Nest by Eric Socolofsky. (C) Eric Socolofsky 2011-2013