color(t) is now total time, not duration