change_color: Change shade

View source: R/change_color.R

change_colorR Documentation

Change shade

Description

Change the shade of a figure

Usage

change_color(obj, ...)

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

Arguments

obj

The figure

...

other arguments

Value

Return the original figure with the inverted shade

Return the original figure with the inverted shade

Methods (by class)

  • change_color(figure): Change shade

    Change the shade of a figure

Examples

# draw a square with inverted color
draw(change_color(square()))
draw(change_color(square()))

matRiks documentation built on May 29, 2024, 5:56 a.m.