Category Archives: Students

subjective clock

Hours are represented by a horizontal/RGB pixel scale (one pixel=1 hour), minutes are represented by a vertical/GRAYSCALE pixel scale (one pixel= 5 minutes) and seconds are represented by a diagonal/BINARY pixel scale (60 blinks per minute). Grayscale bar moves along the RGB scale, pointing to an hour pixel and binary scale moves along the grayscale, pointing to a minute pixel.

Also posted in Exercises, Int Programming, Martin Lukac | Comments closed

programming exercise 02

Also posted in Exercises, Int Programming, Martin Lukac | Comments closed

programming exercise 01_flags

Also posted in Exercises, Int Programming, Martin Lukac | Comments closed

flags

The first exercise of programming fundamentals (together with Cristobal Castilla) was to code flags, which introduced us what processing and programming is and how to get images out of range of numbers and letters. There were 16 flags to make. For example, that’s how Catalan flag looks like in code:

void setup() {
size (190, 120);
}
void draw(){
noStroke();
fill(255,223,58);
rect(0, 0, 190, 120);
fill(255,12,13);
rect(0,13,190,14);
fill(255,12,13);
rect(0,40,190,14);
fill(255,12,13);
rect(0,67,190,14);
fill(255,12,13);
rect(0,94,190,14);
}

And these are all flags made by Processing:





Also posted in Exercises, Gerda Antanaityte, Int Programming | Tagged , , , | Comments closed