comparison dwtx/jface/internal/text/revisions/Colors.d @ 158:25f1f92fa3df

...
author Frank Benoit <benoit@tionex.de>
date Tue, 26 Aug 2008 02:46:34 +0200
parents 5cf141e43417
children 1a5b8f8129df
comparison
equal deleted inserted replaced
157:7f75eaa8103a 158:25f1f92fa3df
244 * 244 *
245 * @param index the index of the color, must be &gt;= 0 245 * @param index the index of the color, must be &gt;= 0
246 * @return a color hue in [0&#176;,&nbsp;360&#176;) 246 * @return a color hue in [0&#176;,&nbsp;360&#176;)
247 * @see RGB#RGB(float, float, float) 247 * @see RGB#RGB(float, float, float)
248 */ 248 */
249 public static float computeHue(final int index) { 249 public static float computeHue(int index) {
250 Assert.isLegal(index >= 0); 250 Assert.isLegal(index >= 0);
251 /* 251 /*
252 * Base 3 gives a nice partitioning for RGB colors with red, green, blue being the colors 252 * Base 3 gives a nice partitioning for RGB colors with red, green, blue being the colors
253 * 0,1,2, and yellow, cyan, magenta colors 3,4,5. 253 * 0,1,2, and yellow, cyan, magenta colors 3,4,5.
254 */ 254 */