This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
gametechish's profile picture

A simple Text API

Started by gametechish, 27 June 2014 - 06:41 PM
gametechish #1
Posted 27 June 2014 - 08:41 PM
This is a simple Text API that can center text and clear the screen and change the text color with the same function it also has a couple of easter eggs in there if you want to go looking
USAGE
Spoilertext.clear() = will clear the screen and set the text color to the color specified
text.centerPrint([what you want printed]) = will print the specified text perfectly centered
PICTURES
Spoiler

DOWNLOAD
Spoilerrun
pastebin get BzDFYRXH

This API is already in SYS-OS if you happen to want it and have SYS-OS
Edited on 27 June 2014 - 06:45 PM
newcat #2
Posted 29 June 2014 - 08:17 PM
Maybe it would be a bit better to combine all those clear{Color}() [e.g. clearRed() ] function into one function like clear(color) [ clear(colors.red) ]
Edited on 29 June 2014 - 06:17 PM
TommieIV #3
Posted 20 August 2014 - 08:23 PM
What emulator are you using?
gametechish #4
Posted 11 March 2015 - 10:36 PM
What emulator are you using?
CCEmuRedux