Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import codeanticode.syphon.*;
SyphonServer server;
PImage img;
float R;
float G;
float B;
long lastChange1;
int blinkRate1 = 500;
boolean ledState1;
void setup()
{
size(270, 270, P3D);
//savedTime = millis();
smooth();
img = loadImage("slogan.png");
server = new SyphonServer(this, "Processing Syphon");
}
void draw()
{
if(millis()-lastChange1 > blinkRate1)
{
R = random(255);
G = random (255);
B = random (255);
fill(R, G, B);
ledState1 = !ledState1;
lastChange1 = millis();
}
rect(0, 0, width, height);
image(img, 0, 0);
server.sendScreen();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.