Spline - A XFig file animator class - Spline object
Spline object - object code in FIG format: 3. Here are all the attributes of this class:
sub_type, line_style, thickness, pen_color, fill_color, depth, pen_style, area_fill, style_val, cap_style, forward_arrow, backward_arrow, npoints, f_arrow_type, f_arrow_style, f_arrow_thickness, f_arrow_width, f_arrow_height, b_arrow_type, b_arrow_style, b_arrow_thickness, b_arrow_width, b_arrow_height, xnpoints, ynpoints, control_points, visibility, center_x, center_y, max_spline_step, high_precision
0: opened approximated spline; 1: closed approximated spline; 2: opened interpolated spline; 3: closed interpolated spline; 4: opened x-spline; 5: closed x-spline.
-1: Default; 0: Solid; 1: Dashed; 2: Dotted; 3: Dash-dotted; 4: Dash-double-dotted; 5: Dash-triple-dotted.
80-ths of an inch ("display units")
-1..31: FIG colors; 32..543 (512 total): user colors.
0 ... 999: larger value means object is deeper than (under) objects with smaller depth
unused
fill type
length, in 1/80 inches, of the on/off dashes for dashed lines, and the distance between the dots, in 1/80 inches, for dotted lines
0 = Butt (default); 1 = Round; 2 = Projecting.
0: no forward arrow; 1: on
0: no backward arrow; 1: on
number of control points in spline
0: Stick-type (default); 1: Closed triangle; 2: Closed with "indented" butt; 3: Closed with "pointed" butt
0: Hollow (filled with white); 1: Filled with pen_color
1/80 inch
Fig units
arrays of points coordinates in Fig units
array of control points values: there is one shape factor for each point. The value of this factor must be between -1 (which means that the spline is interpolated at this point) and 1 (which means that the spline is approximated at this point). The spline is always smooth in the neighbourhood of a control point, except when the value of the factor is 0 for which there is a first-order discontinuity (i.e. angular point).
0: hidden; 1: shown
calculated center (Fig units)
parameter for computing polyline from spline (default 0.2)
parameter for computing polyline from spline (default 0.5)
To install FigAnim, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FigAnim
CPAN shell
perl -MCPAN -e shell install FigAnim
For more information on module installation, please visit the detailed CPAN module installation guide.