Skip to content

Add new transform to truncate a sprite to the default sprite size #39

@m-ender

Description

@m-ender

Could be called truncate, trim or clip. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requestquestionFurther information is requestedsprite manipulationscopying and transforming spritessyntax/languageConcerns the language or its syntax

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions