public class Alpha extends Object
Constructor and Description |
---|
Alpha(float newAlpha) |
Alpha(String color) |
Modifier and Type | Method and Description |
---|---|
float |
getAlpha()
get alpha value.
|
Alpha |
linear(Alpha end,
float t)
linear interpolate between this color and the given color.
|
Alpha |
mutiply(float factor)
Multiply all components with the given factor.
|
void |
setAlpha(float newColorAlpha)
Set color alpha.
|
String |
toString()
convert color to string.
|
public Alpha(String color)
public Alpha(float newAlpha)
public Alpha linear(Alpha end, float t)
end
- end colort
- t in [0,1]public final float getAlpha()
public Alpha mutiply(float factor)
factor
- factor to multiplypublic String toString()
public void setAlpha(float newColorAlpha)
newColorAlpha
- new color alphaCopyright © 2013. All Rights Reserved.