Lines Matching defs:green

111  *     <li>{@link #green(int)} to extract the green component</li>
124 * which the components represent red, green and blue values.</p>
210 * <li>{@link #green(long)} to extract the green/Y/a component</li>
239 * Color green = Color.valueOf(100.0f, -128.0f, 128.0f, 1.0f, lab);
249 * <li>{@link #green()}, returns the green component value (or second
336 * @param g The value of the green channel, must be in [0..1] range
349 * @param g The value of the green channel, must be in the color space defined range
498 * @see #green
506 * <p>Returns the value of the green component in the range defined by this
515 * @see #green
518 public float green() {
532 * @see #green
545 * @see #green()
698 * @see #green(long)
718 * @see #green(long)
728 * Returns the green component encoded in the specified color long.
733 * @param color The color long whose green channel to extract
742 public static float green(@ColorLong long color) {
759 * @see #green(long)
776 * @see #green(long)
843 float g = green(color);
883 return new Color(red(color), green(color), blue(color), alpha(color), colorSpace(color));
888 * color space with the specified red, green and blue component values. The component
892 * @param g The green component of the opaque sRGB color to create, in \([0..1]\)
903 * color space with the specified red, green, blue and alpha component values.
907 * @param g The green component of the sRGB color to create, in \([0..1]\)
919 * specified red, green, blue and alpha component values. The range of the
925 * @param g The green component of the color to create
987 * Packs the sRGB color defined by the specified red, green and blue component
993 * @param green The green component of the sRGB color to create, in \([0..1]\)
999 public static long pack(float red, float green, float blue) {
1000 return pack(red, green, blue, 1.0f, ColorSpace.get(ColorSpace.Named.SRGB));
1004 * Packs the sRGB color defined by the specified red, green, blue and alpha
1009 * @param green The green component of the sRGB color to create, in \([0..1]\)
1016 public static long pack(float red, float green, float blue, float alpha) {
1017 return pack(red, green, blue, alpha, ColorSpace.get(ColorSpace.Named.SRGB));
1021 * <p>Packs the 3 component color defined by the specified red, green, blue and
1025 * <p>The red, green and blue components must be in the range defined by the
1030 * @param green The green component of the color to create
1040 public static long pack(float red, float green, float blue, float alpha,
1046 ((int) (green * 255.0f + 0.5f) << 8) |
1062 @HalfFloat short g = Half.toHalf(green);
1112 float g = green(color);
1128 * <p>The red, green and blue components must be in the range defined by the
1133 * @param g The green component of the color to convert
1169 float g = green(color);
1185 * <p>The red, green and blue components must be in the range defined by the
1190 * @param g The green component of the color to convert
1225 double g = eotf.applyAsDouble(green(color));
1254 * Return the green component of a color int. This is the same as saying
1258 public static int green(int color) {
1272 * Return a color-int from red, green, blue components.
1279 * @param green Green component \([0..255]\) of the color
1285 @IntRange(from = 0, to = 255) int green,
1287 return 0xff000000 | (red << 16) | (green << 8) | blue;
1291 * Return a color-int from red, green, blue float components
1297 * @param green Green component \([0..1]\) of the color
1301 public static int rgb(float red, float green, float blue) {
1304 ((int) (green * 255.0f + 0.5f) << 8) |
1309 * Return a color-int from alpha, red, green, blue components.
1315 * @param green Green component \([0..255]\) of the color
1322 @IntRange(from = 0, to = 255) int green,
1324 return (alpha << 24) | (red << 16) | (green << 8) | blue;
1328 * Return a color-int from alpha, red, green, blue float components
1334 * @param green Green component \([0..1]\) of the color
1338 public static int argb(float alpha, float red, float green, float blue) {
1341 ((int) (green * 255.0f + 0.5f) << 8) |
1358 double g = eotf.applyAsDouble(green(color) / 255.0);
1375 * <code>green</code>, <code>black</code>, <code>white</code>, <code>gray</code>,
1411 * @param green green component value \([0..255]\)
1417 @IntRange(from = 0, to = 255) int green,
1422 nativeRGBToHSV(red, green, blue, hsv);
1511 sColorNameMap.put("green", GREEN);