Class GoogleEarthColor
java.lang.Object
org.deltava.util.color.GoogleColor
org.deltava.util.color.GoogleEarthColor
A class to define Google Earth colors.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.util.color.GoogleColor
_alpha, _blue, _green, _red
-
Constructor Summary
ConstructorsConstructorDescriptionGoogleEarthColor
(int red, int green, int blue) Creates a Google Earth color with default semi-transparency (128).GoogleEarthColor
(int red, int green, int blue, int alpha) Creates a Google Earth color. -
Method Summary
-
Constructor Details
-
GoogleEarthColor
public GoogleEarthColor(int red, int green, int blue, int alpha) Creates a Google Earth color.- Parameters:
red
- the RGB red valuegreen
- the RGB green valueblue
- the RGB blue valuealpha
- the transparency value
-
GoogleEarthColor
public GoogleEarthColor(int red, int green, int blue) Creates a Google Earth color with default semi-transparency (128).- Parameters:
red
- the RGB red valuegreen
- the RGB green valueblue
- the RGB blue value
-
-
Method Details
-
dim
Dims the color.- Parameters:
factor
- the factor to divide all intensities by- Returns:
- a dimmed clone of the color
-
toString
-