Package codechicken.lib.colour

Examples of codechicken.lib.colour.Colour


  {
    CCRenderState.reset();
    CCRenderState.setBrightness(panel.world(), panel.x(), panel.y(), panel.z());
    CCRenderState.hasColour = true;

    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()));
  }
View Full Code Here


    CCRenderState.reset();
    CCRenderState.startDrawing();
    CCRenderState.hasColour = true;
    EnumColor c = EnumColor.DYES[metadata];

    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

  public void renderSide(ForgeDirection side, PartSidedPipe transmitter)
  {
    boolean connected = PartTransmitter.connectionMapContainsSide(transmitter.getAllCurrentConnections(), side);
    IIcon renderIcon = transmitter.getIconForSide(side);

    Colour c = null;

    if(transmitter.getRenderColor() != null)
    {
      c = new ColourRGBA(transmitter.getRenderColor().getColor(0), transmitter.getRenderColor().getColor(1), transmitter.getRenderColor().getColor(2), 1);
    }
View Full Code Here

TOP

Related Classes of codechicken.lib.colour.Colour

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.