← All scene elements
SCENE ELEMENT / 01

Text & labels

Dynamic copy, labels and multiline messages.

LIVE WEB PLAYER

See it respond.

The same raylib runtime, compiled to WebAssembly. Load this example, inject MQTT messages and watch its published events.

Loading WebAssembly…
MQTT I/O
Waiting for runtime…

The browser requires a user action before the scene is loaded. Click Load demo scene first. MQTT is emulated and never leaves this page. Shaders are disabled in the web build; GPIO is hardware-only.

Displays static or MQTT-controlled text, optionally word-wrapped and framed.

Configuration

FieldDescription
typetext
valueDisplayed string
fontTTF filename; empty uses Raylib default
sizeFont size in pixels
color#RRGGBB or #RRGGBBAA
alignleft, center, or right
multilineEnable wrapping inside element width
line_spacingLine-height multiplier

Also supports all common fields.

Copy-and-paste JSON

json
{
  "type": "text",
  "id": "status_text",
  "pos": [100, 80],
  "size": 48,
  "font": "Technology.ttf",
  "color": "#FFFFFFFF",
  "value": "READY",
  "align": "left",
  "multiline": true,
  "layer": 2
}

MQTT

text
ergs/rpi01/update/status_text            System online
ergs/rpi01/cmd/status_text/color         #5CFF9D
ergs/rpi01/visible/status_text            OFF