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

Fail case for bezier-through #773

Open
Jollywatt opened this issue Dec 16, 2024 · 0 comments
Open

Fail case for bezier-through #773

Jollywatt opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
bug 🐛 Something isn't working

Comments

@Jollywatt
Copy link
Contributor

The maths for bezier-through sometimes fails. I don't have much insight to add except this MWE:

#import "@preview/cetz:0.3.1"

#let verts = (
    (0,0),
    (1,0),
    (2,2),
)

#cetz.canvas({
  cetz.draw.bezier-through(..verts)
  verts.map(v => {
    cetz.draw.circle(v, radius: 2pt, fill: red, stroke: none)
  }).join()
})
Screenshot 2024-12-16 at 22 27 45
@johannes-wolf johannes-wolf added the bug 🐛 Something isn't working label Dec 18, 2024
@johannes-wolf johannes-wolf self-assigned this Dec 18, 2024
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

2 participants