int dmod = frameCount%510;
int col = dmod<255?dmod:510-dmod;