Class Stamp

java.lang.Object
org.openpatch.scratch.internal.Stamp

public class Stamp extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Stamp(Image image, double x2, double y2)
     
    Stamp(Image image, double x, double y, boolean horizontal, boolean vertical, boolean diagonal)
    A map tile, possibly flipped the way Tiled stores it.
    Stamp(Image image, double degrees, double x, double y, RotationStyle style)
     
    Stamp(Image image, double degrees, double x, double y, RotationStyle style, double centerX, double centerY)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(processing.core.PGraphics g)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • image

      public Image image
  • Constructor Details

    • Stamp

      public Stamp(Image image, double x2, double y2)
    • Stamp

      public Stamp(Image image, double x, double y, boolean horizontal, boolean vertical, boolean diagonal)
      A map tile, possibly flipped the way Tiled stores it.
      Parameters:
      image - the tile
      x - the x position
      y - the y position
      horizontal - mirrored left/right
      vertical - mirrored up/down
      diagonal - mirrored across the diagonal (with the others: turned)
    • Stamp

      public Stamp(Image image, double degrees, double x, double y, RotationStyle style)
    • Stamp

      public Stamp(Image image, double degrees, double x, double y, RotationStyle style, double centerX, double centerY)
  • Method Details

    • draw

      public void draw(processing.core.PGraphics g)