MCPcopy Index your code
hub / github.com/clips/pattern / line

Function line

pattern/graph/__init__.py:31–34  ·  view source on GitHub ↗

Draws a line from (x1, y1) to (x2, y2) using the given strok color and stroke width.

(x1, y1, x2, y2, stroke=(0,0,0,1), strokewidth=1)

Source from the content-addressed store, hash-verified

29# For drawing, line(), ellipse() and Text.draw() must be either implemented or patched.
30
31def line(x1, y1, x2, y2, stroke=(0,0,0,1), strokewidth=1):
32 """ Draws a line from (x1, y1) to (x2, y2) using the given strok color and stroke width.
33 """
34 pass
35
36def ellipse(x, y, width, height, fill=(0,0,0,1), stroke=None, strokewidth=1):
37 """ Draws an ellipse at (x, y) with given fill and stroke color and stroke width.

Callers 2

drawMethod · 0.70
draw_arrowMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…