Class IFPGraphicsState
java.lang.Object
interfascia.IFPGraphicsState
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIFPGraphicsState(PApplet sketch) Convenience contstructor saves the sketch's graphics state into the newly created IFPGraphicsState object.IFPGraphicsState(PGraphics graphics) Convenience contstructor saves the graphics state into the newly created IFPGraphicsState object. -
Method Summary
Modifier and TypeMethodDescriptionvoidrestoreSettingsToApplet(PApplet sketch) restores the saved graphics state to the specified PAppletvoidrestoreSettingsToGraphics(PGraphics graphics) restores the saved graphics state to the specified PGraphicsvoidsaveSettingsForApplet(PApplet sketch) saves the graphics state for the specified PAppletvoidsaveSettingsForGraphics(PGraphics graphics) saves the graphics state for the specified PGraphics
-
Field Details
-
smooth
public int smooth -
rectMode
public int rectMode -
ellipseMode
public int ellipseMode -
textFont
-
textAlign
public int textAlign -
textSize
public float textSize -
textMode
public int textMode -
tint
public boolean tint -
tintColor
public int tintColor -
fill
public boolean fill -
fillColor
public int fillColor -
stroke
public boolean stroke -
strokeColor
public int strokeColor -
strokeWeight
public float strokeWeight -
cMode
public int cMode -
cModeX
public float cModeX -
cModeY
public float cModeY -
cModeZ
public float cModeZ -
cModeA
public float cModeA
-
-
Constructor Details
-
IFPGraphicsState
public IFPGraphicsState() -
IFPGraphicsState
Convenience contstructor saves the graphics state into the newly created IFPGraphicsState object.- Parameters:
graphics- the PGraphics instance whose state we're saving
-
IFPGraphicsState
Convenience contstructor saves the sketch's graphics state into the newly created IFPGraphicsState object.- Parameters:
sketch- the PApplet instance whose state we're saving
-
-
Method Details
-
saveSettingsForGraphics
saves the graphics state for the specified PGraphics- Parameters:
graphics- the PGraphics instance whose state we're saving
-
restoreSettingsToGraphics
restores the saved graphics state to the specified PGraphics- Parameters:
graphics- the PGraphics instance whose state we're restoring
-
saveSettingsForApplet
saves the graphics state for the specified PApplet- Parameters:
sketch- the PApplet instance whose state we're saving
-
restoreSettingsToApplet
restores the saved graphics state to the specified PApplet- Parameters:
sketch- the PApplet instance whose state we're restoring
-