Closest_Color

color <- Closest_Color(Red, Green, Blue)

 

Closest_Color is a function that returns an extended color  value between 0 and 241.  The color value returned is the closest match to the given RGB values (red, green, blue).  The Red, Green, and Blue values must be between 0 and 255 or a run-time error will occur.

 

Examples:

 

   

   Color <- Closest_Color(50, 30, 110);

 

finds the color closest to having red intensity of 50, green intensity of 100 and blue intensity of 110