Fill a nativeRaster
image with the given color
Arguments
- nr
nativeRaster
- color
Color as a character string. Either a standard R color
(e.g. 'blue', 'white')
or a hex color of the form #rrggbbaa
, #rrggbb
, #rgba
or #rgb
Value
The original nativeRaster
modified in-place.
Examples
nr <- nr_new(400, 300, 'hotpink')
nr_fill(nr, 'blue')
plot(nr)