inicio mail me! sindicaci;ón

RISD

Digital + Media

Archive for Uncategorized

Arrangement in Magenta, Thermochromatic Ink, Tin and Nichrome

Experiments with thermochromatic ink with an underlaying heat grid driven by an Arduino and MAX7219 LED driver. 

more to come soon…

 turned off 

RED

Procedure based poetry:
1.) check the blogs you read daily (or go to blogpulse.com)
2.) search for ” red ”
3.) take the sentence that contains the word red and write it down
4.) repeat step 3 until you have gone through all the returned results on the first page.


import rita.*;

XMLElement xml;
int width = 1100;
int height = 768;
int yPlacement = height/2;

void setup() {
  size(width, height);
  RiText.setDefaultFont("CushingStd-MediumItalic-15.vlw");
  RiText.setFontSize(25);
  RiText rt1, rt2;

  String url = "http://www.blogpulse.com/rss?query=%22+red+%22&sort=date&operator=";
  xml = new XMLElement(this, url);

  XMLElement[] itemNumber = xml.getChildren("channel/item");
  XMLElement[] title = xml.getChildren("channel/item/title");
  XMLElement[] description = xml.getChildren("channel/item/description");
  XMLElement[] source = xml.getChildren("channel/item/source");
  XMLElement[] sourceTime = xml.getChildren("channel/item/pubDate");

  println("There are: " + itemNumber.length + " entries");

  for (int i = 0; i < itemNumber.length; i++) {

    String descriptionText = description[i].getContent();
    String[] sentence = splitTokens(descriptionText, ".");
    String sourceTitle = source[i].getContent();
    String publishTime = sourceTime[i].getContent();
    String sourceURL = source[i].getStringAttribute("url");

    for (int i2 = 0; i2 < sentence.length; i2++) {
        if (sentence[i2].indexOf(" red ") >= 0) {
          println(sentence[i2]);
          println("FROM:  " + sourceTitle + " | Published on: " + publishTime );
          println("URL:  " + sourceURL);
          println(" ");

          yPlacement = yPlacement-50;
          RiText[] lines = RiText.createLines(this, sentence[i2], (height/2)/2/2, yPlacement, 200);

          // Fade Out
           for (int i3 = 0; i3 < lines.length; i3++) {
              lines[i3].fadeOut((i2*5)+1, 5);
            }
      }
    }
  }
}

void draw() {
  background(255);
}