当前位置: 首页>>代码示例>>Java>>正文


Java OutlineZigzagEffect类代码示例

本文整理汇总了Java中com.badlogic.gdx.tools.hiero.unicodefont.effects.OutlineZigzagEffect的典型用法代码示例。如果您正苦于以下问题:Java OutlineZigzagEffect类的具体用法?Java OutlineZigzagEffect怎么用?Java OutlineZigzagEffect使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


OutlineZigzagEffect类属于com.badlogic.gdx.tools.hiero.unicodefont.effects包,在下文中一共展示了OutlineZigzagEffect类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Hiero

import com.badlogic.gdx.tools.hiero.unicodefont.effects.OutlineZigzagEffect; //导入依赖的package包/类
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);
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:41,代码来源:Hiero.java

示例2: HieroPanel

import com.badlogic.gdx.tools.hiero.unicodefont.effects.OutlineZigzagEffect; //导入依赖的package包/类
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);
}
 
开发者ID:pyros2097,项目名称:GdxStudio,代码行数:28,代码来源:HieroPanel.java

示例3: Hiero

import com.badlogic.gdx.tools.hiero.unicodefont.effects.OutlineZigzagEffect; //导入依赖的package包/类
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);
}
 
开发者ID:pyros2097,项目名称:GdxStudio,代码行数:30,代码来源:Hiero.java

示例4: Hiero

import com.badlogic.gdx.tools.hiero.unicodefont.effects.OutlineZigzagEffect; //导入依赖的package包/类
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);
}
 
开发者ID:tjumyk,项目名称:touhou-java,代码行数:38,代码来源:Hiero.java


注:本文中的com.badlogic.gdx.tools.hiero.unicodefont.effects.OutlineZigzagEffect类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。