@Override protected void drawComponentAppearing(Painter painter) { switch (appearSelector) { case FIRST_APPEARING: TextureQuad tex1 = TexturesLoader.getQuad( String.format(GameRessources.SPEC_PATH_TERRAIN, 1) + GameRessources.TEX_SOL); float colorUnit = (float) ((double) getAppearCount() / timeToAppear() * 0.5); Color4f color = new Color4f(colorUnit, colorUnit, colorUnit); Color4f buttonColor = new Color4f(colorUnit * 2, colorUnit * 2, colorUnit * 2); painter.setColor(color); tex1.fillScreen2D(0.5, 0.5, true, painter); drawTitleImage(painter, buttonColor); newPart.setColor(buttonColor); loadPart.setColor(buttonColor); break; default: super.drawComponentAppearing(painter); } }