Learn R Programming

matRiks (version 0.1.3)

change_color: Change shade

Description

Change the shade of a figure

Usage

change_color(obj, ...)

# S3 method for figure change_color(obj, ...)

Value

Return the original figure with the inverted shade

Return the original figure with the inverted shade

Arguments

obj

The figure

...

other arguments

Methods (by class)

  • change_color(figure): Change shade

    Change the shade of a figure

Examples

Run this code
# draw a square with inverted color
draw(change_color(square()))
draw(change_color(square()))

Run the code above in your browser using DataLab