Package io.github.qishr.cascara.common.color
Interface ColorPrimitive
java.lang.Object
io.github.qishr.cascara.common.color.ColorPrimitive
All Known Implementing Classes:
HsbaColor, RgbaColor
public interface ColorPrimitive
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
| public static final double | BRIGHTNESS_FACTOR | |
| public static final double | SATURATION_FACTOR |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public abstract String | toString() | |
| public abstract double | getAlpha() | |
| public abstract ColorPrimitive | setAlpha(double alpha) | |
| public abstract ColorPrimitive | brighter() | |
| public abstract ColorPrimitive | saturate() | |
| public abstract ColorPrimitive | deriveColor(double hueShift, double saturationFactor, double brightnessFactor, double opacityFactor) |
Field Details
BRIGHTNESS_FACTOR
public static final double BRIGHTNESS_FACTOR
See Also:
SATURATION_FACTOR
public static final double SATURATION_FACTOR
See Also:
Method Details
toString
public abstract String toString()
getAlpha
public abstract double getAlpha()
setAlpha
public abstract ColorPrimitive setAlpha(double alpha)
brighter
public abstract ColorPrimitive brighter()
saturate
public abstract ColorPrimitive saturate()
deriveColor
public abstract ColorPrimitive deriveColor(double hueShift, double saturationFactor, double brightnessFactor, double opacityFactor)