Log In  

Cart #nineslice-0 | 2019-06-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

A quick little function to draw 9-slice boxes. Has modes for stretched or repeated sprites along the borders, and an optional background color. A little heavy for general use at ~444 tokens, and could probably be optimized further.

Use:

nineslice(x origin,y origin,width in px,height in px,
          sprite index for upper left corner, stretched mode (true/false), 
          background color)
P#65178 2019-06-13 16:16


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 06:23:11 | 0.009s | Q:12