Java 类com.badlogic.gdx.tools.hiero.unicodefont.effects.OutlineZigzagEffect 实例源码

项目:libgdxcn    文件:Hiero.java   
public Hiero(String [] args) {
    super("Hiero v3.0 - Bitmap Font Tool");
    Splash splash = new Splash(this, "/splash.jpg", 2000);
    initialize();
    splash.close();

    gamePanel.add(new LwjglCanvas(new Renderer()).getCanvas());

    prefs = Preferences.userNodeForPackage(Hiero.class);
    java.awt.Color backgroundColor = EffectUtil.fromString(prefs.get("background", "000000"));
    backgroundColorLabel.setIcon(getColorIcon(backgroundColor));
    renderingBackgroundColor = new Color(backgroundColor.getRed() / 255f, backgroundColor.getGreen() / 255f,
        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());
    effectsListModel.addElement(new OutlineZigzagEffect());
    effectsListModel.addElement(new ShadowEffect());
    effectsListModel.addElement(new DistanceFieldEffect());
    new EffectPanel(colorEffect);

    parseArgs(args);

    addWindowListener(new WindowAdapter() {
        public void windowClosed (WindowEvent event) {
            System.exit(0);
            // Gdx.app.quit();
        }
    });

    updateFontSelector();
    setVisible(true);
}
项目:GdxStudio    文件:HieroPanel.java   
public HieroPanel() {
    super(new BorderLayout());
    initialize();
    //fontRenderer = new FontRenderer();
    //canvas = new  LwjglAWTCanvas(fontRenderer, false);
    //gamePanel.add(canvas.getCanvas());
    prefs = Preferences.userNodeForPackage(HieroPanel.class);
    java.awt.Color backgroundColor = EffectUtil.fromString(prefs.get("background", "000000"));
    backgroundColorLabel.setIcon(getColorIcon(backgroundColor));
    renderingBackgroundColor = new Color(backgroundColor.getRed() / 255f, backgroundColor.getGreen() / 255f,
        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());
    effectsListModel.addElement(new OutlineZigzagEffect());
    effectsListModel.addElement(new ShadowEffect());
    effectsListModel.addElement(new DistanceFieldEffect());
    new EffectPanel(colorEffect);
    setVisible(true);
}
项目:GdxStudio    文件:Hiero.java   
public Hiero () {
    super("Hiero v3.0 - Bitmap Font Tool");
    Splash splash = new Splash(this, "/splash.jpg", 2000);
    initialize();
    splash.close();

    gamePanel.add(new LwjglCanvas(new Renderer(), false).getCanvas());

    prefs = Preferences.userNodeForPackage(Hiero.class);
    java.awt.Color backgroundColor = EffectUtil.fromString(prefs.get("background", "000000"));
    backgroundColorLabel.setIcon(getColorIcon(backgroundColor));
    renderingBackgroundColor = new Color(backgroundColor.getRed() / 255f, backgroundColor.getGreen() / 255f,
        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());
    effectsListModel.addElement(new OutlineZigzagEffect());
    effectsListModel.addElement(new ShadowEffect());
    effectsListModel.addElement(new DistanceFieldEffect());
    new EffectPanel(colorEffect);
    setVisible(true);
}
项目:touhou-java    文件:Hiero.java   
public Hiero () {
    super("Hiero v3.0 - Bitmap Font Tool");
    Splash splash = new Splash(this, "/splash.jpg", 2000);
    initialize();
    splash.close();

    gamePanel.add(new LwjglCanvas(new Renderer(), false).getCanvas());

    prefs = Preferences.userNodeForPackage(Hiero.class);
    java.awt.Color backgroundColor = EffectUtil.fromString(prefs.get("background", "000000"));
    backgroundColorLabel.setIcon(getColorIcon(backgroundColor));
    renderingBackgroundColor = new Color(backgroundColor.getRed() / 255f, backgroundColor.getGreen() / 255f,
        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());
    effectsListModel.addElement(new OutlineZigzagEffect());
    effectsListModel.addElement(new ShadowEffect());
    effectsListModel.addElement(new DistanceFieldEffect());
    new EffectPanel(colorEffect);

    addWindowListener(new WindowAdapter() {
        public void windowClosed (WindowEvent event) {
            System.exit(0);
            // Gdx.app.quit();
        }
    });

    setVisible(true);
}