pen = GetBestPen(id, color)
id whose color is the closest
match to the color specified in the color argument and returns that pen. The color argument
must be an RGB color.
SetDrawPen(GetBestPen(1, #RED))The code above sets the pen that most closely resembles red as the drawing pen.