Butterfly icon indicating copy to clipboard operation
Butterfly copied to clipboard

[Bug]: Highlighter lines contain brighter dots

Open solarkraft opened this issue 3 years ago • 4 comments
trafficstars

What happened?

When using a highlighter color (-> transparency), there are bright, round dots where the line segments join. This is more apparent when using the web version due to the lower sampling rate, but it potentially presents an even bigger problem on Android: The more slowly you draw, the more opaque the highlighter line becomes, to the point of letting nothing shine through. That's probably not desirable either for "note" applications; it's definitely not how other apps do it and could be changed at the same time (applying the alpha on the whole line, not the individual segments).

IMG_20220818_203343_460

IMG_20220818_203341_166

Version

1.4.2

Platform

Android

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

solarkraft avatar Aug 18 '22 18:08 solarkraft

Hmm yeah. I don't know how to fix it... I draw line by line and on these brighter dots both lines are connecting.

CodeDoctorDE avatar Aug 18 '22 18:08 CodeDoctorDE

Is it not possible to apply the alpha on the whole line instead of the individual segments?

solarkraft avatar Aug 18 '22 18:08 solarkraft

BTW, I do think the effect might be desirable, but for something more like an "air brush" tool (i.e. explicitly requested).

solarkraft avatar Aug 18 '22 18:08 solarkraft

The problem is that I draw the lines individually. One solutiion is to use drawPath instead of drawLine but then I can only use one stroke width (that means you cannot use your stylus pressure input)

CodeDoctorDE avatar Aug 18 '22 18:08 CodeDoctorDE

Can you try this? https://butterfly-git-feature-free-hand-linwood.vercel.app/

CodeDoctorDE avatar Jan 22 '23 14:01 CodeDoctorDE