Last active
September 24, 2017 20:27
-
-
Save Groogy/4d847a7b834074963dd9da75fdb5879e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font = Boleite::Font.new app.graphics, "/usr/share/fonts/TTF/arial.ttf" | |
text = Boleite::Text.new font, "Hello world?\nHello new line!" | |
text.size = 150u32 | |
text.default_color = Boleite::Color.blue | |
text.position = Boleite::Vector2f.new 10.0, 10.0 | |
text.formatter.add /(Hello)/, Boleite::Color.green | |
text.formatter.add /(\!|\?)/, Boleite::Color.black | |
renderer.draw text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment