亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? malleablecolor.java

?? 用java開發的一個實施策略游戲源碼 值得學習一下
?? JAVA
字號:
/*
	Netwar
	Copyright (C) 2002  Daniel Grund, Kyle Kakligian, Jason Komutrattananon, & Brian Hibler.

	This file is part of Netwar.

	Netwar is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	Netwar is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with Netwar; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

package netwar.utils.vectorgraphics;
import java.awt.*;
import java.awt.color.*;
import java.awt.image.ColorModel;
import java.awt.geom.*;
import netwar.utils.Assert;


/** This is a Color which can be changed through a predifined one-dimensional spectrum.
 * Check out the 'cloacking' Beam Sniper to see what it can do ;)
 * Basically, when you construct it you specify the RGBA values for two colors,
 * and the number of colors you want. The other colors are calculated such
 * that the change in red is nearly constant between two consecutive colors
 * and the same is true for green, blue and alpha.
 * Use setCurrent(int) to pick a color from 1 to N (default is 1).
 * In this way you can change the color even after you've passed it off to
 * something else (like a GraphicThing for example).
 * @author Daniel Grund
 */
public class MalleableColor extends Color {
	ColorSpectrum colors;
	int current;
	/** Creates a new instance of MalleableColor 
	 * @param redOne the red level of color 1
	 * @param redN the red level of color N
	 * @param greenOne the green level of color 1
	 * @param greenN the green level of color N
	 * @param blueOne the blue level of color 1
	 * @param blueN the blue level of color N
	 * @param alphaOne the alpha level of color 1
	 * @param alphaN the alpha level of color N
	 * @param N the number of colors in this spectrum
	 */
	public MalleableColor(ColorSpectrum cs) {
		super(cs.getColor(0).getRGB());
		current = 0;
		colors = cs;
	}
	/** Set the current color to use from the spectrum.
	 * @param cur An integer from 1 to N indicating which color is now in use.
	 */
	public void setCurrent(int cur) {
		Assert.notFalse(cur > 0, "Tried to set the current color on a MalleableColor to a value less than 1.");
		Assert.notFalse(cur <= colors.getLength(), "Tried to set the current color on a MalleableColor to a value greater than N.");
		
		current = cur - 1; 
	}
	/** Get the current color in use.
	 * @return An integer from 1 to N indicating which color is now in use.
	 */
	public int getCurrent() {
		return current + 1;
	}
	
	public int getAlpha() {
		return colors.getColor(current).getAlpha();
	}
	public int getBlue() {
		return colors.getColor(current).getBlue();
	}
	public int getGreen() {
		return colors.getColor(current).getGreen();
	}
	public int getRed() {
		return colors.getColor(current).getRed();
	}
	public int getRGB() {
		return colors.getColor(current).getRGB();
	}
	public int hashCode() {
		return colors.getColor(current).hashCode();
	}
	public boolean equals(Object o) {
		return colors.getColor(current).equals(o);
	}
	public float[] getRGBComponents(float[] compArray) {
		return colors.getColor(current).getRGBComponents(compArray);
	}
	public float[] getRGBColorComponents(float[] compArray) {
		return colors.getColor(current).getRGBColorComponents(compArray);
	}
	public float[] getComponents(float[] compArray) {
		return colors.getColor(current).getComponents(compArray);
	}
	public float[] getColorComponents(float[] compArray) {
		return colors.getColor(current).getColorComponents(compArray);
	}
	public float[] getComponents(ColorSpace cspace, float[] compArray) {
		return colors.getColor(current).getComponents(cspace, compArray);
	}
	public float[] getColorComponents(ColorSpace cspace, float[] compArray) {
		return colors.getColor(current).getColorComponents(cspace, compArray);
	}
	public ColorSpace getColorSpace() {
		return colors.getColor(current).getColorSpace();
	}
	public PaintContext createContext(	ColorModel cm,
						Rectangle r,
						Rectangle2D r2d,
						AffineTransform xform,
						RenderingHints hints) {
		return colors.getColor(current).createContext(cm, r, r2d, xform, hints);
	}
	public int getTransparency() {
		return colors.getColor(current).getTransparency();
	}
		


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人sese在线| 久久亚洲一区二区三区明星换脸| 67194成人在线观看| 欧美国产1区2区| 日韩精品久久理论片| 不卡的av在线播放| 精品久久久久久久久久久院品网| 一区二区免费在线| 不卡视频一二三| 国产三级精品三级| 蜜臀av一级做a爰片久久| 91福利在线播放| 日本一二三不卡| 国产一区二区三区日韩| 91精品午夜视频| 亚洲电影一级黄| 日本高清不卡aⅴ免费网站| 亚洲欧美另类综合偷拍| 国产高清久久久| 欧美成人vr18sexvr| 日韩成人午夜电影| 欧美美女激情18p| 亚洲国产综合91精品麻豆| 91在线高清观看| 一区在线中文字幕| eeuss国产一区二区三区| 久久蜜桃一区二区| 精品亚洲国产成人av制服丝袜| 欧美精品v国产精品v日韩精品 | 亚洲电影在线免费观看| 色综合色狠狠天天综合色| 一色桃子久久精品亚洲| 91免费在线看| 一区二区三区鲁丝不卡| 91激情在线视频| 亚洲一区二区av电影| 欧美最新大片在线看| 午夜欧美在线一二页| 欧美男生操女生| 日韩福利电影在线观看| 日韩一区二区三区av| 韩国毛片一区二区三区| 久久久精品免费免费| 成人爱爱电影网址| 一区二区视频免费在线观看| 欧美日韩三级在线| 裸体一区二区三区| 国产日韩影视精品| 99精品国产91久久久久久| 亚洲精品大片www| 欧美日韩mp4| 久久99精品久久久久久动态图| 久久毛片高清国产| 99免费精品视频| 亚洲成人免费在线| 久久久久久久久免费| 91免费视频网| 麻豆精品在线看| 国产精品国产馆在线真实露脸| 一本久久综合亚洲鲁鲁五月天| 午夜激情综合网| 国产色婷婷亚洲99精品小说| 色综合网站在线| 麻豆精品在线播放| 亚洲人成人一区二区在线观看| 欧美日韩美女一区二区| 国产乱码精品一品二品| 亚洲一区在线观看免费| 久久新电视剧免费观看| 在线一区二区观看| 国产毛片精品视频| 午夜影院久久久| 国产丝袜在线精品| 欧美绝品在线观看成人午夜影视| 国产一区二区h| 天堂久久一区二区三区| 国产精品久久久久aaaa| 欧美成人vr18sexvr| 在线精品观看国产| 成人免费毛片片v| 日本最新不卡在线| 一区二区三区国产精品| 久久精品人人做人人综合 | 91原创在线视频| 极品美女销魂一区二区三区 | 国产日韩av一区二区| 91精品国产欧美日韩| 97精品电影院| 国产成人免费在线观看不卡| 奇米在线7777在线精品| 亚洲主播在线观看| 亚洲日穴在线视频| 国产目拍亚洲精品99久久精品| 欧美一区二区三区在线观看| 91国产精品成人| 99riav一区二区三区| 国产精品影音先锋| 经典三级一区二区| 蜜臀av性久久久久蜜臀av麻豆| 亚洲一区二区三区四区的 | 午夜视黄欧洲亚洲| 有码一区二区三区| 亚洲男人的天堂在线观看| 国产精品午夜久久| 国产视频一区在线播放| 精品国产乱码久久| 精品成人一区二区三区四区| 在线电影一区二区三区| 欧美三级在线播放| 欧美性色黄大片手机版| 色老汉av一区二区三区| 色婷婷综合久久久久中文| 99久久国产免费看| 99在线热播精品免费| 成人激情小说网站| 91网站最新地址| 91官网在线免费观看| 欧美丝袜第三区| 欧美日本一区二区三区| 欧美日韩国产小视频在线观看| 欧美伊人精品成人久久综合97 | 成人性生交大片免费看中文网站| 国产九色sp调教91| 成人av在线一区二区三区| 99精品久久久久久| 欧洲中文字幕精品| 欧美精品电影在线播放| 精品久久免费看| 国产午夜精品一区二区| 国产精品第五页| 亚洲电影一级片| 久久99国产精品免费| 高潮精品一区videoshd| 色老汉一区二区三区| 在线成人免费视频| 2023国产精品| 综合在线观看色| 视频一区在线播放| 国产美女久久久久| 色综合久久88色综合天天6| 欧美日韩久久久久久| 精品国产成人在线影院| 国产精品国产三级国产普通话三级 | 欧美mv和日韩mv的网站| 中文字幕二三区不卡| 亚洲亚洲精品在线观看| 黄色资源网久久资源365| av亚洲精华国产精华精华| 欧美日韩激情一区二区三区| 久久综合九色综合97婷婷| 亚洲人成在线播放网站岛国| 日韩国产精品91| 波多野结衣精品在线| 7777精品伊人久久久大香线蕉最新版| 国产亚洲一区二区三区在线观看| 亚洲免费三区一区二区| 激情小说欧美图片| 在线亚洲高清视频| 国产欧美一区在线| 日韩激情在线观看| 91网站最新地址| 久久亚洲私人国产精品va媚药| 夜夜精品视频一区二区| 国产成人精品亚洲777人妖| 欧美日韩国产综合一区二区三区| 久久精品亚洲麻豆av一区二区| 亚洲成人激情自拍| bt欧美亚洲午夜电影天堂| 日韩欧美国产成人一区二区| 一区二区三区 在线观看视频| 国产一区二区三区在线观看免费视频| 欧美视频一二三区| 国产精品国产自产拍高清av| 精品一区二区三区在线观看国产| 欧美色图在线观看| 国产精品美女视频| 精品一区二区三区欧美| 在线播放视频一区| 亚洲精品免费电影| av午夜精品一区二区三区| 久久久久国色av免费看影院| 日韩高清在线观看| 精品视频一区二区不卡| 亚洲欧美另类在线| av一区二区不卡| 中文字幕亚洲精品在线观看| 国产不卡视频一区| 久久精品在这里| 国内外成人在线| 精品成人免费观看| 精品一区二区在线视频| 日韩精品最新网址| 美女久久久精品| 日韩欧美一级特黄在线播放| 免费观看30秒视频久久| 欧美一级一级性生活免费录像| 五月婷婷久久丁香| 91精品国产全国免费观看| 亚洲成人av一区| 欧美日韩免费观看一区三区|