Skip to content

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.