Do you know what you want to program them in to? If you want to use a microcontroller you have a few ways to go about doing this:
-use a chip with an array of darlington transistors and control a pair of stepper motors, this is fairly difficult but would give you precise control over position and motion
-use two H-bridges each consisting of 2 pnp and 2 npn transistors and control a pair of DC motors, this would give you control over speed of motion but poor control of position without reading the position back to the controller with an encoder. These would need to be very geared down to get slow steady motion.
-use a servo, power it with the red and black wires and give it a signal with a pwm output from the microcontroller on the white/yellow/purple wire. This would give you good positional control but only a little control over the speed of motion.
Obviously i haven't given you all you need on any of these options, and it may not be what you want, but if these are what you are looking for I've given you enough to find some of the many tutorials available on the subject. And if its not what you were looking for just add some more detail and I or someone else will probably help you out more.