9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-27 19:19:07 +00:00

New Studio Map Command

- Allows you to see a map of a world/pack (without being in the world)
- Chooses a random color for each biome if no color is chosen, based on vanilla derivative 

Dev note: 
- The biome at your cursor is not accurate when zoomed out
This commit is contained in:
StrangeOne101
2021-07-15 17:52:20 +12:00
parent c54a849243
commit ad6b746124
8 changed files with 138 additions and 83 deletions

View File

@@ -130,6 +130,11 @@ public class RandomColor {
random.setSeed(seed);
}
public RandomColor(Random random) {
loadColorBounds();
this.random = random;
}
private int getColor(int hue, int saturation, int brightness) {
return java.awt.Color.getHSBColor((float)(hue + hueOffset % 360) / 360, (float)saturation / 100, (float)brightness / 100).getRGB();
}