PROCESSING


Processing is a Java-based programming language. The project was initiated in 2001 by Ben Fry (Massachusetts Institute of Technology) and Casey Reas (University of California, Los Angeles). It is designed primarily for the creation of graphics, animations, multimedia applications, but not only. Thanks to the possibility of writing programs in this environment in Java, algorithms with a high degree of difficulty and sophistication can be implemented. In Processing language you can achieve great visual effects by simplifying complicated and laborious graphic programming in Java, in which Processing is implemented. Processing is being developed as an Open Source project (www.processing.org). It is distinguished by its almost ascetic syntax structure and, at the same time, by its great effectiveness. In the Processing language environment it is also possible to create Java programs and applets. It allows you to create applications for Windows, MacOs, Linux and Android. For Windows it is enough to download the .zip package for 32 or 64-bit version and after unpacking you can start the program immediately without any installation. In Linux, download the tar.gz package and in the console type tar xvfz processing-xxx.tgz, where xxx is the program version number, e.g. 3.0. Then go to the correct directory (cd processing-xxx) and run the program with the ./processing command. In Mac OS, proceed as in Windows, but after unpacking the .zip file, drag the program to the Applications folder, and if this is not possible, to the desktop.



  PROGRAMME STRUCTURE (example)

   void setup() // initiating function
  {
  size(800,800); // the size of the graphic window
  vstrokeWeight(1); // the thickness of the pen
  noFill(); // lack of filling
  noLoop();
  }
  void draw()
 //the drawing procedure is performed repeatedly,
 //until the window is closed, the noLoop()
 //function eliminates repetition
  {
  int px=300, py=300, co=5;
  for (int i=50; i>1; i--) circle(px,py,i*co);
  }
  void circle(int a, int b, int r) //own procedure
  {
  ellipse(a,b,r,r);
  }