Created
February 5, 2019 14:20
-
-
Save n1ckfg/9235271bb997e3cd3a3a371b473c0a6a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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