This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const vec3 luma = vec3(0.2126, 0.7152, 0.0722); | |
float round(float a){ | |
return floor(a + .5); | |
} | |
float dither (vec2 fragCoord) { | |
float size = 3.0; | |
return texture(iChannel1, fract(fragCoord / vec2(8.0*size,8.0*size))).r; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import netP5.*; | |
import oscP5.*; | |
OscP5 oscP5; | |
NetAddress remoteIP; | |
void setup() { | |
size(400, 400); | |
frameRate(30); | |