
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>spline()</b> t_exam13
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SPLINE() T_EXAM13
Draws a curved line through the points of a Y data column.
Syntax
SPLINE(nYColumn [,nType] [,nIncrement] [,nTension] [,nPixRes]
[,nRndRes])
Arguments
nColumn Sets the Y column number.
OPTIONAL PARAMETERS
nType 0 - Curve passes close to points.
1 - Curve passes through the points.
nIncrement - number of segments (default 0.05 or 20 segments)
other possible values: 0.10 or 10 segments
0.20 or 5 segments
0.01 or 100 segments
nTension - used only for nType 1. The tension ranges from 0 to 1.0.
The tension factor controls the appearance of the curve.
If it is less than 0.5, the curve will be shorter in
length and bends at the control point will be tighter. If
greater than 0.5, the curve becomes looser and longer but
still passes through the control points. The ideal setting
for most purposes is a tension factor of 0.5.
nPixRes - minimum pixels before segment is selected to draw.
(default 3)
nRndRes - minimum rounded precision before the segment is
selected to draw. (default 0.2)
Description
SPLINE() with nType 0 draws a curved line through the points of a Y
data column. The line is influenced by four control points nearest
the present location on the curve. The result is a curve that is free
flowing between two points.
SPLINE() with nType 1 draw a curve through each point along the
graph.
Each point is calculated from an equation. The pixel position is
rounded and can look wavy on a PostScript or HPGL device. nPixRes
and nRndRes are available to attempt to smooth the curve by
setting a minimum pixel distance with nPixRes and a maximum
fractional amount above an integer value with nRndRes.
See Also: POLY_FIT() POLY_PLOT() REGRESS()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson