BASECOLOR
Syntax BASECOLOR RGB color list
 
Explanation

BASECOLOR takes a three-element list of RGB color values as input and outputs the closest single color number. Single color numbers are compatible with the color system used by PC Logo. Color commands may take a single color number as well as a list of RGB colors.

BASECOLOR is convenient when a program uses PC Logo color values or a single color number is preferred to a three-element RGB list.


Examples BASECOLOR [63 63 191]
Result: 63
BASECOLOR "GOLD
Result: 215
BASECOLOR "RED
Result: 12
SETPC 123
PC
Result: [170 31 255]
BASECOLOR PC
Result: 123

TopIndex