Subtraction between a rectangle and a circle.

17 views
Skip to first unread message

robin gautier

unread,
May 31, 2014, 10:07:00 AM5/31/14
to kivy-...@googlegroups.com

Hello.

 

I am kind of new in kivy development and I am really enjoying all the framework.

 

But is there any simple solution to draw the subtraction of a rectangle and a circle like shown on this image:


with kivy canvas, shader, mesh, other kivy features or any very light external library compatible with kivy?

 

I am trying to make a map with a fog of war and I would use this shape with semitransparent black in order to make my background darker anywhere but around my entities.

 

Thank you!

Reply all
Reply to author
Forward
0 new messages