-
- All Implemented Interfaces:
-
com.airbnb.lottie.parser.ValueParser
public class GradientColorParser implements ValueParser<GradientColor>
-
-
Constructor Summary
Constructors Constructor Description GradientColorParser(int colorPoints)
-
Method Summary
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
GradientColor parse(JsonReader reader, float scale)
Both the color stops and opacity stops are in the same array.There are colorPoints colors sequentially as:[...,position,red,green,blue,...]
The remainder of the array is the opacity stops sequentially as:[...,position,opacity,...]
-
-
-
-