<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OM 2010 &#187; ChrisBusch</title>
	<atom:link href="http://ifdblog.org/ba-om2010/author/chrisbusch/feed/" rel="self" type="application/rss+xml" />
	<link>http://ifdblog.org/ba-om2010</link>
	<description></description>
	<lastBuildDate>Wed, 23 Jun 2010 10:22:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Übungsaufgabe Schrift</title>
		<link>http://ifdblog.org/ba-om2010/ubungsaufgabe-schrift/</link>
		<comments>http://ifdblog.org/ba-om2010/ubungsaufgabe-schrift/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 20:40:57 +0000</pubDate>
		<dc:creator>ChrisBusch</dc:creator>
				<category><![CDATA[Teilnehmer]]></category>

		<guid isPermaLink="false">http://ifdblog.org/ba-om2010/?p=730</guid>
		<description><![CDATA[<img src="http://ifdblog.org/ba-om2010/wp-content/uploads/2009/10/chris_b_typo.png" alt="Linien" width="340" height="255" />]]></description>
			<content:encoded><![CDATA[<p>Eine weitere Übungsaufgabe: Typographie. Typographisch noch<br />
nicht sehr wertvoll, aber es ging um das Laden und Nutzen von<br />
Fonts in Processing.</p>
<p>&lt;- deswegen gibt es da nichts zu sehen:</p>
<p>es ist leider nicht möglich, createfont direkt im browser laufen<br />
zu lassen ohne die processingfontdatei. </p>
<pre> <code>
PFont myFont;
int x = 100;
int counterA;
int counterB;
int counterC;
int counterI;
char currentCharA;
char currentCharB;
char currentCharC;
char currentCharI;
String[] Zitat = new String [3];
int m = 0;
int k = 0;
int i = 0;
int f = 45;
int posX = int(random(width-50)+25);
int posY = int(random(height-50)+20);
int z = int(random(0,5));

void setup(){
  size(640,480);
  frameRate(25);
  myFont = createFont("Monaco",30,true);
  textFont(myFont);
  textAlign(CENTER);
  smooth();
  Zitat[0] = " Farbe ist Leben, ";
  Zitat[1] = " denn eine Welt ohne Farben ";
  Zitat[2] = " erscheint uns wie tot. ";

}

void draw(){
  fill(0,10);
  rectMode(CENTER);
  rect(width/2,height/2,width,height);
  int  r[] = {200,  15,240,110,  0,240,220,165, 60,  0,145,255};
  int  g[] = { 15,  15,220,  0,150,110, 55,  0,  0, 90,190,175};
  int  b[] = { 15, 200,  0,110, 50,  0,  0, 55,170,120,  0,  0};
  fill(r[z],g[z],b[z]);
  text(currentCharA,mouseX-Zitat[0].length()/2*30+counterA*18,mouseY);
  currentCharA = Zitat[0].charAt(counterA);
  if (counterA &gt;= Zitat[0].length()-1) {
    text(currentCharB,mouseX-Zitat[1].length()/2*15+counterB*18,mouseY+30);
    currentCharB = Zitat[1].charAt(counterB);
    if (counterB &gt;= Zitat[1].length()-1) {
      text(currentCharC,mouseX-Zitat[2].length()/2*25+counterC*18,mouseY+60);
      currentCharC = Zitat[2].charAt(counterC);
      if (counterC &gt;= Zitat[2].length()-1) {
        counterA = 0;
        counterB = 0;
        counterC = 0;
        z = int(random(0,11));
      }
      counterC++;
    }
    else{
      counterB++;
    }
  }
  else{
    counterA++;
  }

  if (mousePressed){
    int  FarbeR[] = {  0,255,255,255,  0,  0};
    int  FarbeG[] = {255,  0,255,  0,255,  0};
    int  FarbeB[] = {255,255,  0,  0,  0,255};
    String Kontext[] = {" Itten was wrong! "," CMYK "," Lab "," HSV ", " HLS ", " LUV "," RGB" };
    fill(FarbeR[m], FarbeG[m], FarbeB[m],50);
    text(currentCharI,(posX-Kontext[k].length()/2)+counterI*18,posY);
    currentCharI = Kontext[k].charAt(counterI);
    if (counterI &gt;= Kontext[k].length()-1) {
      counterI = 0;
      posX = int(random(width-50)+25);
      posY = int(random(height-50)+20);
      k = int(random(0,6));
      m = int(random(0,5));
    }
    else{
      counterI++;
    }
  }
}
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://ifdblog.org/ba-om2010/ubungsaufgabe-schrift/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Übungsaufgabe Strahlen</title>
		<link>http://ifdblog.org/ba-om2010/strahlung-chris/</link>
		<comments>http://ifdblog.org/ba-om2010/strahlung-chris/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 10:35:36 +0000</pubDate>
		<dc:creator>ChrisBusch</dc:creator>
				<category><![CDATA[Teilnehmer]]></category>

		<guid isPermaLink="false">http://ifdblog.org/ba-om2010/?p=695</guid>
		<description><![CDATA[<img src="http://ifdblog.org/ba-om2010/wp-content/uploads/2009/10/chris_b_strahlen.png" alt="Linien" width="340" height="255" />]]></description>
			<content:encoded><![CDATA[<p>Das Ergebnis zu einer der Processingübungsaufgaben.</p>
<p>Wie kann man sehr viele Linien zeichnen, ohne jede Linie einzeln,<br />
von Hand zu setzen und diese durch eine Formel variabel umformen.</p>
<p><code></p>
<pre>
//Variablen
int meinRot = 0;
int meinBlau = 0;
int meinGruen = 0;
int c = 0;
int r = 7;

void setup(){
  smooth();
  frameRate(25);
  size(640,480);
  background(0);
  noCursor();
}

void draw(){
  noStroke();
  fill(0,15);
  rectMode(CENTER);
  rect(width/2,height/2,width,height);

  strokeWeight(3);
  for (int i = 0; i &lt;= 640; i = i+40) {
    for (int j = 0; j &lt;= 480; j = j+40) {
      int meinRot = 0;
      int meinBlau = 0;
      int meinGruen = 0;
      c++;
      if(c == r){
        meinRot = (int)(255f * i / width);
        meinGruen = (int)(255f * j / height);
        meinBlau = (255);
        c = 1;
        r = int(random(5,10));
      }
      stroke(meinRot,meinGruen,meinBlau);
      drawHalfWay(i, j);
    }
  }
}

void drawHalfWay(int theX,int theY){
  int myHalfX = getAverage(mouseX, theX);
  int myHalfY = getAverage(mouseY, theY);
  line(myHalfX, myHalfY, theX, theY);
}
int getAverage(int theA, int theB){
  int myHalfWay = ((theA + theB)/2);
  return myHalfWay;
}
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://ifdblog.org/ba-om2010/strahlung-chris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Me, Myself and I.</title>
		<link>http://ifdblog.org/ba-om2010/chris/</link>
		<comments>http://ifdblog.org/ba-om2010/chris/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 12:55:25 +0000</pubDate>
		<dc:creator>ChrisBusch</dc:creator>
				<category><![CDATA[Teilnehmer]]></category>

		<guid isPermaLink="false">http://ifdblog.org/ba-om2010/?p=499</guid>
		<description><![CDATA[<img src="http://ifdblog.org/ba-om2010/wp-content/uploads/2009/10/chris_b.jpg" alt="Chris" width="340" height="255" />]]></description>
			<content:encoded><![CDATA[<p>Ich und ich und ich und ich. </p>
<p>Ein kleines Video aus 6 Bildern, welches Dank guter<br />
Komprimierung zu klein für den Videohoster war.</p>
]]></content:encoded>
			<wfw:commentRss>http://ifdblog.org/ba-om2010/chris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
