Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+2)

Yep! Most of the methods of an Image modify the image in place and return the original image, so you can chain calls like this: .map[], .transform[], .rotate[], .translate[], .scale[], .outline[], .merge[], and .paste[]. (image.copy[] returns the region you're copying as a new image!)

The same applies to most of the drawing methods of a Canvas widget: .clip[], .clear[], .rect[], .invert[], .box[], .fill[], .line[], .poly[], .text[], .segment[], .outline[], .merge[], and .paste[]

(+2)

I was actually using the old method until I saw how you were condensing scripts in the official decks - in fact, I didn't realize there were even more methods I could be chaining until I read your reply. Thank you! ^^