How to clip a rectangle image to circle

I’m new to Phaser3 and i can speak a little English…sorry
I use plugin circlemaskimage (link: https://rexrainbow.github.io/phaser3-rex-notes/docs/site/circlemaskimage/) ,

it can works on type: Phaser.AUTO,
it can not works when i change the type to Phaser.CANVAS.

I need it works on canvas type, how can i do?

Is there other ways to implement clip a rectangle image to circle?

Thanks a lot.

It’s a bug of my plugin. Fixed now. Please download minify js file again (or update repo from github) to use latest version of CircleMaskImage. (NPM version has not upgraded yet)

2 Likes

It works ! Thanks a lot! :+1: