Lines Matching defs:blue

80  * constant in source. For instance, opaque blue is <code>0xff0000ff</code>
112 * <li>{@link #blue(int)} to extract the blue component</li>
124 * which the components represent red, green and blue values.</p>
211 * <li>{@link #blue(long)} to extract the blue/Z/b component</li>
251 * <li>{@link #blue()}, returns the blue component value (or third
337 * @param b The value of the blue channel, must be in [0..1] range
350 * @param b The value of the blue channel, must be in the color space defined range
523 * <p>Returns the value of the blue component in the range defined by this
535 public float blue() {
546 * @see #blue()
699 * @see #blue(long)
719 * @see #blue(long)
739 * @see #blue(long)
748 * Returns the blue component encoded in the specified color long.
753 * @param color The color long whose blue channel to extract
762 public static float blue(@ColorLong long color) {
771 * @param color The color long whose blue channel to extract
777 * @see #blue(long)
844 float b = blue(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
893 * @param b The blue component of the opaque sRGB color to create, in \([0..1]\)
903 * color space with the specified red, green, blue and alpha component values.
908 * @param b The blue component of the sRGB color to create, in \([0..1]\)
919 * specified red, green, blue and alpha component values. The range of the
926 * @param b The blue component of the color to create
987 * Packs the sRGB color defined by the specified red, green and blue component
994 * @param blue The blue 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
1010 * @param blue The blue 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
1031 * @param blue The blue component of the color to create
1040 public static long pack(float red, float green, float blue, float alpha,
1047 (int) (blue * 255.0f + 0.5f);
1063 @HalfFloat short b = Half.toHalf(blue);
1113 float b = blue(color);
1128 * <p>The red, green and blue components must be in the range defined by the
1134 * @param b The blue component of the color to convert
1170 float b = blue(color);
1185 * <p>The red, green and blue components must be in the range defined by the
1191 * @param b The blue component of the color to convert
1226 double b = eotf.applyAsDouble(blue(color));
1263 * Return the blue component of a color int. This is the same as saying
1267 public static int blue(int color) {
1272 * Return a color-int from red, green, blue components.
1280 * @param blue Blue component \([0..255]\) of the color
1286 @IntRange(from = 0, to = 255) int blue) {
1287 return 0xff000000 | (red << 16) | (green << 8) | blue;
1291 * Return a color-int from red, green, blue float components
1298 * @param blue Blue component \([0..1]\) of the color
1301 public static int rgb(float red, float green, float blue) {
1305 (int) (blue * 255.0f + 0.5f);
1309 * Return a color-int from alpha, red, green, blue components.
1316 * @param blue Blue component \([0..255]\) of the color
1323 @IntRange(from = 0, to = 255) int blue) {
1324 return (alpha << 24) | (red << 16) | (green << 8) | blue;
1328 * Return a color-int from alpha, red, green, blue float components
1335 * @param blue Blue component \([0..1]\) of the color
1338 public static int argb(float alpha, float red, float green, float blue) {
1342 (int) (blue * 255.0f + 0.5f);
1359 double b = eotf.applyAsDouble(blue(color) / 255.0);
1374 * <p>The following names are also accepted: <code>red</code>, <code>blue</code>,
1412 * @param blue blue component value \([0..255]\)
1418 @IntRange(from = 0, to = 255) int blue, @Size(3) float hsv[]) {
1422 nativeRGBToHSV(red, green, blue, hsv);
1476 private static native void nativeRGBToHSV(int red, int greed, int blue, float hsv[]);
1512 sColorNameMap.put("blue", BLUE);