Draw a Function
Calculate the path within a grid of an user-supplied function and print to screen.
draw_fn(x1, x2, fn, n = 50, text = "x", ...)
x1 |
starting column value of the path |
x2 |
ending column value of the path |
fn |
function returning row value for a column input |
n |
number of points along curve to calculate |
text |
character value drawn at coordinate |
... |
parameters that are passed to |
NULL
Other drawing functions:
box_at()
,
draw_arc()
,
draw_bezier()
,
draw_circle()
,
draw_ellipse()
,
draw_lerp()
,
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()
draw_fn(x1=1, x2=10, function(x){sqrt(x)} )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.