Thursday, 12 February 2015

UnicornHat Scrolling library updates: Happy valentines


To help celebrate Valentines day I've updated my UnicornHat scrolling library with a new feature: special symbols.  You can now display a lovely, romantic heart (ahhhh), a silly smilie (hahah) or a scientific degrees symbol (by popular request).


To use the symbols, they are identified in the text string to be displayed by a tilde (~) prefix and a 5-character code.

For the heart: ~ heart.
The smilie: ~smile
The degrees symbol: ~degrs


For the nicely formatted results with the degrees symbol, don't leave any spaces between it and the surrounding characters.  For example.
unicorn_scroll('It is 25~degrsc','blue',255,0.5)


No comments:

Post a Comment