Package g4p_controls.HotSpot

Examples of g4p_controls.HotSpot.HSalpha


    resize(offImage[0].width, offImage[0].height);

    //========================================================================
    // Setup the hotspots
    hotspots = new HotSpot[]{
        new HSalpha(1, 0, 0, offImage[stateValue], PApplet.CORNER)
    };

    //========================================================================

    z = Z_SLIPPY;
View Full Code Here


          new HSmask(1, mask)
      };
    }
    else {   // no mask then use alpha channel of the OFF image
      hotspots = new HotSpot[]{
          new HSalpha(1, 0, 0, bimage[0], PApplet.CORNER)
      };
    }
    //========================================================================

    z = Z_SLIPPY;
View Full Code Here

    buffer.g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
        RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
    buffer.g2.setFont(G4P.numericLabelFont);
    buffer.imageMode(PApplet.CENTER);
    hotspots = new HotSpot[]{
        new HSalpha(THUMB_SPOT, width/2 + (parametricPos - 0.5f) * trackLength, height/2, thumb, PApplet.CENTER)// thumb
        new HSrect(TRACK_SPOT, (width-trackLength)/2, (height-trackWidth)/2, trackLength, trackWidth),    // track
    };
    opaque = false;
    z = Z_SLIPPY;

View Full Code Here

TOP

Related Classes of g4p_controls.HotSpot.HSalpha

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.