Stretchable images with end caps for Pygame
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.DS_Store
LICENSE.txt
README.md
button.png
capresize.py
screenshot.png
template.png
textfield.png

README.md

Stretchable Capped Images for Pygame

This module creates a Pygame surface from a source surface that has "end caps" on its corners. The caps remain unscaled in the destination surface and the other portions are scaled/stretched or tiled.

This was inspired by Android's NinePatch and iOS' resizableImageWithCapInsets.

Metadata

Brian Hammond (brian@fictorial.com)

Copyright © 2012 Fictorial LLC.