Add angle-offset calculation to rainbow mode.