Skip to content
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

Question: Adding transparent rgba value to penColor #780

Open
SimonPaidla opened this issue Aug 1, 2024 · 1 comment
Open

Question: Adding transparent rgba value to penColor #780

SimonPaidla opened this issue Aug 1, 2024 · 1 comment

Comments

@SimonPaidla
Copy link

Hello everyone,

I have the following problem: I would like to use a transparent pen color to highlight texts (e.g., rgba(255,0,0,0.3)). As shown in the image, the bottom two lines (with rgba color value) do not deliver the desired result. Unfortunately, I couldn't gather from the documentation whether and how I can solve the problem myself, which is why I'm asking here.

  • Is there an option to prevent these dots from appearing when using transparent color (example line 2/3 from the image)?
  • Is there an option to prevent the lines from becoming "thicker" when redrawing with transparent color? (example line 3 from the image)
Bildschirmfoto 2024-07-31 um 11 41 02

I tried experimenting with the options:

  • dotSize
  • throttle
  • minDistance.

But none of the changes produce a good result

Thank you in advance for your help.

@UziTech
Copy link
Collaborator

UziTech commented Aug 2, 2024

Sorry I am away from my computer for the weekend so I am unable to test this but my guess is that the issue is how signature_pad draws each line segment to the canvas. This happens for speed. you could redraw the whole canvas on move but for long signatures that would become very slow.

This is actually the same issue I ran into for #771. As of now I don't have a good solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants