Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Latest commit

 

History

History
62 lines (25 loc) · 819 Bytes

color-util.md

File metadata and controls

62 lines (25 loc) · 819 Bytes

Color Util

getFromRGB(int red, int green, int blue)

Returns integer

Gets a hex code of a colour based on the given RGB values.

Parameters

red - The red value (0 - 255)

green - The green value (0 - 255)

blue - The blue value (0 - 255)

getFromRGBA(int red, int green, int blue, int alpha)

Returns integer

Gets a hex code of a colour based on the given RGBA values.

Parameters

red - The red value (0 - 255)

green - The green value (0 - 255)

blue - The blue value (0 - 255)

alpha - The alpha value (0 - 255)

getThemeColorForArray(int yOffset, int yTotal)

Returns integer

Gets the theme colour for an array of values.

Parameters

yOffset - The current Y offset

yTotal - The maximum Y

getThemeColor()

Returns integer

Gets the theme colour.