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);
} catch (IOException e) {
e.printStackTrace();
System.err.println("Falling back on non-freeform dungeon design");