Skip to content

Instantly share code, notes, and snippets.

View JuriaanGregor's full-sized avatar

Juriaan JuriaanGregor

  • The Netherlands
  • 05:51 (UTC +02:00)
View GitHub Profile
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;
}
@JuriaanGregor
JuriaanGregor / Example.pde
Created July 19, 2017 22:48
Processing and OSC
import netP5.*;
import oscP5.*;
OscP5 oscP5;
NetAddress remoteIP;
void setup() {
size(400, 400);
frameRate(30);