Programming Visual Output



<< move your mouse over the image above! >>

SlidesCodeExamples
Exercise: a) Modify the Array2D example. Make the black hole follow the mouse as in the example above. b) Create a Processing Applet in which at least 3 different geometry forms are moving.
Due 25.10.2015, send it to treyer@arch.ethz.ch.

Array2DFollowMouseSolution.java

How to make Eclipse show explanations of Processing methods:

  1. Download processing-2.2.1-sources.jar
  2. Unzip & move it to your projects/course folder.
  3.  Open Array.java from the Exercise2 project you imported in the course from the CodeExamples download and double click on map on line 28, then right click on that selection you made and select “Open Declaration” as shown in the image below. (Shortcut: Ctrl + Click on map)
    OpenDeclaration
  4. What you will see is an error message saying that the sources are missing. We will add those now by clicking on changeAttachedSource.
  5. By clicking on “External File” in the popping up dialog select the processing-2.2.1-sources.jar file you downloaded before.
    Screen Shot 2015-10-05 at 13.12.07
  6. Now, when you hover over processing methods in eclipse you get an explanation like this:
    processing doc for line function