Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i make the text follow the line's end point~~ #736

Closed
wsx9999 opened this issue Sep 27, 2019 · 2 comments
Closed

how can i make the text follow the line's end point~~ #736

wsx9999 opened this issue Sep 27, 2019 · 2 comments

Comments

@wsx9999
Copy link

wsx9999 commented Sep 27, 2019

the line rotate a angle, and then set a text next to one end point~ but it doesn't work.
How can i do it correctly.

class example(Scene):

def construct(self):
    line=Line(ORIGIN,RIGHT*2)
    line.rotate(PI/3,about_point=ORIGIN)
    text=TextMobject('A')
    text.next_to(line.get_right(),LEFT,buff=0.1)
    self.add(line,text)
    self.wait()

wsx

@Elteoremadebeethoven
Copy link
Contributor

text.next_to(line.get_end(),RIGHT)

@wsx9999
Copy link
Author

wsx9999 commented Sep 27, 2019

@Elteoremadebeethoven thanks a lot~ I learned manim from your video. glad to get the answer from you.

@wsx9999 wsx9999 closed this as completed Sep 29, 2019
eulertour pushed a commit to eulertour/manim-3b1b that referenced this issue Dec 2, 2020
Co-authored-by: Aron Fischer <co-bordism on gitlab>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants