Class GradientColorParser


  • public class GradientColorParser
    extends Object
    • Constructor Detail

      • GradientColorParser

        public GradientColorParser​(int colorPoints)
    • Method Detail

      • parse

        public GradientColor parse​(JsonReader reader,
                                   float scale)
                            throws IOException
        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, ... ]

        Throws:
        IOException