Java Code Examples for codechicken.lib.colour.Colour#argb()

The following examples show how to use codechicken.lib.colour.Colour#argb() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TriangTexManager.java    From WirelessRedstone with MIT License 5 votes vote down vote up
private static void mergeTexturesWithColour(ColourARGB texcolour)
{
    for(int i = 0; i < 256; i++)
    {
        Colour colour;
        if(texGrad[i].a == 0)
            colour = texRing[i];
        else
            colour = texGrad[i].copy().multiply(texcolour);
        
        imageData[i] = colour.argb();
    }
}
 
Example 2
Source File: RemoteTexManager.java    From WirelessRedstone with MIT License 5 votes vote down vote up
private static void mergeTexturesWithColour(Colour texcolour, boolean on)
{
    for(int i = 0; i < 256; i++)
    {
        Colour colour;
        if(texGrad[i].a == 0)
            colour = on ? texOn[i] : texOff[i];
        else
            colour = texGrad[i].copy().multiply(texcolour);
        
        imageData[i] = colour.argb();
    }
}