Package javax.vecmath

Examples of javax.vecmath.Color4f


    final int shineRadX = 128 + lightShine;
    final int shineRadY = 96 + lightShine;
    final float lightPosX = x + anim.getWidth()/2 - shineRadX;
    final float lightPosY = y + anim.getHeight()/4*3 - shineRadY;

    graphics.setColor(new Color4f(.0f,.0f,.0f,1f));
    graphics.setDrawingMode(DrawingMode.MULTIPLY);
//    graphics.setColorMask(false, false, false, true);
    graphics.translate(-lightPosX/4, -lightPosY/4);
    graphics.drawImage(light,shineRadX*2/4, shineRadY*2/4);
    graphics.clearTransformation();
 
View Full Code Here


  }
 
  public static void drawFire(Graphics renderer, final Animation<Frame> animFire, final Image light, final float fireX, final float fireY, final int lightShine) {
    // Draw the fire
    renderer.setColor(new Color4f(1f,1f,1f,1f));
   
    renderer.translate(-(fireX - animFire.getWidth()/2), -(fireY - animFire.getHeight()/2));
    animFire.draw(renderer, animFire.getWidth(), animFire.getHeight());     
    renderer.clearTransformation();
  }
View Full Code Here

    springProperty.getG().addPoint(1f, .9f);
    springProperty.getB().addPoint(1f, .9f);
    springProperty.getA().addPoint(1f, 0);
    springSystem.addUpdater(springProperty);

    final Color4f white = new Color4f(1,1,1,1);
    final Color4f red = new Color4f(1,0,0,1);
   
    canvas.setGraphicsListener(new GraphicsListener() {
      long start = System.currentTimeMillis();
      long currTime = start;
      long count = 0;
View Full Code Here

TOP

Related Classes of javax.vecmath.Color4f

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.