ManimCommunity / ManimCommunity/manim

opacity of Vector() and DashedVMobject(Vector) (Manim 0.17.3)

Open
#3,220 3 comments 0 reactions 1 assignee View on GitHub

@EngRia is already working on this.

Since Dec 8, 2023.

good first issue issue:bug
Dominant language
Python
Stars
40.9k
Forks
3.1k
Avg merge
3d 12h
Merged PRs (30d)
25

Description

## 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

```py
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 = VGroup(DashedVMobject(arr2.copy().shift(DOWN))).set_fill(opacity=0.4, family=True).set_stroke(opacity=0.4, family=True)
self.add(arr1,arr2,arr3)
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 = VGroup(DashedVMobject(arr5.copy().shift(DOWN))).set_fill(opacity=0.4, family=True).set_stroke(opacity=0.4, family=True)
self.add(arr4,arr5,arr6)
```

## Additional media files
Images/GIFs

![image](https://user-images.githubusercontent.com/8582807/233597066-d4ad8319-9ce3-4290-a65b-30060a49012c.png)

## System specifications
System Details
- ManimCE 0.17.3
- OS: Windows 10 64 bit
- Python version: 3.9.8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.