Monthly Archives: November 2009

CC1 Animationsbeispiel von heute

0
Filed under cc1, input
boolean gehtRechts = true;
boolean gehtUnten = true;

float x = 100;
float y = 100;
float radius = 5;

void setup() {
  size(480, 320);
  smooth();
  background(0);
}

void draw() {
  background(0);
  ellipse(x, y, radius*2, radius*2);
  // größe des fensters: breite = width, höhe = height
  if(x >= width - radius) {
    gehtRechts = false;
  }
  if(x < radius) {
    gehtRechts = true;
  }

  if(y >= height - radius) {
    gehtUnten = false;
  }
  if(y < = radius) {
    gehtUnten = true;
  }
  if(gehtRechts == true) {
    x = x + mouseX*0.1;
  }
  else {
    x = x - mouseX*0.1;
  }
  if(gehtUnten == true) {
    y = y + mouseY*0.1;
  }
  else {
    y = y - mouseY*0.1;
  }
}

without Titel von LIA

0
Filed under cc1, referat

A software machine exploring the boundaries of control. ^^

(Viktoria Michailowa)

Flocking

0
Filed under cc1

Boids

Simple Flocking Boids with Processing.

http://processing.org/discourse/yabb2/YaBB.pl?board=Syntax;action=display;num=1193175897

grass referat pjiron

0
Filed under uncategorized

grass

Referat pjiron

0
Filed under uncategorized

http://portfolio.barbariangroup.com/nextfest/index.html

Audiosurf – Kurzreferat

0
Filed under referat, tipps

Audiosurf ist ein Computer-Musikspiel aus dem Jahre 2008. Ziel des Spieles ist es, ein Raumschiff auf einer mehrspurigen Rennstrecke zu lenken und dabei farbige Blöcke taktisch richtig durch Überfahren einzusammeln. Strecke, Blöcke und Geschwindigkeit generieren sich aus den Charakteristika des vorher ausgewählten Musikstückes. Dabei ist es möglich jede vorhande Musikdatei auszuwählen, welche beim Spielen synchron zum Streckenverlauf abgespielt wird.

Übrigens: Dieses Spiel hat nichts mit Processing zu tun, sondern soll lediglich als Inspiration für generierte Verknüpfung von Musik und Bild dienen.

Perlin Noise Beispiel

0
Filed under cc1, input

Bild 23

Hier der Code des Noisebeispiels basierend auf Perlin Noise:

void setup() {
	size (1024, 768);
	background (255);
	noStroke ();
	fill (0);
	smooth();
}

void draw() {
	background(255);

	for (int x=0; x < 200; x++) {
		for (int y=0; y < 200; y++) {
			ellipse	(x * 5,
					 y * 5,
					noise ((x + mouseX) * 0.05) * 10,
					noise ((y + mouseY) * 0.05) * 10
					);
		}
	}
}

CC1 – Referate für den 27. November

0
Filed under cc1, referat

Nächste Woche gibt’s wieder Referate. Und zwar von folgenden Leuten:
Klasse A

  • Lukasz Kus
  • Viktoria Michailowa
  • Kurt Mayer-Günther
  • Ahu Dural
  • Julia Kehr-Ritz

Klasse B

  • Pénelope Jiron
  • Karina Langemeier
  • Veronika Montag
  • Jin Hwan Seol
  • Jan Bernd Stroetmann

Auch hier gilt wieder: Postet eurer Projekt vor Freitag hier im Blog (Bild + ein bis zwei Beschreibungssätze)!

Advanced Beauty

0
Filed under referat

HD Trailer Click Here 

All Vidz On: YouTube

Beispiel Source

0
Filed under cc1, input
PFont schrift;
float textX, textY, linienDicke, altesTextX, altesTextY;
String wort = "";
color farbe = color(50, 200, 0);

void setup() {
  size(640, 480);
  schrift = loadFont("ArnoPro-Smbd-48.vlw");
  textFont(schrift, 24);
  background(255);
  smooth();
  textX = 320;
  altesTextX = 320;
  textY = 50;
  altesTextY = 50;
}

void draw() {
  noStroke();

  // das wort zeichnen
  fill(255);
  rect(0, 430, width, 480);
  fill(0);
  textFont(schrift, 16);
  text(wort, 10, 450);
}

void keyPressed() {
  // den gedrücken buchstaben an das vorhandenene wort setzen
  wort = wort + key;

  // die linieneigenschaften ändern
  if(key == 'a') {
    textX = textX + 30;
    textY = textY + 12;
  }
  else if ( key == 'r') {
    textX = textX + 15;
    textY = textY - 14;
  }
  else if ( key == 'c') {
    linienDicke = linienDicke + 5;
  }
  else if ( key == 'e') {
    if(linienDicke > 2) linienDicke = linienDicke - 2;
    textX = textX + 5;
    textY = textY + 10;
  }
  else if ( key == 't') {
    farbe = color(200, 0, 0);
  }
  else if ( key == 'i') {
    textX = textX - 28;
    textY = textY + 28;
  }
  else if ( key == 'v') {
    farbe = color(50, 200, 0);
     textX = textX - 9;
    textY = textY - 18;
  }
 else if ( key == 'o') {
    farbe = color(200, 200, 120);
    textX = textX - 9;
    textY = textY + 18;
  }
  else if ( key == 'm') {
    linienDicke = linienDicke + 10;
    textX = textX - 19;
    textY = textY - 18;
  }
  else if ( key == 'n') {
    if(linienDicke > 10) linienDicke = linienDicke - 10;
    textX = textX + 29;
    textY = textY - 18;
    ellipse(textX, textY, linienDicke*3, linienDicke*3);
  }
  else {
    textX = textX + random(-15, 15);
    textY = textY + random(-15, 15);
  }

  // die linie zeichnen
  stroke(farbe);
  strokeWeight(linienDicke);
  line(altesTextX, altesTextY, textX, textY);
  altesTextX = textX;
  altesTextY = textY;

  strokeWeight(.5);
  line(0, textY, textX, textY);

  textFont(schrift, 24);
  text(key, textX, textY);
}