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

Current position after bezier curve is the last control point #236

Closed
RubixDev opened this issue Oct 1, 2023 · 0 comments
Closed

Current position after bezier curve is the last control point #236

RubixDev opened this issue Oct 1, 2023 · 0 comments
Labels
bug 🐛 Something isn't working core:draw ✏️
Milestone

Comments

@RubixDev
Copy link
Contributor

RubixDev commented Oct 1, 2023

#import "@preview/cetz:0.1.1"
#cetz.canvas({
  import cetz.draw: *
  circle((), radius: .05, fill: red)
  bezier((), (1, 1), (0, 1), (1, 0))
  circle((), radius: .05, fill: blue)
})

produces this:
image

I would expect the blue circle to be at the curve's end point (so (1, 1) here), instead it uses the coordinates of the last control point.

@johannes-wolf johannes-wolf added bug 🐛 Something isn't working core:draw ✏️ labels Oct 1, 2023
@johannes-wolf johannes-wolf added this to the 0.2 milestone Oct 21, 2023
johannes-wolf added a commit that referenced this issue Oct 30, 2023
johannes-wolf added a commit that referenced this issue Oct 30, 2023
johannes-wolf added a commit that referenced this issue Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working core:draw ✏️
Projects
None yet
Development

No branches or pull requests

2 participants