LGTM. fmod is more correct if you get values further away from 0/1. Regarding multithreading, that doesn't matter here, all threads render different pixels, the node graph is evaluated entirely by one thread always. http://codereview.appspot.com/5447073/