Add new transform to truncate a sprite to the default sprite size #39
Labels
feature
New feature or request
question
Further information is requested
sprite manipulations
copying and transforming sprites
syntax/language
Concerns the language or its syntax
Could be called
truncate
,trim
orclip
. I'm thinking it might also be nice to have an optional directional parameter, which would only truncate the sprite in that direction. Offsets for custom cutoff points don't need to be specified because they could be realised by translating, truncating, translating instead.I'm not 100% sure how this should interact with translated sprites, but it would probably keep the offset unchanged but take it into account when deciding where to cut off the sprite.
The text was updated successfully, but these errors were encountered: