Package codechicken.lib.colour

Examples of codechicken.lib.colour.ColourRGBA


  {
    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

    Colour c = null;

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

    renderPart(renderIcon, transmitter.getModelForSide(side, false), transmitter.x(), transmitter.y(), transmitter.z(), c);
  }
View Full Code Here

  }

  public void renderEnergySide(ForgeDirection side, PartUniversalCable cable)
  {
    CCRenderState.changeTexture(MekanismRenderer.getBlocksTexture());
    renderTransparency(MekanismRenderer.energyIcon, cable.getModelForSide(side, true), new ColourRGBA(1.0, 1.0, 1.0, cable.currentPower));
  }
View Full Code Here

  }

  public void renderFluidInOut(ForgeDirection side, PartMechanicalPipe pipe)
  {
    CCRenderState.changeTexture(MekanismRenderer.getBlocksTexture());
    renderTransparency(pipe.getTransmitterNetwork().refFluid.getIcon(), pipe.getModelForSide(side, true), new ColourRGBA(1.0, 1.0, 1.0, pipe.currentScale));
  }
View Full Code Here

  }

  public void renderGasSide(ForgeDirection side, PartPressurizedTube tube)
  {
    CCRenderState.changeTexture(MekanismRenderer.getBlocksTexture());
    renderTransparency(tube.getTransmitterNetwork().refGas.getIcon(), tube.getModelForSide(side, true), new ColourRGBA(1.0, 1.0, 1.0, tube.currentScale));
  }
View Full Code Here

    public Colour getColourRGB()
    {
        Matcher matcherRGB = patternRGB.matcher(getValue().replaceAll("\\s", ""));
        if(matcherRGB.matches())
        {
            return new ColourRGBA(
                    Integer.parseInt(matcherRGB.group(1)),
                    Integer.parseInt(matcherRGB.group(2)),
                    Integer.parseInt(matcherRGB.group(3)),
                    0xFF);
        }
       
        return new ColourRGBA(getHexValue()<<8|0xFF);
    }
View Full Code Here

        }
    }

    private void writeColour(int px, int py, int var5, int var6, int var7, int var8)
    {
        imageData[py*32+px] = new ColourRGBA(var5, var6, var7, var8).argb();
    }
View Full Code Here

        }
    }

    private void writeColour(int px, int py, int var5, int var6, int var7, int var8)
    {
        imageData[py*32+px] = new ColourRGBA(var5, var6, var7, var8).argb();
    }
View Full Code Here

                var5 = var9;
                var6 = var10;
                var7 = var11;
            }

            imageData[var2] = new ColourRGBA(var5, var6, var7, var8).argb();
        }
    }
View Full Code Here

TOP

Related Classes of codechicken.lib.colour.ColourRGBA

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.