2 var color1, color2, direction, steps;
3 *new { arg color1, color2, direction=\h, steps=64;
4 ^super.newCopyArgs(color1, color2, direction, steps)
7 ^blend(color1, color2, pos.round(steps.reciprocal))
12 var color1, color2, direction, steps, frac;
13 *new { arg color1, color2, direction=\v, steps=64, frac = 0.33;
14 ^super.newCopyArgs(color1, color2, direction, steps, frac)
17 ^blend(color1, color2, pos.round(steps.reciprocal))