Broadcast the visual result of this sketch as a jpg image stream to a websocket. This is a rough proof of concept and is not really ready for easy use - but you can copy and paste parts of it. if it does not work or chrashes your machine, i am not responsible for that! ;)
Oh! And you must have a browser, that supports WebSockets, e.g. Chrome, Chromium or Safari.
It is based on the UDP streaming example from Daniel Shifman you can find here:
http://www.shiffman.net/2010/11/13/streaming-video-with-udp-in-processing/
For the WebSocketP5 functionality you need this library: http://muthesius.github.io/WebSocketP5/websocketP5-0.1.4/
- make sure you have the above mentioned library
- run this sketch
- point your browser to http://localhost:8080
- be amazed and pay respect to the mystic digital things
- write interesting things with this!
TATA!
have fun! :)