Top Description Fields Constructors Methods
com.sun.scenario.effect

public final Class Color4f

extends Object
Class Inheritance

An immutable color, represented by four floating point values. The color components should be provided in non-premultiplied format.

Field Summary

Modifier and TypeField and Description
private final float
a

private final float
b

public static final Color4f
private final float
g

private final float
r

public static final Color4f

Constructor Summary

AccessConstructor and Description
public
Color4f(float r, float g, float b, float a)

Method Summary

Modifier and TypeMethod and Description
public float
public float
public float
public float[]

Returns:

an array of 4 floats containing the premultiplied color components of the color.
getPremultipliedRGBComponents
()

Calculates and return the premultiplied color components of a this Color4f object in an array of 4 floats.

public float
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aback to summary
private final float a
bback to summary
private final float b
BLACKback to summary
public static final Color4f BLACK
gback to summary
private final float g
rback to summary
private final float r
WHITEback to summary
public static final Color4f WHITE

Constructor Detail

Color4fback to summary
public Color4f(float r, float g, float b, float a)

Method Detail

getAlphaback to summary
public float getAlpha()
getBlueback to summary
public float getBlue()
getGreenback to summary
public float getGreen()
getPremultipliedRGBComponentsback to summary
public float[] getPremultipliedRGBComponents()

Calculates and return the premultiplied color components of a this Color4f object in an array of 4 floats.

Returns:float[]

an array of 4 floats containing the premultiplied color components of the color.

getRedback to summary
public float getRed()