Class IFPGraphicsState

java.lang.Object
interfascia.IFPGraphicsState

public class IFPGraphicsState extends Object
  • Field Details

    • smooth

      public int smooth
    • rectMode

      public int rectMode
    • ellipseMode

      public int ellipseMode
    • textFont

      public PFont 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

      public IFPGraphicsState(PGraphics graphics)
      Convenience contstructor saves the graphics state into the newly created IFPGraphicsState object.
      Parameters:
      graphics - the PGraphics instance whose state we're saving
    • IFPGraphicsState

      public IFPGraphicsState(PApplet sketch)
      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

      public void saveSettingsForGraphics(PGraphics graphics)
      saves the graphics state for the specified PGraphics
      Parameters:
      graphics - the PGraphics instance whose state we're saving
    • restoreSettingsToGraphics

      public void restoreSettingsToGraphics(PGraphics graphics)
      restores the saved graphics state to the specified PGraphics
      Parameters:
      graphics - the PGraphics instance whose state we're restoring
    • saveSettingsForApplet

      public void saveSettingsForApplet(PApplet sketch)
      saves the graphics state for the specified PApplet
      Parameters:
      sketch - the PApplet instance whose state we're saving
    • restoreSettingsToApplet

      public void restoreSettingsToApplet(PApplet sketch)
      restores the saved graphics state to the specified PApplet
      Parameters:
      sketch - the PApplet instance whose state we're restoring