Emoji¶
Pixlet renders 1753+ Unicode emojis directly in render.Text() widgets. Just include emoji characters in your strings and the runtime will pick the right sprite from the bundled sheet.
Tip
Emojis are tiny on Tronbyt displays. Highly detailed glyphs can look cleaner if you scale them up first.
Quick Examples¶
# Basic usage
render.Text("Hello World!", font="6x10")
# Multiple emojis
render.Text("ππππ", font="5x8")
# Mixed content
render.Text("Weather: βοΈ 75Β°F", font="tb-8")
Examples¶
Grinning Face
Party Popper
Confetti Ball
Balloon
Wrapped Gift
Sun
Previewing The Set¶
For a full visual catalog of the SerenityOS artwork Pixlet uses, visit Emojipedia. Each entry shows the exact glyph provided by the upstream pack.
Example Apps¶
Text Widget with Emojis¶
load("render.star", "render")
def main():
return render.Root(
child = render.Column(
children = [
render.Text("Weather: β 75Β°F", font="6x10"),
render.Text("Status: β
Online", font="5x8"),
render.Text("π Happy Birthday! π", font="tb-8"),
render.Text("πΊπΈπ¬π§π«π·π©πͺπ―π΅", font="6x10"),
]
)
)
The Emoji Widget¶
For creating large, scalable emojis, Pixlet provides a dedicated render.Emoji widget:
# Create emojis at any size
render.Emoji(emoji="π", height=32) # Large rocket
render.Emoji(emoji="β‘", height=64) # Huge lightning
render.Emoji(emoji="π", height=16) # Medium party
# Use in layouts
render.Row(
children = [
render.Text("Status:", font="6x10"),
render.Emoji(emoji="β
", height=12),
]
)
Attribution¶
The emoji artwork used in Pixlet is provided by the SerenityOS project. SerenityOS has created a beautiful, open-source emoji set that perfectly fits Pixlet's aesthetic for small displays.
- Emoji Source: emoji.serenityos.org
- SerenityOS Project: serenityos.org
- License: The emoji artwork is released under permissive licensing terms