shade {matRiks} | R Documentation |
Shade rule (Method)
Description
Apply a change in the shading of the figure
Usage
shade(fig, n, rule, ...)
## S3 method for class 'figure'
shade(fig, n = 1, rule = "shade", ...)
Arguments
fig |
The figure on which the rule is applied |
n |
integer, defines the color of the shading. Default is 1 (white). Other options are 2 (grey) and 3 (black) |
rule |
character, defines the rule for shading the figure |
... |
Other arguments |
Value
An object of class figure with different shading characteristics
An object of class figure with different shading characteristics
Methods (by class)
-
shade(figure)
: Change the shade of a figureApply a change in the shading of the figure
Examples
# draw default triangle
draw(triangle())
# make it grey
draw(shade(triangle(), 2))
# draw default triangle
draw(triangle())
# make it grey
draw(shade(triangle(), 2))
[Package matRiks version 0.1.3 Index]