Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Dvergar/rainbow
Luxe richtext library
https://github.com/Dvergar/rainbow
luxe text
Last synced: 2 months ago
JSON representation
Luxe richtext library
- Host: GitHub
- URL: https://github.com/Dvergar/rainbow
- Owner: Dvergar
- Created: 2015-02-11T19:18:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-22T22:11:37.000Z (over 9 years ago)
- Last Synced: 2024-02-01T01:06:17.424Z (5 months ago)
- Topics: luxe, text
- Language: Haxe
- Homepage:
- Size: 156 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-snowkit - Rainbow
README
# Rainbow
Text coloring/sizing per character for luxe. Different font is not supported yet.
Example:
```haxe
new RichText
({
text : "Hel{red}lo {white}w{red}orld",
pos : Luxe.screen.mid,
color : new Color().rgb(0x276BE8), // Default color
tags : [new Tag("red", new Color().rgb(0xE8273C)),
new Tag("white", new Color())],
align : TextAlign.center,
size : 50,
});
}
```