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

Method draw_path

imagepy/core/draw/paint.py:58–63  ·  view source on GitHub ↗
(self, img, xs, ys, w=None, color=None)

Source from the content-addressed store, hash-verified

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])
60 ## TODO:Fixme!
61 #for x,y in zip(xs,ys)[1:]:
62 for x,y in list(zip(xs,ys))[1:]:
63 self.lineto(img,x,y,w,color)
64
65 def fill_polygon(self, pg, img, holes=[], color=None):
66 if color == None:color = ColorManager.get_front()

Callers 4

sketchMethod · 0.95
sketchMethod · 0.95
sketchMethod · 0.95
sketchMethod · 0.95

Calls 2

set_curptMethod · 0.95
linetoMethod · 0.95

Tested by

no test coverage detected