Package cofh.repack.codechicken.lib.colour

Examples of cofh.repack.codechicken.lib.colour.ColourRGBA


    if (maskIcon == null || subIcon == null) {
      return;
    }
    if (maskColor == null) {
      maskColor = new ColourRGBA(0xFFFFFFFF);
    }
    maskColor.glColour();
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
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

TOP

Related Classes of cofh.repack.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.