Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 727 Bytes

DashedLine.md

File metadata and controls

42 lines (28 loc) · 727 Bytes

DashedLine

fpdf.dashed_line(x1, y1, x2, y2, dash_length = 1, space_length = 1)

Description

Draw a dashed line between two points. Same interface as Line except the two parameters dash_length and space_length.

Parameters

x1:

Abscissa of first point

y1:

Ordinate of first point

x2:

Abscissa of second point

y2:

Ordinate of second point

dash_length:

Length of the dash

space_length:

Length of the space between dashes

Example

# Adds a dashed line beginning at point (10,30), 
#  ending at point(110,30) with a 
#  dash length of 1 and a space length of 10.
pdf.dashed_line(10, 30, 110, 30, 1, 10)

See also

Line.