How to choose the screen to use in Fullscreen mode

edited November 2014 in Library Questions


Im working with Processing 2.2.1 on mac OSX 10.9.5.

I've been trying to use 2 projectors with different images. Haven't found a solution for that in the forums and after extensive googling. My approach so far is, to make syphon clients for each frame, like this:

import codeanticode.syphon.*;

PGraphics canvas;
SyphonClient client;
//start with: open --args --dislpay=1
public void setup() {
  //size(displayWidth,displayHeight, P3D);
  // Create syhpon client to receive frames 
  client = new SyphonClient(this,"lichtraum","right");

public void draw() {    
  if (client.available()) {
    canvas = client.getGraphics(canvas);
    image(canvas, 0, 0, width, height);    

and then i would like so send them the images via syphon from the main sketch. Cool thing is, that i can restart the main sketch and change stuff, while the receivers will just keep their last images. My Problem is now, that i cant get the receivers to start on a specific screen! I would like to do this from the terminal:

open --args --display 0

but the sketch just starts on screen 1, no matter what i do. this must be trivial, i can't imagine that i am the first person to encounter this problem. what's the solution for that?

thanks in advance!

Sign In or Register to comment.