Monthly Archives: September 2016

Additional Processing exercises

More little Processing exercises. Not obligatory, just for rehearsing the topics we’ve covered. Example solutions included, but try first on your own. Simple graphics. Create the familiar smiley face using the graphical capabilities offered by Processing. smileyface.pde Variables. Declare two … Continue reading

Posted in Processing | Comments Off on Additional Processing exercises

7. Various bits

Constants Constants look almost exactly like variables, but you can’t modify their content. With the keyword final a variable will turn into a constant, after which you can’t reassing new values to it. It is perfectly ok to use the … Continue reading

Posted in Processing | Comments Off on 7. Various bits

6. Types and conversions

Let’s start with a nice little trick: instead of running your sketch, present it to make it fullscreen (shift-command-r). Decimal numbers (desimaaliluvut) So far we’ve used only int type for our calculations. Often the precision is not enough: for example … Continue reading

Posted in Processing | Comments Off on 6. Types and conversions

5. Functions, keyboard, images

Functions (Funktiot) Also known as procedures or subroutines (aliohjelma) in many languages. They are a way to structure your programs to meaningful wholes for the sake of readability, and to avoid unnecessary copypasting of the same code over and over … Continue reading

Posted in Processing | Comments Off on 5. Functions, keyboard, images

4. Arrays, loops, types, random

Arrays (taulukot) So far we’ve used variables, which let you store single values and work with them. Often we need to process large amounts of data, and single variables aren’t enough for that. Arrays let you store multiple values of … Continue reading

Posted in Processing | Comments Off on 4. Arrays, loops, types, random

3. Flow control

Flow control In numerous cases we need to do things conditionally, a number of times, or until something happens. For those sort of purposes we have different flow control statements: if – do something if a condition is true if-else … Continue reading

Posted in Processing | Comments Off on 3. Flow control

2. Variables (2), math, interaction

Recap of variables. Properties, declaration, assignment. Conflict with reserved words. Simple mathematics in Processing We can use variables for many kinds of calculations, such as addition (+), division (/), subtraction (-) and multiplication (*). In the mathematical statements we can … Continue reading

Posted in Processing | Comments Off on 2. Variables (2), math, interaction

1. Introduction, graphics, variables

Course structure, aims, assessment. A brief history and overview of programming languages (slides). Walkthrough of the Processing user interface. Special characters … and how to type them on a Finnish Mac keyboard. We’ll need many of these when typing in … Continue reading

Posted in Processing | Comments Off on 1. Introduction, graphics, variables

Starting up again

Yet another round of Software Studies for Media Designers is about to begin. These pages will be updated throughout the course with examples, lecture material and so on. For now, you can check the MyCourses page for information on the schedule. … Continue reading

Posted in Uncategorized | Comments Off on Starting up again