Tsparticles: detectRetina breaks dynamic link opacity on HiDPI screens

Created on 19 Sep 2020  路  3Comments  路  Source: matteobruni/tsparticles

Thank you for fixing the random particle opacity of issue #831 . That is some seriously fast support and deployment. However, the problems, that the links still don't look right for me persists.

Describe the bug
I have run some tests and the issue is the same on all my OSes. If detectRetina is enabled on a high DPI screen, the dynamic link opacity doesn't work as good anymore and long links loose their transparency. The issue gets worse the higher the OS display scaling is (higher DPI).

To Reproduce
See this codepen on a HiDPI device (left side has retina detection disabled and right side has it enabled):
https://codepen.io/microraptor-the-sans/full/abNRwpw

Expected behavior
Both sides should look the same, except that the right side with detectRetina should be sharper.

Screenshots
This is on a 4K screen with 350% scaling:
350hdpi

This is on a 4K screen with 200% scaling:
200dpi

This is on a 4K screen with 100% scaling:
100hdpi

Desktop (please complete the following information):
Windows and Ubuntu with Firefox and Chrome show the same behavior.

Smartphone (please complete the following information):
Android 10 with Firefox and Edge shows the same behavior.

Additional context
Changing the link width doesn't change the problem. Setting the maximal opacity very low of the links shows up correctly on HiDPI devices, so they are able to show very transparent links.

bug good first issue help wanted up-for-grabs

All 3 comments

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Nice catch, I need to do more tests on my Retina Display, I'll have a look at that deeply.

Thanks for the quick fix. Looks amazing now on HiDPI screens! :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ecrookoh picture ecrookoh  路  3Comments

jeffgoh picture jeffgoh  路  4Comments

matteobruni picture matteobruni  路  6Comments

adammesa picture adammesa  路  4Comments

lectair picture lectair  路  6Comments