Skip to content

Conversation

Pheo
Copy link

@Pheo Pheo commented Mar 21, 2025

  • Adds example Path2D usage in experience.js.
  • Makes Path2D work with .fill as well
    image

// Path 2D stroke
context.strokeStyle = "black";
context.lineWidth = 2;
let heartPath = new _native.Path2D("M390,30 A 20, 20 0, 0, 1 430, 30 A 20, 20 0, 0, 1 470, 30 Q 470, 60 430, 90 Q 390, 60 390, 30 z");
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

It's merged.

Copy link
Author

Choose a reason for hiding this comment

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

Have pulled master into this branch and updated examples to use engine.createCanvasPath2D

@CedricGuillemet CedricGuillemet merged commit 6bf07b3 into BabylonJS:CanvasTest Mar 24, 2025
3 checks passed
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.

2 participants