def curve(self, image, width=4, number=6, color=None):
    (dx, height) = image.size
    dx /= number
    path = [((dx * i), random.randint(0, height)) for i in range(1, number)]
    bcoefs = self._bezier.make_bezier((number - 1))
    points = []
    for coefs in bcoefs:
        points.append(tuple((sum([(coef * p) for (coef, p) in zip(coefs, ps)]) for ps in zip(*path))))
    Draw(image).line(points, fill=(color if color else self._color), width=width)
    return image
def curve(self, image, width=4, number=6, color=None):
    (dx, height) = image.size
    dx /= number
    path = [((dx * i), random.randint(0, height)) for i in range(1, number)]
    bcoefs = self._bezier.make_bezier((number - 1))
    points = []
    for coefs in bcoefs:
        points.append(tuple((sum([(coef * p) for (coef, p) in zip(coefs, ps)]) for ps in zip(*path))))
    Draw(image).line(points, fill=(color if color else self._color), width=width)
    return image