powered by
Change the shade of a figure
change_color(obj, ...)# S3 method for figure change_color(obj, ...)
# S3 method for figure change_color(obj, ...)
Return the original figure with the inverted shade
The figure
other arguments
change_color(figure): Change shade
change_color(figure)
# draw a square with inverted color draw(change_color(square())) draw(change_color(square()))
Run the code above in your browser using DataLab