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);