How to achieve a line with different styles of starting/ending tip?
See original GitHub issueHello, I’m new here
I’m trying to create a scene that has a line with a dot in ending/starting. It would look like this…
I’m following this doc, I tried to run the following code:
class Viterbi(Scene):
def construct(self):
arrow = Arrow(np.array([0, 0, 0]), np.array([1, 1, 0]), tip_shape=ArrowCircleTip)
self.add(arrow)
self.wait()
I received this warning:
NameError: name 'ArrowCircleTip' is not defined
I am not a specialist in reading documents, but based in this doc, manim.mobject.geometry.ArrowCircleFilledTip
means that the class ArrowCircleFilledTip
should be located in manim/mobject/geometry.py
, doesn’t?
Anyway, this path doesn’t exist. But I found the path manim/manimlib/mobject/geometry.py
, and there isn’t the statement of the ArrowCircleTip
class. If I’m not wrong, I should find this class there. That’s the problem? how can I solve it?
I have an interesting case:
- When I change
ArrowCircleTip
toRegularPolygon
(which exists inmanim/manimlib/mobject/geometry.py
), this code still gives me an arrow-styled line, that is
PS: Sorry if this question is stupid, I didn’t find it anywhere…
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top GitHub Comments
I don’t really know if I can give fully accurate advice.
Best plan: go for the community version. It’s in the name, help and documentation will be closer to you than in the main version.
You mean this?