def pointwise_become_partial(self, mobject, a, b): #TODO, this assumes a = 0 if b < 0.5: b = 2 * b added_width = 1 opacity = 0 else: added_width = 2 - 2 * b opacity = 2 * b - 1 b = 1 VMobjectFromSVGPathstring.pointwise_become_partial(self, mobject, 0, b) self.set_stroke(width=added_width + mobject.get_stroke_width()) self.set_fill(opacity=opacity)
def pointwise_become_partial(self, mobject, a, b): #TODO, this assumes a = 0 if b < 0.5: b = 2*b added_width = 1 opacity = 0 else: added_width = 2 - 2*b opacity = 2*b - 1 b = 1 VMobjectFromSVGPathstring.pointwise_become_partial( self, mobject, 0, b ) self.set_stroke(width = added_width + mobject.get_stroke_width()) self.set_fill(opacity = opacity)
def become_partial(self, mobject, a, b): #TODO, this assumes a = 0 if b < 0.5: b = 2*b width = 1 opacity = 0 else: width = 2 - 2*b opacity = 2*b - 1 b = 1 VMobjectFromSVGPathstring.become_partial( self, mobject, 0, b ) self.set_stroke(width = width) self.set_fill(opacity = opacity)