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

[Bug] The Troke drawing doesn't look good in the html canvas #76

Open
nhonnh2 opened this issue Jan 21, 2024 · 2 comments
Open

[Bug] The Troke drawing doesn't look good in the html canvas #76

nhonnh2 opened this issue Jan 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@nhonnh2
Copy link

nhonnh2 commented Jan 21, 2024

signaturecanvas
I have an option for getStroke but the resulting stroke doesn't feel smooth.

const options = {
  size: 3,
  thinning: 0.2,
  smoothing: 1,
  streamline: 0.1,
  easing: (t) => t,
  start: {
    taper: 0,
    easing: (t) => t,
    cap: true,
  },
  end: {
    taper: 10,
    easing: (t) => t,
    cap: true,
  },
};

My canvas have
width={440} ; height={220}

Can you help me make it more beautiful?

@nhonnh2 nhonnh2 added the bug Something isn't working label Jan 21, 2024
@sourab-updot
Copy link

Same issue in Svelte as well

@hitesh0902
Copy link

hitesh0902 commented Mar 19, 2024

try to use high DPI canvas

const width = 500;
const height = 500;
const scale = 2;

<canvas width={width * scale} height={height * scale} style={{ width: width, height: height }}></canvas>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants