Name
SetLayerPen -- change layer palette pen (V9.0)
Synopsis
SetLayerPen(id, pen, color)
Function
This function sets the color of the pen specified by 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.

Inputs
id
identifier of layer
pen
pen you want to modify (starting from 0)
color
new color for the pen, must be specified as an RGB color
Example
SetLayerPen(1, 0, #RED)
The code above sets pen 0 to red in the palette of layer 1.

Show TOC