Color Utilities¶Non-Visible component
|Utilities||API 21, Android 5.0 Lollipop||1|
A non-visible component that performs operations like conversion between formats, lightening, and darkening on color data.
Convert Hex To Int¶
Convert a hex color to a integer color. The result is returned as integer.
Convert Int To Hex¶
Convert a integer color to a hex color. The result is returned as string.
Returns the luminance of a color as a float between 0.0 and 1.0. The result is returned as double.
Is Dark Color¶
Returns true if the color is dark, else it returns false, means the color is light. The result is returned as boolean.
Set Alpha Value¶
Set a alpha value to a color. The result is returned as integer.
Last update: November 9, 2022