added a cached sin function from the processing app
altered how the pixel buffers change