Package icyllis.arc3d.core.shaders
Class GradientShader.Interpolation
java.lang.Object
icyllis.arc3d.core.shaders.GradientShader.Interpolation
- Enclosing class:
GradientShader
Color interpolation method, is packed into an int.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final byte
Hue interpolation method.static final byte
Interpolation color space.static final byte
Interpolation color space.static final int
static final byte
Interpolation color space.static final byte
Hue interpolation method.static final byte
Interpolation color space.static final byte
static final byte
static final byte
Interpolation color space.static final byte
Hue interpolation method.static final byte
Interpolation color space.static final byte
Interpolation color space.static final byte
Interpolation color space.static final byte
Interpolation color space.static final byte
Hue interpolation method.static final byte
Interpolation color space.static final byte
Interpolation color space. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte
getColorSpace
(int interpolation) static byte
getHueMethod
(int interpolation) static boolean
isInPremul
(int interpolation) static int
make
(boolean inPremul, byte colorSpace, byte hueMethod) Make a packed color interpolation method.
-
Field Details
-
kDestination_ColorSpace
public static final byte kDestination_ColorSpaceInterpolation color space.- See Also:
-
kSRGB_ColorSpace
public static final byte kSRGB_ColorSpaceInterpolation color space.- See Also:
-
kSRGBLinear_ColorSpace
public static final byte kSRGBLinear_ColorSpaceInterpolation color space.- See Also:
-
kLab_ColorSpace
public static final byte kLab_ColorSpaceInterpolation color space.- See Also:
-
kOKLab_ColorSpace
public static final byte kOKLab_ColorSpaceInterpolation color space.- See Also:
-
kOKLabGamutMap_ColorSpace
public static final byte kOKLabGamutMap_ColorSpaceInterpolation color space.- See Also:
-
kHSL_ColorSpace
public static final byte kHSL_ColorSpaceInterpolation color space.- See Also:
-
kHWB_ColorSpace
public static final byte kHWB_ColorSpaceInterpolation color space.- See Also:
-
kLCH_ColorSpace
public static final byte kLCH_ColorSpaceInterpolation color space.- See Also:
-
kOKLCH_ColorSpace
public static final byte kOKLCH_ColorSpaceInterpolation color space.- See Also:
-
kOKLCHGamutMap_ColorSpace
public static final byte kOKLCHGamutMap_ColorSpaceInterpolation color space.- See Also:
-
kLast_ColorSpace
public static final byte kLast_ColorSpace- See Also:
-
kColorSpaceCount
public static final int kColorSpaceCount- See Also:
-
kShorter_HueMethod
public static final byte kShorter_HueMethodHue interpolation method.- See Also:
-
kLonger_HueMethod
public static final byte kLonger_HueMethodHue interpolation method.- See Also:
-
kIncreasing_HueMethod
public static final byte kIncreasing_HueMethodHue interpolation method.- See Also:
-
kDecreasing_HueMethod
public static final byte kDecreasing_HueMethodHue interpolation method.- See Also:
-
kLast_HueMethod
public static final byte kLast_HueMethod- See Also:
-
kHueMethodCount
public static final int kHueMethodCount- See Also:
-
-
Constructor Details
-
Interpolation
public Interpolation()
-
-
Method Details
-
make
public static int make(boolean inPremul, byte colorSpace, byte hueMethod) Make a packed color interpolation method.By default, gradients will interpolate their colors in unpremul space and then premultiply each of the results. By setting inPremul to true, the gradients will premultiply their colors first, and then interpolate between them.
- Parameters:
inPremul
- whether interpolate colors in premul spacecolorSpace
- the interpolation color spacehueMethod
- the hue interpolation method, for LCH, OKLCH, HSL, or HWB- Returns:
- a packed color interpolation method
-
isInPremul
public static boolean isInPremul(int interpolation) -
getColorSpace
public static byte getColorSpace(int interpolation) -
getHueMethod
public static byte getHueMethod(int interpolation)
-