Skip to content
Image & Canvas encoderGlobalPalette

$encoderGlobalPalette — 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

$encoderGlobalPalette[(gif)]

Parameters

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

Return Value

  • Json.

Usage

$encoderGlobalPalette[gif] → result

Example

$sendMessage[$encoderGlobalPalette[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.