kmonsoor / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

scale_x and scale_y for sprites #748

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I wanted to scale sprites independently across the x/y axes. To accomplish this 
I patched sprite.py to include additional scale_x and scale_y properties. 

Internally, _scale_x and _scale_y replace _scale, but the scale property is 
still available. It sets both _scale_x and _scale_y at once, but returns only 
_scale_x. I made a note of this in the scale property documentation. 

I noticed this feature has already been patched by another user, but it wasn't 
followed through with because they posted dead links.

Thanks.

Original issue reported on code.google.com by evild...@gmail.com on 3 Jun 2014 at 9:23

Attachments: