draw_lerp {cursr} | R Documentation |
Draw a Line
Description
Interpolate between two points in a grid and draw to sreen.
Usage
draw_lerp(start, end, n = 50, text = "x", ...)
Arguments
start |
starting |
end |
ending |
n |
number of points along curve to calculate |
text |
character value drawn at coordinate |
... |
parameters that are passed to |
Value
NULL
See Also
Other drawing functions:
box_at()
,
draw_arc()
,
draw_bezier()
,
draw_circle()
,
draw_ellipse()
,
draw_fn()
,
draw_path()
,
draw_ray()
,
draw_rect()
,
draw_shape()
,
fill_circle()
,
fill_ellipse()
,
fill_rect()
,
fill_shape()
,
grid_at()
,
grid_mat()
,
hline_at()
,
hline()
,
vline_at()
,
vline()
Examples
draw_lerp(start=c(10,1), end=c(1,3))
[Package cursr version 0.1.0 Index]