// 2 examples mixed up and adapted/designed: // Background example from Processing (example "Colour - Creating") // Painting example importet from DBN and adapted (example "painting") void draw() { size(200, 200); // Background design: color inside = color(100); color middle = color(200); fill(middle); rect(10, 10, 50, 50); fill(inside); rect(120, 90, 60, 95); // Originaltext von DBN-Beispiel mit pers. Anpassungen: // Painting with the mouse // mouseX is the x position of the mouse // mouseY is the y position of the mouse // mousePressed is 100 if the button is clicked, 0 if not -Was ist das und wie macht man das? // Wie macht man die versch. Strichfarben? DBN: pen