Skip to content

Instantly share code, notes, and snippets.

@n1ckfg
Created February 5, 2019 14:20
Show Gist options
  • Save n1ckfg/9235271bb997e3cd3a3a371b473c0a6a to your computer and use it in GitHub Desktop.
Save n1ckfg/9235271bb997e3cd3a3a371b473c0a6a to your computer and use it in GitHub Desktop.
import processing.net.*;
Client client;
void setup() {
size(960, 540, P3D);
client = new Client(this, "vr.fox-gieg.com", 8080);
client.write("GET / HTTP/1.0\r\n");
client.write("\r\n");
}
void draw() {
background(0);
if (client.available() > 0) {
String data = client.readString();
println(data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment