Class ColorUtils
java.lang.Object
com.arbergashi.charts.util.ColorUtils
Color utilities.
- Since:
- 2025-06-01
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColoradjustBrightness(Color c, double factor) Adjust brightness by multiplying RGB channels by factor (>0).static ColorReturns BLACK or WHITE depending on which contrasts better with the input color.static Colorinterpolate(Color a, Color b, float t) Linearly interpolate between two colors in RGBA space.static ColorCreates a new color based on c, but with a new alpha value.
-
Method Details
-
withAlpha
-
adjustBrightness
-
getContrastColor
-
interpolate
-