class MoveByProportion(Scene):
def construct(self):
c = Circle()
d = Dot()
d.move_to(c.point_from_proportion(0))
l = Line(c.get_center(), d.get_center(), color=BLUE)
self.t_offset = 0
rate = 0.5
def get_line_to_circle():
return Line(c.get_center(), d.get_center(), color=BLUE)
def go_around_circle(mob, dt):
self.t_offset += (dt * rate)
print(self.t_offset)
mob.move_to(c.point_from_proportion(self.t_offset % 1))
d.add_updater(go_around_circle)
origin_to_circle_line = always_redraw(get_line_to_circle)
self.add(c, d, l, origin_to_circle_line)
self.wait()
Watch video Move By Proportion online without registration, duration hours minute second in high quality. This video was added by user Flesmyn Academy 06 November 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 34 once and liked it 0 people.