Fixed problem with calculating color spread

Modular arithmetic operator wasn't working as expected, added check for < 0 to compensate