The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Polyline - A XFig file animator class - Polyline object

DESCRIPTION

Polyline object - object code in FIG format: 2. Here are all the attributes of this class:

sub_type, line_style, thickness, pen_color, fill_color, depth, pen_style, area_fill, style_val, join_style, cap_style, radius, 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, flipped, file, visibility, center_x, center_y

FIG ATTRIBUTES

sub_type

1: polyline; 2: box; 3: polygon; 4: arc-box; 5: imported-picture bounding-box.

line_style

-1: Default; 0: Solid; 1: Dashed; 2: Dotted; 3: Dash-dotted; 4: Dash-double-dotted; 5: Dash-triple-dotted.

thickness

80-ths of an inch ("display units")

pen_color

-1..31: FIG colors; 32..543 (512 total): user colors.

fill_color

-1..31: FIG colors; 32..543 (512 total): user colors.

depth

0 ... 999: larger value means object is deeper than (under) objects with smaller depth

pen_style

unused

area_fill

fill type

style_val

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

join_style

0 = Miter (default); 1 = Bevel; 2 = Round.

cap_style

0 = Butt (default); 1 = Round; 2 = Projecting.

radius

1/80 inch, radius of arc-boxes

forward_arrow

0: no forward arrow; 1: on

backward_arrow

0: no backward arrow; 1: on

npoints

number of points in line

f_arrow_type, b_arrow_type

0: Stick-type (default); 1: Closed triangle; 2: Closed with "indented" butt; 3: Closed with "pointed" butt

f_arrow_style, b_arrow_style

0: Hollow (filled with white); 1: Filled with pen_color

f_arrow_thickness, b_arrow_thickness

1/80 inch

f_arrow_width, b_arrow_width

Fig units

f_arrow_height, b_arrow_height

Fig units

xnpoints, ynpoints

arrays of points coordinates in Fig units

flipped

picture orientation: 0: normal; 1: flipped.

file

name of picture file to import

ADDITONNAL ATTRIBUTES

visibility

0: hidden; 1: shown

center_x, center_y

calculated center (Fig units)