Processing Template

4.564 | Tutorials and Samples (Processing)
write requests to: takehiko@mit.edu
original: 09/02/02 last revised : 10/03/12

Template for Continuous Programming Mode


// interface function you need to fill
void setup( ) {
  // code here executes once

}


// interface function you need to fill
void draw( )  {
  // code here executes repeatedly

}


// example function that has no returned value 
void my_function_1 ( ) {
  // your custom function defined here

}


// example function that returns an integer 
int my_function_2 ( ) {
  // your custom function defined here 
  int result = 0;
  return result;
}


// example function that returns a floating point number 
float my_function_3 ( ) {
  // your custom function defined here
  float result = 1.0;
  return result;
}


Education | Research | Who we are | Gallery | Bookmarks

Copyright © 1996 Takehiko Nagakura
Massachusetts Institute of Technology