DEMO version ! After registering you will receive a complete version.

Description

This function finds the color closest to the passed 24 bits color. The passed
Red, Green and Blue component may range from 0 to 255. The standard colors
have the following values (in graphical mode):

│ Red │ Green │ Blue
─────────────────┼──────────┼─────────┼──────────
Black │ 0 │ 0 │ 0
Blue │ 0 │ 0 │ 128
Green │ 0 │ 128 │ 0
Cyaan │ 0 │ 128 │ 128
Red │ 128 │ 0 │ 0
Magenta │ 128 │ 0 │ 128
Brown │ 128 │ 128 │ 0
White │ 128 │ 128 │ 128
Gray │ 192 │ 192 │ 192
Bright blue │ 0 │ 0 │ 255
Bright green │ 0 │ 255 │ 0
Bright cyaan │ 0 │ 255 │ 255
Bright red │ 255 │ 0 │ 0
Bright magenta │ 255 │ 0 │ 255
Yellow │ 255 │ 255 │ 0
Bright white │ 255 │ 255 │ 255


Syntax

FGLRGBColor(< Red >,< Green >,< Blue >) -> Color.