public class GradientColorParser
extends java.lang.Object
| Constructor and Description |
|---|
GradientColorParser(int colorPoints) |
| Modifier and Type | Method and Description |
|---|---|
GradientColor |
parse(JsonReader reader,
float scale)
Both the color stops and opacity stops are in the same array.
|
public GradientColor parse(JsonReader reader, float scale) throws java.io.IOException
colorPoints colors sequentially as:
[
...,
position,
red,
green,
blue,
...
]
The remainder of the array is the opacity stops sequentially as: [ ..., position, opacity, ... ]
java.io.IOException