Toggle using iterator

Converted to toggle using an iterator, switched toggle between rgb.