Package 

Class GradientColorParser

    • Method Summary

      Modifier and Type Method Description
      GradientColor parse(JsonReader reader, float scale) Both the color stops and opacity stops are in the same array.
      • Methods inherited from class com.airbnb.lottie.parser.ValueParser

        parse
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GradientColorParser

        GradientColorParser(int colorPoints)
    • 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,...]