Class PTBackground

  • All Implemented Interfaces:
    PConstants

    public class PTBackground
    extends Object
    implements PConstants
    Manages communication with the PixelTeleporter server device and provides a framework for object rendering and basic user camera control.

    To use, create a PixelTeleporter object in your sketch and call its start() method to begin listening for pixel data on the network.

    • Constructor Detail

      • PTBackground

        public PTBackground​(PApplet pApp)
    • Method Detail

      • resetBackground

        public void resetBackground()
      • load

        public void load​(String imgPath)
        Load an image file and scale it to the full current window size
        Parameters:
        imgPath -
      • clipBackgroundToWindow

        public void clipBackgroundToWindow()
      • buildBackgroundImage

        public void buildBackgroundImage()
      • showImage

        public void showImage()
      • moveRect

        public void moveRect​(float xOffs,
                             float yOffs)
      • getScale

        public float getScale()
      • setScale

        public void setScale​(float n)