invert
Invert a color or the colors of a shape.
var p = g.rect(0, 0, 100, 100);
p = g.colorize(p, 'green', 'yellow', 5);
g.invert(p);
Parameters
v
: The input color or shape.
Invert a color or the colors of a shape.
var p = g.rect(0, 0, 100, 100);
p = g.colorize(p, 'green', 'yellow', 5);
g.invert(p);
v
: The input color or shape.