Draw rectangles on a nativeRaster
image
nr_rect(
nr,
x,
y,
w,
h,
fill = "black",
color = NA,
hjust = 0,
vjust = 0,
linewidth = 1
)
nativeRaster
coordinates of lower left corner of rectangle. [vector]
width and height of rectangle. [vector]
interior fill color [vector]
outline color. Default: NA. [vector]
specify horizontal and vertical justification of the
src
image. e.g. hjust = vjust = 0
the blitting
starts at the top-left of the image. Use hjust = vjust = 0.5
to treat the centre of the src_
as the blitting origin.
Default (0, 0)
Line linewidth. Default: 1. If linewidth = 1
then a
naive version of Bresenham is used to draw the points. If linewidth
is greater than 1, then the line is convert to a triangle strip and
rendered as polygons.
Original nativeRaster
modified in-place