color = GetLayerPen(id, pen)
pen from the palette of the layer specified by id.
The color will be returned as an RGB color.
You need to enable layers before you can use this function. See Layers introduction for details.
color = GetLayerPen(1, 0)The code gets the color of the first pen of layer 1.