Package net.bytten.metazelda.constraints

Examples of net.bytten.metazelda.constraints.ColorMap


        IDungeonConstraints constraints = null;
       
        if (getArg("color") != null) {
           
            try {
                ColorMap colorMap = new ColorMap();
                BufferedImage img = ImageIO.read(new File(getArg("color")));
                for (int x = 0; x < img.getWidth(); ++x)
                for (int y = 0; y < img.getHeight(); ++y) {
                    colorMap.set(x,y,img.getRGB(x,y));
                }
               
                constraints = new FreeformConstraints(colorMap);
                dungeonView = new FreeformDungeonView(colorMap);
           
View Full Code Here

TOP

Related Classes of net.bytten.metazelda.constraints.ColorMap

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.