public final class ColorHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Color |
fromRGB(int red,
int green,
int blue)
Create a color from RGB values
|
static Color |
fromString(String hexValue)
Create a color from the hex representation
|
Color |
getFromRGB(int red,
int green,
int blue)
Helper function to create any available color string from color values.
|
Color |
getFromString(String hexValue)
Create a color from the hex representation
|
public static Color fromRGB(int red, int green, int blue)
red - the red value, between 0-255green - the green value, between 0-255blue - the blue value, between 0-255public static Color fromString(String hexValue)
hexValue - e.g. "#123456"public Color getFromRGB(int red, int green, int blue)
red - The red value, 0-255green - The green value, 0-255blue - The blue value, 0-255Copyright © 2016–2021. All rights reserved.