Package micycle.pgs

Class PGS_Conversion.PShapeData

java.lang.Object
micycle.pgs.PGS_Conversion.PShapeData
Enclosing class:
PGS_Conversion

public static class PGS_Conversion.PShapeData extends Object
A utility class for storing and manipulating the visual properties of PShapes from the Processing library. It encapsulates the stroke, fill, stroke color, stroke weight, and fill color attributes by directly accessing and modifying the corresponding fields of a given PShape using reflection.
  • Field Details

    • fillColor

      public int fillColor
    • strokeColor

      public int strokeColor
    • strokeWeight

      public float strokeWeight
    • fill

      public boolean fill
    • stroke

      public boolean stroke
  • Method Details

    • applyTo

      public void applyTo(processing.core.PShape other)
      Apply this shapedata to a given PShape.
      Parameters:
      other -
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object