Skip to content

Latest commit

 

History

History
55 lines (31 loc) · 725 Bytes

File metadata and controls

55 lines (31 loc) · 725 Bytes

At start of your main file

// IMPORT THE SPOUT LIBRARY
import spout.*;
// DECLARE A SPOUT OBJECT
Spout spout;



…your code

In setup() function

void setup() {

  // PROJECTION SIZE
  size (7000, 1200, {});

  // WINDOW POSITION
  surface.setResizable(true);
  surface.setLocation(0, 0);

  // CREATE A NEW SPOUT OBJECT
  spout = new Spout(this);

  // GIVE THE SENDER A NAME
  // A sender can be given any name.
  // Otherwise the sketch folder name is used
  // the first time "sendTexture" is called.  	
  spout.setSenderName("MappingFestival");



  …your code
}




void draw()  {

    …your code



    // Send the texture of the drawing sufrface
    spout.sendTexture();
}