A pen that includes a marking device for marking a visible path onto a first surface. The marking device is electronically controllable to change a value of an attribute of the path such as color, line width, texture, or line spacing. A position sensing device or motion sensing device is connected to the marking device using a controller. An optical sensing device is also connected to the controller for sensing an attribute of a second surface. The controller is operable to change the value of the attribute of the path on the first surface so as to replicate the attribute of the second surface.