Examples of ColorEffect


Examples of com.badlogic.gdx.tools.hiero.unicodefont.effects.ColorEffect

      backgroundColor.getBlue() / 255f, 1);
    fontList.setSelectedValue(prefs.get("system.font", "Arial"), true);
    fontFileText.setText(prefs.get("font.file", ""));

    java.awt.Color foregroundColor = EffectUtil.fromString(prefs.get("foreground", "ffffff"));
    colorEffect = new ColorEffect();
    colorEffect.setColor(foregroundColor);
    effectsListModel.addElement(colorEffect);
    effectsListModel.addElement(new GradientEffect());
    effectsListModel.addElement(new OutlineEffect());
    effectsListModel.addElement(new OutlineWobbleEffect());
View Full Code Here

Examples of com.badlogic.gdx.tools.hiero.unicodefont.effects.ColorEffect

  private UnicodeFont unicodeFont;

  @Override
  public void create () {
    unicodeFont = new UnicodeFont("c:/windows/fonts/arial.ttf", 48, false, false);
    unicodeFont.getEffects().add(new ColorEffect(java.awt.Color.white));
  }
View Full Code Here

Examples of com.badlogic.gdx.tools.hiero.unicodefont.effects.ColorEffect

      backgroundColor.getBlue() / 255f, 1);
    fontList.setSelectedValue(prefs.get("system.font", "Arial"), true);
    fontFileText.setText(prefs.get("font.file", ""));

    java.awt.Color foregroundColor = EffectUtil.fromString(prefs.get("foreground", "ffffff"));
    colorEffect = new ColorEffect();
    colorEffect.setColor(foregroundColor);
    effectsListModel.addElement(colorEffect);
    effectsListModel.addElement(new GradientEffect());
    effectsListModel.addElement(new OutlineEffect());
    effectsListModel.addElement(new OutlineWobbleEffect());
View Full Code Here

Examples of com.badlogic.gdx.tools.hiero.unicodefont.effects.ColorEffect

      backgroundColor.getBlue() / 255f, 1);
    fontList.setSelectedValue(prefs.get("system.font", "Arial"), true);
    fontFileText.setText(prefs.get("font.file", ""));

    java.awt.Color foregroundColor = EffectUtil.fromString(prefs.get("foreground", "ffffff"));
    colorEffect = new ColorEffect();
    colorEffect.setColor(foregroundColor);
    effectsListModel.addElement(colorEffect);
    effectsListModel.addElement(new GradientEffect());
    effectsListModel.addElement(new OutlineEffect());
    effectsListModel.addElement(new OutlineWobbleEffect());
View Full Code Here

Examples of org.newdawn.slick.font.effects.ColorEffect

    @SuppressWarnings("unchecked")
    private static void setUpFonts() {
        java.awt.Font awtFont = new java.awt.Font("Times New Roman", java.awt.Font.BOLD, 18);
        font = new UnicodeFont(awtFont);
        font.getEffects().add(new ColorEffect(java.awt.Color.white));
        font.addAsciiGlyphs();
        try {
            font.loadGlyphs();
        } catch (SlickException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.newdawn.slick.font.effects.ColorEffect

    @SuppressWarnings("unchecked")
    private static void setUpFonts() {
        java.awt.Font awtFont = new java.awt.Font("Helvetica", java.awt.Font.BOLD, 18);
        font = new UnicodeFont(awtFont);
        font.getEffects().add(new ColorEffect(java.awt.Color.white));
        font.addAsciiGlyphs();
        try {
            font.loadGlyphs();
        } catch (SlickException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.newdawn.slick.font.effects.ColorEffect

    {
    UnicodeFont f = null;
    try
    {
      f = new UnicodeFont("res/thin_pixel-7.ttf", size, false, false);
      f.getEffects().add(new ColorEffect());
        if (rule == 2) f.getEffects().add(new OutlineEffect(size/50, java.awt.Color.black));
        else if (rule == 1) f.getEffects().add(new ShadowEffect(java.awt.Color.gray, size/90, size/90, 0.52f));
      f.addAsciiGlyphs();
      f.setPaddingTop(f.getAscent()/2);
      f.loadGlyphs();
View Full Code Here

Examples of org.newdawn.slick.font.effects.ColorEffect

      //Code for setting up fonts from: http://slick.cokeandcode.com/wiki/doku.php?id=unicode_font_support
      Font awtFont = new Font("Andale Mono", Font.BOLD, 24);
      basicFont = new UnicodeFont(awtFont, 24, true, false);
      basicFont.addAsciiGlyphs();
      //basicFont.addGlyphs(aNumber,aNotherNumber);  //as above, if we need more glyphs, look them up and add them here
      basicFont.getEffects().add(new ColorEffect(java.awt.Color.WHITE));
      try {
        basicFont.loadGlyphs();
      } catch (SlickException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
View Full Code Here

Examples of org.newdawn.slick.font.effects.ColorEffect

      //Code for setting up fonts from: http://slick.cokeandcode.com/wiki/doku.php?id=unicode_font_support
      Font awtFont = new Font("Andale Mono", Font.BOLD, 24);
      basicFont = new UnicodeFont(awtFont, 24, true, false);
      basicFont.addAsciiGlyphs();
      //basicFont.addGlyphs(aNumber,aNotherNumber);  //as above, if we need more glyphs, look them up and add them here
      basicFont.getEffects().add(new ColorEffect(java.awt.Color.BLACK));
      try {
        basicFont.loadGlyphs();
      } catch (SlickException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
View Full Code Here

Examples of org.newdawn.slick.font.effects.ColorEffect

    unicodeFont = new UnicodeFont("c:/windows/fonts/arial.ttf", 48, false, false);
//    unicodeFont.setPaddingBottom(10);
//    unicodeFont.setPaddingRight(10);
//    unicodeFont.setPaddingAdvanceX(-10);
//    unicodeFont.getEffects().add(new ShadowEffect(java.awt.Color.black, 5, 5, 0.5f));
    unicodeFont.getEffects().add(new ColorEffect(java.awt.Color.white));

    // unicodeFont = new UnicodeFont("Arial", 25, false, false);
    // unicodeFont = new UnicodeFont("Everson Mono", 44, false, false);

    // font.addGlyphs(0, 255);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.