Skip to content
Image & Canvas globalPalette

$globalPalette — Returns a global palette (red, green, blue values, JSON) computed from the first frame. (alias of $GIFEncoderGlobalPalette)

Returns a global palette (red, green, blue values, JSON) computed from the first frame. (alias of $GIFEncoderGlobalPalette)

Syntax

$globalPalette[(gif)]

Parameters

  • gif (String, optional) — Encoder name (empty: the only one)

Return Value

  • Json.

Usage

$globalPalette[gif] → result

Example

$sendMessage[$globalPalette[gif]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.