All pastes #249903 Raw Edit

Stuff

public text v1 · immutable
#249903 ·published 2006-11-16 09:39 UTC
rendered paste body
rulers:
    public static short[][][] makeFlag()
    {
        short result[][][] = Methods.loadBitmap("bitmaps/flag.bmp");
        for(int x = 0; x < result.length; x++)
        {
            for(int y = 0; y < result[x].length; y++)
                if(result[x][y][0] == 255 && result[x][y][1] == 255 && result[x][y][2] == 255)
                    result[x][y][0] = BitMapInfo.BITMASK_ANY;

        }

        return result;
    }

mine:
    public static short[][][] makeWater()
    {
        short result[][][] = loadBitmap("bitmaps/water.bmp");
        for(int x = 0; x < result.length; x++)
        {
            for(int y = 0; y < result[x].length; y++)
                if(result[x][y][0] == 1 && result[x][y][1] == 47 && result[x][y][2] == 210)
                    result[x][y][0] = BitMapInfo.BITMASK_ANY;

        }

        return result;
    }