color and pulse period parsing