Package codechicken.lib.colour

Examples of codechicken.lib.colour.Colour.rgba()


    Colour colour = new ColourRGBA(panel.colour.getColor(0), panel.colour.getColor(1), panel.colour.getColor(2), 1);
    int side = panel.side.ordinal();
   
    frameModels[side].render(new Translation(panel.x(), panel.y(), panel.z()), new IconTransformation(icon));
    lightModels[side].render(new Translation(panel.x(), panel.y(), panel.z()), new IconTransformation(icon), new ColourMultiplier(colour.rgba()));
  }

  public void renderItem(int metadata)
  {
    TextureUtils.bindAtlas(0);
View Full Code Here


    Colour colour = new ColourRGBA(c.getColor(0), c.getColor(1), c.getColor(2), 1);
    Colour white = new ColourRGBA(1.0, 1.0, 1.0, 1.0);
   
    for(int i = 4; i < 5; i++)
    {
      frameModels[i].render(new IconTransformation(icon), new ColourMultiplier(white.rgba()));
      lightModels[i].render(new IconTransformation(icon), new ColourMultiplier(colour.rgba()));
    }
   
    CCRenderState.draw();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.