fix(android): support animating stroke color

This commit is contained in:
Core
2020-01-14 12:12:18 +07:00
parent 2d347347a3
commit c5dd62f47b
@@ -166,9 +166,10 @@ abstract public class RenderableView extends VirtualView {
JavaOnlyArray arr = new JavaOnlyArray();
arr.pushInt(0);
Matcher m = regex.matcher(strokeColors.asString());
int i = 0;
while (m.find()) {
double parsed = Double.parseDouble(m.group());
arr.pushDouble(parsed);
arr.pushDouble(i++ < 3 ? parsed / 255 : parsed);
}
stroke = arr;
}