ShowBackground
Sets the background image or color
Parameters
Name | Type | Optional | Description |
---|---|---|---|
background | string | Record<string, string> | ❌ | Background |
Usage
ts
engine.script({
start: [
engine.action.showBackground("#f67288"),
engine.action.showBackground("<url>"),
// latest matching is preferred
engine.action.showBackground({
all: "<url>",
"(orientation: portrait)": "<url>",
"(prefers-color-scheme: dark)": "#363636",
}),
],
});