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

Caps at the beginning of the curve #7201

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

diyaayay
Copy link
Contributor

@diyaayay diyaayay commented Sep 2, 2024

Resolves #6816

Changes:
Sets let start=step; instead of let start=0; .
Added fix for both quadratic vertex segment and bezier vertex.

Screenshots of the change:
Before:
image

After:
image

sketch

function setup() {
  createCanvas(400, 400, WEBGL);
  background(255)
  noFill()
  stroke(0)
  strokeWeight(20)
  translate(-width/2, -height/2)
  beginShape()
  vertex(20, 20)
  quadraticVertex(
    280, 200,
    100, 380
  )
  endShape()
}

PR Checklist

Copy link
Contributor

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making these fixes!

@davepagurek davepagurek merged commit 0b01116 into processing:main Sep 3, 2024
2 checks passed
@diyaayay diyaayay deleted the Caps-at-beg-of-curve branch November 13, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Beginning of WebGL curves don't have a cap since v1.8
2 participants