Class MenuPainter

java.lang.Object
wiiuu.ui.MenuPainter

public final class MenuPainter extends Object
WII-UU menu backgrounds, drop shadows and vector dock icons, independent of app state.
  • Method Details

    • background

      public static BufferedImage background(int w, int h, Map<String,Color> palette)
      Render the palette's gradient, pinstripes and light blooms. Dimensions are at least one pixel.
    • shadow

      public static void shadow(Graphics2D graphics, Shape s, int depth, Color colour, int boost)
      Paint a soft shadow without changing the caller's graphics state. Nonpositive depth/boost draws nothing.
    • icon

      public static void icon(Graphics2D graphics, MenuPainter.Icon d, Rectangle2D r, Color c)
      Paint a vector dock icon in the given bounds, preserving graphics state.
    • gamepad

      public static void gamepad(Graphics2D graphics, float x, float y, float w, float h, Color c)
      Paint a GamePad symbol at explicit coordinates, preserving graphics state.