Completed color algorithm