static void FlowColorBA(PaintJob j, int idx, ref object v, float r) { Vector2 vv = (Vector2)v; var s = j.stream; Color c = s.colors[idx]; s.colors[idx].b = Mathf.Lerp(c.b, vv.x, r); s.colors[idx].a = Mathf.Lerp(c.a, vv.y, r); }