incremental Color

am wondering if there is a way to access computer timing and manipulating it as a timer input to cycle a lamp color rgb input?