Package com.spun.util
Class Colors
java.lang.Object
com.spun.util.Colors
public class Colors extends Object
Every color under the
r
a
i
n
b
o
w
, and different ways to get them.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classColors.Bluesstatic classColors.Brownsstatic classColors.Graysstatic classColors.Greensstatic classColors.Orangesstatic classColors.Pinksstatic classColors.Purplesstatic classColors.Redsstatic classColors.Whitesstatic classColors.Yellows -
Constructor Summary
Constructors Constructor Description Colors() -
Method Summary
Modifier and Type Method Description static intcalculateTransparency(int percentTransparent)static Colordarken(Color color)static ColorgetRandomColor()static ColorgetTransparentVersion(Color color, int percentTransparency)static Colorlighten(Color color)static voidmockRandom()
-
Constructor Details
-
Colors
public Colors()
-
-
Method Details
-
darken
-
lighten
-
getRandomColor
-
mockRandom
public static void mockRandom() -
calculateTransparency
public static int calculateTransparency(int percentTransparent) -
getTransparentVersion
-