MCPcopy Create free account
hub / github.com/Image-Py/imagepy / lineto

Method lineto

imagepy/core/draw/paint.py:54–56  ·  view source on GitHub ↗
(self, img, x, y, w=None, color=None)

Source from the content-addressed store, hash-verified

52 self.draw_point(img, x, y, w, color)
53
54 def lineto(self, img, x, y, w=None, color=None):
55 self.draw_line(img, self.curpt[0], self.curpt[1], x, y, w, color)
56 self.curpt = x, y
57
58 def draw_path(self, img, xs, ys, w=None, color=None):
59 self.set_curpt(xs[0], ys[0])

Callers 4

draw_pathMethod · 0.95
mouse_upMethod · 0.80
mouse_moveMethod · 0.80
mouse_moveMethod · 0.80

Calls 1

draw_lineMethod · 0.95

Tested by

no test coverage detected