Hello Processing

Lesson — golan @ 6:32 am

For the first part of this course we are going to use Processing and the website openprocessing.org to publish our sketches.
Let’s test the workflow:

  • Go to OpenProcessing and register, possibly using your real name or something similar so I know who you are.
  • Bookmark OpenProcessing.org and our class page.
  • Processing is already installed on the CMU macs; you can find it in the Applications folder. But in case you need to install it on your laptop at home, download the (free!) Processing Integrated Development Environment (IDE) from here and install it.
  • In the Processing code editor, write a simple “hello world” sketch like this one:
size(200, 200);
background(0, 0, 0);
fill(255, 255, 255);
textFont(createFont("SansSerif",18));
textAlign(CENTER);
text("Hello World!", width/2, height/2);

Feel free to modify it.

  • Save the sketch on your computer. It gets saved as a “Sketch” in your “Sketchbook”, a collection of Processing programs kept in your “My Documents” folder.
  • To publish it on OpenProcessing, log in, go to your personal page and click “create new sketch”
  • At this point you may see a random example. Just delete all the code and paste your program.
  • Test it by clicking run (little triangle).
  • Give it a proper name (right panel) and save it
  • Go to our OpenProcessing class page and click “submit a sketch from your portfolio”
  • Click on “Click here to submit this sketch”
  • Drag-and-drop your “hello_world” sketch to the “Assignment 0: Hello World” collection. To drag and drop you have to click on the small icon the bottom right of your sketch’s thumbnail.
  • That’s it! your item will appear in the collection once I approve it.

0 Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2019 CMU Electronic Media Studio II, Fall 2011, Section A | powered by WordPress with Barecity