SetLayerPen(id, pen, color)
pen to the color specified by color
in the palette of the layer specified by id.
You need to enable layers before you can use this function. See Layers introduction for details.
SetLayerPen(1, 0, #RED)The code above sets pen 0 to red in the palette of layer 1.