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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user