mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 05:37:45 +00:00
Make patron screen scroll time a variable
This commit is contained in:
parent
427ad698fe
commit
1525d5ff16
1 changed files with 2 additions and 1 deletions
|
|
@ -155,6 +155,7 @@ class PatreonEndScreen(PatreonThanks, PiCreatureScene):
|
|||
"capitalize": True,
|
||||
"name_y_spacing": 0.6,
|
||||
"thanks_words": "Many thanks to this channel's supporters",
|
||||
"scroll_time": 20,
|
||||
}
|
||||
|
||||
def construct(self):
|
||||
|
|
@ -250,7 +251,7 @@ class PatreonEndScreen(PatreonThanks, PiCreatureScene):
|
|||
columns.target.to_edge(DOWN, buff=4)
|
||||
vect = columns.target.get_center() - columns.get_center()
|
||||
distance = get_norm(vect)
|
||||
wait_time = 20
|
||||
wait_time = self.scroll_time
|
||||
always_shift(
|
||||
columns,
|
||||
direction=normalize(vect),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue