Opacity on lines borked
See original GitHub issueExpected Behavior
Should be able to add opacity to a line
Current Behavior
Where the line overlaps in a curve streaks appear in it.
Possible workaround
Draw the line solid, render to a texture and then apply opacity (can be seen by applying circle.cacheAsBitmap = true
to the attached pixiplayground). This suffers a loss of fidelity in the curve though.
Steps to Reproduce
Create an ellipse or curve and put a line on it
Environment
pixi.js
version: 5.2.1- Browser & Version: Chrome 80
- OS & Version: Mac OS Mojave
- Running Example: https://pixiplayground.com/#/edit/A22hhBZYvo9FlcJOaUAHa
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Opacity on lines borked · Issue #6560 · pixijs/pixijs - GitHub
Where the line overlaps in a curve streaks appear in it. image. Possible workaround. Draw the line solid, render to a texture and...
Read more >opacity - CSS: Cascading Style Sheets - MDN Web Docs
The opacity CSS property sets the opacity of an element. Opacity is the degree to which content behind an element is hidden, and...
Read more >How can I make the 'plot' function markers and lines ...
I want to make a plot with semi-transparent markers and lines using 'plot' and 'alpha', but it's not working. Why? Sign in to...
Read more >pgf's and pstricks's opacity is not working - TeX
I've recently upgraded (on Ubuntu 18.04 LTS) TexLive 2016 to 2017. The problem that came up is that the opacity of tikz (pgf)...
Read more >Can you set a border opacity in CSS? - Stack Overflow
Having alternating groups of pixels between the foreground color and the background color isn't the same as a continuous line of partially ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ivanpopelyshev introduced multisampling in dev (will be in 5.3.0). You will be able to do something like this which is rendering your graphics to a RenderTexture.
https://jsfiddle.net/bigtimebuddy/6tzyv91j/
Disclaimer: Ignore the issue with ellipse stroke in the middle, we have a fix for that in the queue.
@georeith Come over to our slack workspace so you can ping me when you need: https://join.slack.com/t/pixijs/shared_invite/zt-dcem1map-uVuVGC7pZ0trF8SrcA2p9g, 😃