Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
package com.marginallyclever.convenience.noise;
public class NoiseFactory {
public static String [] getNames() {
return new String[] {"Perlin","Simplex","Cellular"};
}
public static Noise getNoise(int i) {
return switch (i) {
case 0 -> new PerlinNoise();
case 1 -> new SimplexNoise();
case 2 -> new CellularNoise();
default -> null;
};
}
}
f99985dc8This file is pinned to the selected release. Download the original to open it in your design tool.