Class ShipColors

java.lang.Object
org.dark.graphics.util.ShipColors

public class ShipColors extends Object
  • Field Details

    • EXPLOSION_COLORS

      public static final Map<String,Color> EXPLOSION_COLORS
    • SMOKE_COLORS

      public static final Map<String,Color> SMOKE_COLORS
  • Constructor Details

    • ShipColors

      public ShipColors()
  • Method Details

    • clamp255

      public static int clamp255(int x)
    • colorBlend

      public static Color colorBlend(Color a, Color b, float amount)
    • colorJitter

      public static Color colorJitter(Color color, float amount)
    • init

      public static void init() throws IOException, org.json.JSONException
      Throws:
      IOException
      org.json.JSONException