OneColor
Learn more about OneColor, OneConfig's way of processing colors
Why?
OneColor's structure
short hue = 240; // hue of the color (0-360)
short saturation = 50; // saturation of the color (0-100)
short brightness = 25; // brightness of the color (0-100)
short alpha = 255; // alpha of the color (0-255)
int argb = -38279103; // the color stored as ARGB merged integer (used for rendering)
// how ARGB is made (hexadecimal):
// 0xFF000000 alpha (0-FF)
// 0x00FF0000 red (0-FF)
// 0x0000FF00 blue (0-FF)
// 0x000000FF green (0-FF)
// when merged with bitshifts, it will return the color as an integer like above.Creating a OneColor
Hex
Last updated
Was this helpful?