-
Notifications
You must be signed in to change notification settings - Fork 1
Home
If you can complete this before the workshop, great!
Please don't use any of the later or earlier versions.
You can install the latest Peasycam from within Processing via the menus
Sketch > Import Library... > Add Library...
- The goal of the workshop is to produce a 3D visualization of a toy dataset of Twitter status
- The main way I will test your understanding of the material covered so far is to ask you to tweak the code examples I give in some way to change the output
- If you're stuck - don't worry! The workshop is designed to give you a taste of what's possible with Processing and to encourage you to follow up if you find it interesting.
- Download the code examples for this workshop from https://github.com/eamonnbell/dcip-workshop/archive/master.zip
- Unzip this file to somewhere handy and navigate to the
ex0subfolder. - Double-click on
ex0.pdeto open the Processing sketch.
A Processing sketch is not just a single file. It's:
- a main sketch file: SKETCH_NAME.pde
- other .pde files defining custom classes
- other .java files and data files
- ...all inside a folder that has to be called SKETCH_NAME
You can think of Processing as a subset of Java. So if you know Java, you know most Processing syntax. If you don't, no worries!
❓ Before you run the
ex0sketch, what do you think it does?❓ Run the
ex0sketch with the menu (or Ctrl-R). What does it do?
print_ln() is a function. We know that 'cause it has parentheses in the mix. It takes stuff and sends it to the "console", which is the lower part of the Processing environment.
📖 Modify the code so that it sends the text
Hello world!to the console ten times in a row. Be as clever or as straightforward as you like.