Package com.airbnb.lottie.parser
Class GradientColorParser
- java.lang.Object
-
- com.airbnb.lottie.parser.GradientColorParser
-
public class GradientColorParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GradientColorParser(int colorPoints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GradientColorparse(JsonReader reader, float scale)Both the color stops and opacity stops are in the same array.
-
-
-
Method Detail
-
parse
public GradientColor parse(JsonReader reader, float scale) throws java.io.IOException
Both the color stops and opacity stops are in the same array. There arecolorPointscolors sequentially as: [ ..., position, red, green, blue, ... ]The remainder of the array is the opacity stops sequentially as: [ ..., position, opacity, ... ]
- Throws:
java.io.IOException
-
-