Rename color calculation function.