Sechs Kursabende à vier Stunden an der EB Zürich
Kurskonzeption und Leitung Hanna Züllig
/* Autor: Masus Meier Kurs: Einblick in die generative Gestaltung mit processing ip971241 Kursleitung: Hanna Zuellig Veroeffentlicht unter der creative common license Attribution-NonCommercial-ShareAlike CC BY-NC-SA http://creativecommons.org/licenses/ */ int[] data; PFont font; color c; float center_x, center_y; float x, y; void setup() { size(700,700); colorMode(HSB, 360, 100, 100, 100); center_x = width/2; center_y = height/2; color bg = color(0, 0, 100); background(bg); smooth(); // The text from the file is loaded into an array. String[] datenstring = loadStrings("sketches/kurstag05/Masus_Meier2/data/zahlen.txt"); // This array has one element because the file only has one line. // Convert String into an array of integers using ',' as a delimiter data = int(split(datenstring[0], ',' )); font = loadFont("sketches/kurstag05/Masus_Meier2/data/TrajanPro-Regular-18.vlw"); // Bitmap-Bildchen, erzeugt mit Tools > Create Font ... textFont(font); // textSize(12); // ---------------- for(int i=0;i