Straight Line

Straight Line

EXAMPLES:

>>> sample_line
line from (0.175,0.532) to (0.629,0.442)
class quill.line.Line(thickness, red, green, blue, x0, y0, x1, y1)[source]

Bases: quill.graphics_object_color.GraphicsObjectThicknessColor

x0()[source]

Return the x-coordinate of the first point.

EXAMPLES:

>>> sample_line
line from (0.175,0.532) to (0.629,0.442)
>>> sample_line.x0()
0.17479963600635529
x1()[source]

Return the x-coordinate of the second point.

EXAMPLES:

>>> sample_line
line from (0.175,0.532) to (0.629,0.442)
>>> sample_line.x1()
0.629351019859314
y0()[source]

Return the y-coordinate of the first point.

EXAMPLES:

>>> sample_line
line from (0.175,0.532) to (0.629,0.442)
>>> sample_line.y0()
0.5317864418029785
y1()[source]

Return the y-coordinate of the second point.

EXAMPLES:

>>> sample_line
line from (0.175,0.532) to (0.629,0.442)
>>> sample_line.y1()
0.44183480739593506

Previous topic

Image

Next topic

Base Class for Importers

This Page