In Illustrator, the pen tool can be changed to change the color of the pen. To do this, open the Pen Tool panel and click on one of the colors in the palette. Then, drag the pen to a new location and release. The color will be changed according to what you have selected in the Pen Tool panel.