Fix formatting issues

Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
This commit is contained in:
solonovamax
2020-11-07 11:14:06 -05:00
parent c0e0dad100
commit 56671ac6a1
98 changed files with 1369 additions and 1492 deletions

View File

@@ -15,9 +15,9 @@ import java.io.File;
import java.io.IOException;
public class ImageLoader {
private static final double INVERSE_ROOT_2 = 0.7071067811865475;
private final BufferedImage image;
private final Align align;
private static final double INVERSE_ROOT_2 = 0.7071067811865475;
public ImageLoader(File file, Align align) throws IOException {
image = ImageIO.read(file);
@@ -60,9 +60,9 @@ public class ImageLoader {
}
public void debug(boolean genStep, World w) {
if (!ConfigUtil.debug) return;
if(!ConfigUtil.debug) return;
BufferedImage newImg = copyImage(image);
if (genStep) {
if(genStep) {
newImg = redrawStepped(image, w, align);
}
DebugGUI debugGUI = new DebugGUI(newImg);
@@ -90,20 +90,6 @@ public class ImageLoader {
}
}
public void debug(boolean genStep, World w) {
if(!ConfigUtil.debug) return;
BufferedImage newImg = copyImage(image);
if(genStep) {
newImg = redrawStepped(image, w, align);
}
DebugGUI debugGUI = new DebugGUI(newImg);
debugGUI.start();
}
public double getNoiseVal(int x, int y, Channel channel) {
return ((double) (getChannel(x, y, channel) - 128) / 128) * inverseRoot2;
}
public Align getAlign() {
return align;
}