static void ColorG(PaintJob j, int idx, ref object v, float r) { var s = j.stream; s.colors[idx].g = Mathf.Lerp(s.colors[idx].g, (float)v, r); }