Skip to content

Add support for rendering NineSlice via canvas#7168

Closed
ChrisCPI wants to merge 3 commits intophaserjs:v4.0.0from
ChrisCPI:nineslice-canvas
Closed

Add support for rendering NineSlice via canvas#7168
ChrisCPI wants to merge 3 commits intophaserjs:v4.0.0from
ChrisCPI:nineslice-canvas

Conversation

@ChrisCPI
Copy link
Copy Markdown
Contributor

Please do not update the README or Change Log, we will do this when we merge your PR.

This PR (delete as applicable)

  • Adds a new feature

This PR adds the ability for NineSlice game objects to render via the canvas renderer, done by drawing 9 separate images (or 3, if it is set to be a three-slice) based on the width, height, leftWidth, rightWidth, topHeight and bottomHeight properties of the NineSlice. The vertices/quads are not used here.

@photonstorm
Copy link
Copy Markdown
Collaborator

Thanks for originally opening this PR, but I'm going to close it as the Canvas renderer is now deprecated with the release of Phaser v4.

@photonstorm photonstorm closed this Apr 9, 2026
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