Jump to content

Is it possible to do free form image cropping in Phaser?


crazyDev
 Share

Recommended Posts

So you want to crop a polygon from a shape (and have rest of pixels set to transparent) ? You could store the polygon where the user clicks, maybe get a library for that, and then for each point in the image if it is also in the polygon, save it, otherwise remove it. Most probably Phaser doesn't have this built in, as it is not a core trivial functionality.

Link to comment
Share on other sites

My goal is to take an image and make a cartoon out of it like Saddam Hussein's character in the South Park movie. So the goal is to have the user select a person's face out of the image and then divide it into the lower jaw and rest of the face, and have them saved for use as resources. Here you can see what I'm trying to achieve:

 

https://www.youtube.com/watch?v=yADrtfAmLTo

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...