Image & Canvas
NQindexOf
$NQindexOf — Finds the index of the closest color of the color map.
Finds the index of the closest color of the color map.
Syntax
$NQindexOf[name;r;g;b;a]
Parameters
- name (String, required) — Instance name
- r (Number, required) — Red
- g (Number, required) — Green
- b (Number, required) — Blue
- a (Number, required) — Alpha
Return Value
- Number.
Usage
$NQindexOf[name;r;g;b;a] → result
Example
$sendMessage[$NQindexOf[name;r;g;b;a]]
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.