List of usage examples for com.badlogic.gdx.graphics Color TEAL
Color TEAL
To view the source code for com.badlogic.gdx.graphics Color TEAL.
Click Source Link
From source file:com.jupiter.europa.screen.overlay.PauseMenu.java
License:Open Source License
private static void buildPauseMenuSkin() { Skin skin = new Skin(); skin.add("button-font", EuropaGame.game.getAssetManager() .get(FileLocations.FONTS_DIRECTORY.resolve(BUTTON_FONT).toString())); skin.add("title-font", EuropaGame.game.getAssetManager() .get(FileLocations.FONTS_DIRECTORY.resolve(TITLE_FONT).toString())); // Set the background texture Pixmap pixmap = new Pixmap(1, (int) 1, Pixmap.Format.RGB888); pixmap.setColor(Color.WHITE); pixmap.fill();//from w w w. j av a 2 s . c o m skin.add("background", new Texture(pixmap)); // Create a Label style for the title Label.LabelStyle titleStyle = new Label.LabelStyle(); titleStyle.background = skin.newDrawable("background", TRANSPARENT); titleStyle.font = skin.getFont("title-font"); titleStyle.fontColor = Color.BLACK; skin.add("default", titleStyle); //Create a button style TextButton.TextButtonStyle textButtonStyle = new TextButton.TextButtonStyle(); textButtonStyle.up = skin.newDrawable("background", TRANSPARENT); textButtonStyle.down = skin.newDrawable("background", TRANSPARENT); textButtonStyle.checked = skin.newDrawable("background", TRANSPARENT); textButtonStyle.over = skin.newDrawable("background", TRANSPARENT); textButtonStyle.disabled = skin.newDrawable("background", TRANSPARENT); textButtonStyle.font = skin.getFont("button-font"); textButtonStyle.fontColor = Color.TEAL; textButtonStyle.overFontColor = Color.YELLOW; textButtonStyle.disabledFontColor = Color.GRAY; textButtonStyle.pressedOffsetX = 2f; textButtonStyle.pressedOffsetY = -3f; skin.add("default", textButtonStyle); // // skin = EmergenceGame.game.getAssetManager().get( // new File(FileLocations.SKINS_DIRECTORY, "main_menu.skin").getPath()); pauseMenuSkin = skin; }
From source file:es.eucm.ead.editor.view.widgets.galleries.ProjectSoundsGallery.java
License:Open Source License
public Gallery.Cell addTile(String path, String title) { Tile tile = WidgetBuilder.tile(title, drawable); Actor background = tile.getBackground(); background.setColor(Color.TEAL); ((Image) background).setScaling(Scaling.none); prepareGalleryItem(tile, null);/* w w w. jav a 2 s . c o m*/ Gallery.Cell cell = gallery.add(tile); cell.setName(path); return cell; }
From source file:non.plugins.graphics.java
public Color color(String name) { if (name.startsWith("#")) return Color.valueOf(name.replace("#", "")); if ("clear".equalsIgnoreCase(name)) return Color.CLEAR; else if ("white".equalsIgnoreCase(name)) return Color.WHITE; else if ("black".equalsIgnoreCase(name)) return Color.BLACK; else if ("red".equalsIgnoreCase(name)) return Color.RED; else if ("green".equalsIgnoreCase(name)) return Color.GREEN; else if ("blue".equalsIgnoreCase(name)) return Color.BLUE; else if ("lightgray".equalsIgnoreCase(name)) return Color.LIGHT_GRAY; else if ("gray".equalsIgnoreCase(name)) return Color.GRAY; else if ("darkgray".equalsIgnoreCase(name)) return Color.DARK_GRAY; else if ("pink".equalsIgnoreCase(name)) return Color.PINK; else if ("orange".equalsIgnoreCase(name)) return Color.ORANGE; else if ("yellow".equalsIgnoreCase(name)) return Color.YELLOW; else if ("magenta".equalsIgnoreCase(name)) return Color.MAGENTA; else if ("cyan".equalsIgnoreCase(name)) return Color.CYAN; else if ("olive".equalsIgnoreCase(name)) return Color.OLIVE; else if ("purple".equalsIgnoreCase(name)) return Color.PURPLE; else if ("maroon".equalsIgnoreCase(name)) return Color.MAROON; else if ("teal".equalsIgnoreCase(name)) return Color.TEAL; else if ("navy".equalsIgnoreCase(name)) return Color.NAVY; return Color.CLEAR; }