Jump to content

Fill figure from different paths (graphics)


vardanyanlg
 Share

Recommended Posts

Hi,

I created a Graphics object and draw in it behind the coordinates of the mouse. I use moveTo (), lineTo () and strokePath ().
I would like to fill the object inside the line and use fillPath (), however the shapes can be drawn with different patches.
Are there any ideas how I can fill in shapes drawn from different patches?

In the image, an example - line numbers is the order in which they are drawn.

Thanks for any ideas!

example.PNG

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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