Skip to content

Creative Coding Processing Repo for Mapping Festival **Play with code** students projects

Notifications You must be signed in to change notification settings

azertypow/20230501-Mapping_Festival-Play_with_code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
}

About

Creative Coding Processing Repo for Mapping Festival **Play with code** students projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published