Wiki Markup |
---|
{alias:cur} |
Name
cur — Draw a spline curve
...
Display a line dataset by generating a spline tube or line through the points.
Arguments
size
size is a real number determining the thickness of the tube, relative to 1.
lin
Draw the spline as a line instead of a tube.
num number
The integer number gives number of points in the spline.
sav [nodraw]
Save the spline points in active. nodraw: Just generate, do not display the spline.
Examples
Ex.1: Draw a curve through data points
No Format | ||||
---|---|---|---|---|
| ||||
win demo ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
spe bgc whi ;# Specify background color to white
mak ran 7 ;# Make 7 random points
poi 2 ;# Display the points with size 2
cur 2 ;# Draw a spline curve with size 2
|
...