pythonarcade / arcade

Easy to use Python library for creating 2D arcade games.
http://arcade.academy
Other
1.68k stars 319 forks source link

GUI: Simple 9patch texture renderer #1164

Closed einarf closed 1 year ago

einarf commented 2 years ago

When drawing rounded backgrounds and buttons it would be nice to draw them as a 9patch ensuring the corners don't get streched. The widget should also be resizable and the same texture can be used in all widgets needing that background.

bilde

eruvanos commented 2 years ago

I guess it would be enough to have some NinePatch image class, which just provides resizing and can return a texture or PIL image?

einarf commented 1 year ago

This is now in development but shader needs a tweak when we merge the texture-revamp branch.