public class IFPGraphicsState extends Object
Modifier and Type | Field and Description |
---|---|
int |
cMode |
float |
cModeA |
float |
cModeX |
float |
cModeY |
float |
cModeZ |
int |
ellipseMode |
boolean |
fill |
int |
fillColor |
int |
rectMode |
int |
smooth |
boolean |
stroke |
int |
strokeColor |
float |
strokeWeight |
int |
textAlign |
processing.core.PFont |
textFont |
int |
textMode |
float |
textSize |
boolean |
tint |
int |
tintColor |
Constructor and Description |
---|
IFPGraphicsState() |
IFPGraphicsState(processing.core.PApplet applet)
Convenience contstructor saves the applet's graphics state into
the newly created IFPGraphicsState object.
|
Modifier and Type | Method and Description |
---|---|
void |
restoreSettingsToApplet(processing.core.PApplet applet)
restores the saved graphics state to the specified PApplet
|
void |
saveSettingsForApplet(processing.core.PApplet applet)
saves the graphics state for the specified PApplet
|
public int smooth
public int rectMode
public int ellipseMode
public processing.core.PFont textFont
public int textAlign
public float textSize
public int textMode
public boolean tint
public int tintColor
public boolean fill
public int fillColor
public boolean stroke
public int strokeColor
public float strokeWeight
public int cMode
public float cModeX
public float cModeY
public float cModeZ
public float cModeA
public IFPGraphicsState()
public IFPGraphicsState(processing.core.PApplet applet)
applet
- the PApplet instance whose state we're savingpublic void saveSettingsForApplet(processing.core.PApplet applet)
applet
- the PApplet instance whose state we're savingpublic void restoreSettingsToApplet(processing.core.PApplet applet)
applet
- the PApplet instance whose state we're restoringProcessing Library interfascia by Brendan Berg. (c) 2015