kotter icon indicating copy to clipboard operation
kotter copied to clipboard

Add an API for centering text

Open bitspittle opened this issue 4 years ago • 0 comments

center(WIDTH, string)

so center(10, "Hi") would generate (assume X's are spaces):

XXXXHiXXXX

and you could use it like textLine(center(WIDTH, "message"))

bitspittle avatar Aug 28 '21 06:08 bitspittle