-
Notifications
You must be signed in to change notification settings - Fork 2k
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
opacity of Vector() and DashedVMobject(Vector) (Manim 0.17.3) #3220
Labels
Comments
Ok I discovered the cause of the main problem: for every piece of the dashed line also a copy of the arrow head is added to the dashed VMobject: class arrowTransp(Scene):
def construct(self):
arr1 = Arrow(ORIGIN,[2,2,0], color=GREEN).shift(2*LEFT+UP)
arr2 = arr1.copy().shift(DOWN).set_fill(opacity=0.4).set_stroke(opacity=0.4)
arr3 = DashedVMobject(arr2.copy().shift(DOWN)).set_fill(opacity=0.4, family=True).set_stroke(opacity=0.4, family=True)
self.add(arr1,arr2,arr3)
arr3a = arr3.copy().shift(2*LEFT)
for i in range(len(arr3a)):
arr3a[i].shift(0.3*i*DOWN)
self.add(arr3a,index_labels(arr3a))
arr4 = Arrow(ORIGIN,[2,2,0], color=RED, tip_shape=StealthTip).shift(RIGHT+UP)
arr5 = arr4.copy().shift(DOWN).set_fill(opacity=0.4).set_stroke(opacity=0.4)
arr6 = DashedVMobject(arr5.copy().shift(DOWN)).set_fill(opacity=0.4, family=True).set_stroke(opacity=0.4, family=True)
self.add(arr4,arr5,arr6)
arr6a = arr6.copy().shift(2*RIGHT)
for i in range(len(arr6a)):
arr6a[i].shift(0.3*i*DOWN)
self.add(arr6a,index_labels(arr6a)) |
MrDiver
added
good first issue
Good for newcomers
issue:bug
Something isn't working... For use in issues
labels
Dec 2, 2023
That seems like a big problem! |
I am taking a shot at this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description of bug / unexpected behavior
The set stroke opacity and fill opacity is not obeyed for arrow heads - especially not when used within a
DashedVMobject
Expected behavior
The opacity of the fill of the arrowhead is kept at 1.0 and not affected by setting the opacity value.
How to reproduce the issue
Code for reproducing the problem
Additional media files
Images/GIFs
System specifications
System Details
- ManimCE 0.17.3 - OS: Windows 10 64 bit - Python version: 3.9.8The text was updated successfully, but these errors were encountered: