Package com.intellij.util.ui
Class ColorUtil
java.lang.Object
com.intellij.util.ui.ColorUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic Colorstatic Colorstatic Colorstatic ColorReturn Color object from string.static Colorstatic booleanChecks whether color is dark or not based on perceptional luminosity http://stackoverflow.com/questions/596216/formula-to-determine-brightness-of-rgb-colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Stringstatic Colorstatic ColorwithAlphaAdjustingDarkness(Color c, double d)
-
Method Details
-
softer
-
darker
-
brighter
-
dimmer
-
shift
-
withAlpha
-
toAlpha
-
withAlphaAdjustingDarkness
-
toHex
-
fromHex
Return Color object from string. The following formats are allowed:#abc123,ABC123,ab5,#FFF.- Parameters:
str- hex string- Returns:
- Color object
-
fromHex
-
isDark
Checks whether color is dark or not based on perceptional luminosity http://stackoverflow.com/questions/596216/formula-to-determine-brightness-of-rgb-color- Parameters:
c- color to check- Returns:
- dark or not
-
mix
-