This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local module = {} | |
--MCR, Jan 2025 | |
--Will return an editImage, the old size, and the new size if required | |
--eg: a 100x100 image with a 4 stroke will come back as 110x110 -> stroke * 2 + 2 | |
--Also doesnt check for upper image size | |
-- NO LONGER SLOW! optimized by Pyseph :-) | |
function module:MakeStrokeImageFromAssetIdAsync(assetId : number, strokeSize : number) : EditableImage? | |
strokeSize = math.clamp(strokeSize, 1, 16) |