To use simply call FPrinter with the required style, for instance:
FPrinter.blue("Some blue text")
This will print in blue, without affecting other printouts.
Alternatively, call the !
methods to change all outputs until reset!
is called, like below
print "Some regular text"
FPrinter.blue!
print "Some blue text"
print "Some more blue text"
FPrinter.yellow!
print "Some yellow text"
FPrinter.reset!
print "some regular text again"
You can use the following commands:
bold(string)
orbold!
: prints string in boldblink(string)
orblink!
: prints flashing stringunderline(string)
orunderline!
: prints underlined stringhighlight(string)
orhighlight!
: prints your string highlightedblack(string)
orblack!
: prints your text in black - works for red, green, yellow, blue, magenta, cyan and whitehighlighted_red(string)
orhighlighted_red!
: prints your text highlighted in red - works with green, yellow, blue, magenta, cyan, whiteslow(string, time = 0.08)
: prints string slowly - optionnal, set the time in seconds, default is 0.05slow_unprint(string, time = 0.05)
: print string on screen, and slowly erase it from the right - optionnal, set the time in seconds, default is 0.05reverse(string, time = 0.05)
: print string starting from the end - optionnal, set the time in seconds, default is 0.05appear_from_left(string, time = 0.05)
: string appears from the left - optionnal, set the time in seconds, default is 0.05appear_from_right(string, time = 0.05)
: string appears from the left - optionnal, set the time in seconds, default is 0.05big(string)
: prints big letters - supported characters in v 0.1.0 a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,!,?,#,@