Triangle Sprite Slicer

Made for the Z-clippable 3D-triangle renderer in Scratch.
It cuts a square texture into strips along four 45 ° directions (vertical, horizontal, and both diagonals).

Image must be square!
Defaults to image size
1 = single-pixel diagonal (default)