SetLayerTransparentPen(id, pen)
id to the pen specified in pen.
Pens are counted from 0.
You need to enable layers before you can use this function. See Layers introduction for details.
SetLayerTransparentPen(1, 4)The code makes pen 4 in the palette of layer 1 transparent.