JColorChooser to ColorRGBA

so how do I do it? sorry for my ignorance… I'd just like to have a ColorPallete so I can change the DisplaySystem.getDisplaySystem().getRenderer().setBackgroundColor(ColorRGBA c)

Here are two methods that I use. Actually I copied them from RenParticleEditor or smth. :slight_smile:


   public static Color makeColor(ColorRGBA rgba, boolean useAlpha)
   {
      return new Color(rgba.r, rgba.g, rgba.b, (useAlpha ? rgba.a : 1f));
   }
   
   public static ColorRGBA makeColorRGBA(Color color)
   {
      return new ColorRGBA(color.getRed() / 255f, color.getGreen() / 255f, color.getBlue() / 255f, color.getAlpha() / 255f);
   }

1 Like

wow… thanks… I'll be looking into this right now… :smiley: