Sign In

$indexedToHex[]

Converts indexed pixels to HEX

v1.2.1+ Requires Brackets

Usage

$indexedToHex[;;;;]

Arguments

NameTypeRequiredDescription
palette
JsonYesThe palette to use for the conversion
transparent
NumberNoThe index of the transparent color in the palette
alwaysAlpha
BooleanNoDetermines whether to always include the alpha channel in the output (default: false)
allowShort
BooleanNoWhether to allow short hex output (default: false)
...pixels
NumberYesThe pixels to convert into HEX

Was this page helpful?