當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。