void draw(){ background(0, 0, 255); }void mousePressed() { link( “http://tiny.cc/DbdIM” ); }
Andy Best had a fun idea last week: write Processing sketches inside of a tweet. Here’s his original tweet promoting the idea: @peterkirn How about a whole processing sketch in 140 characters?, and his first attempt: int c,f;void setup(){size(640,480);c=0;f=255;colorMode(HSB);}void draw(){background(color(c,f,f));ellipse(320,240,c,c);c=(c++>255)?0:c;}. He then posted some more on his Twitter feed as well as on his blog.
So last Friday, we decided to take him up on his offer and explore Twetching™ during our Friday meetup at the Atelier Hypermédia.
Here are a few examples of code with links to their authors:
float i;PImage a=loadImage("http://tiny.cc/Rdn0Z","jpg");void draw(){i+=0.01;translate(50,50);rotate(i);scale(sin(i)2);image(a,-250,-250);} //@destaouel
import ddf.minim.;AudioPlayer player;Minim minim;minim=new Minim(this); player=minim.loadFile("http://tinyurl.com/cty59k");player.play(); //@FlorentDeloison
float x,y,t;int h=100;void setup(){size(h,h);h/=2;t=0;}void draw(){x=h(sin(9t+1)+1);y=h(sin(8t)+1);point(x,y);t+=0.01;t%=TWO_PI;} //@benoitespinola
int c;void draw(){frameRate(c%120+1);background(++c%2==0?0:255);} //@tomekjarolim
void draw(){for(int i=3;i<500; i+=random(0,i)){rect(3+i,i,i%24,i%34);}} //@budoubuda
float x=2,i=random(1),y=2,j=random(1);void draw(){background(0);ellipse(x+=i,y+=j,10,10);if((x>99)||(x<1))i=-i;if((y>99)||(y<1))j=-j;} //@benoitespinola
float j;void setup(){size(99,99,P3D);}void draw(){j=second();rotateZ(j);translate(j,j);fill(j*4,j*3,j*2,j);box(10);} //@FlorentDeloison
float i,j;void setup(){size(99,99,P3D);}void draw(){j=random(0.1,1);rotateZ(i+=0.1+j%1); translate(i+j,i+j);fill(j*300);box(10*j);} //@FlorentDeloison
PFont f=createFont("Serif",25);background(0);textAlign(CENTER);textFont(f);text("vendredi 13 février 1984",1,1,99,99); //@destaouel
void draw(){for(int i=0;i<500; i++){rect(3+i,random(0,100),10+i,10);}} //@budoubuda
int u=100;int v=0;void setup(){size(u,u,P3D);}void draw(){background(0);v=++v%u;for(int i=0;i<1000;i++){curve(0,50,i,i*2+v,i*4,i*2+v,u,u);}} //@AmmmO
void draw(){for(int i=0;i<width;i++){colorMode(HSB);noStroke();fill(random(255),255,255);ellipse(random(width), random(height),4,5);}} //@ destaouel
int x,y;int c=-16777216;void draw(){frameRate(600);if(c>-1)c=-1;stroke(c);point(x,y);c++;x++;if(x>100){x=0;y++;}if(y>100)y=0;} //@tomekjarolim
void draw(){background(0);for(int i=0;i<100;i=i+2){stroke (random (0,255),random (0,255),random (0,255));line (i,i,i,1);line (i,i,1,i);}} //@FlorentDeloison
int i;void draw(){color[]c=new color[3];c[0]=color(255,0,0);c[1]=color(0,255,0);c[2]=color(0,0,255);background(c[i]);i=++i%3;} //@tomekjarolim
int c=-16777216;void draw(){if(c>-1)c=-1;background(c);c++;} //@tomekjarolim
PImage i=loadImage("http://tiny.cc/RpZTS","jpg");void setup(){size(743,1155);image(i,0,0);rect(315,335,40,1);} //@abstractmachine
void draw(){colorMode(HSB);stroke(millis()%360,28*9,255);line(mouseX,mouseY,pmouseX,pmouseY);copy(0,0,width,height,-5,-5,width+9,height+9);} //@abstractmachine
String[] s=loadStrings("http://tiny.cc/2W8tj");println(s); //@abstractmachine
The whole process was a lot of fun, and an excellent pedagogic exercise. We only played around for about an hour, which was probably enough. But I have a feeling we will be doing more « exercises » like this in the future. We do a lot of theory in class, and try to mix that up with play, technical information, project critique, and open discussions. Since what the Atelier Hypermédia basically does is treat code as a « plastic » material, useable in any artistic context (i.e. considering the code itself a possible form of artistic exploration), games like this are really what we are all about. But I was struck by the level of mastery students displayed of the basic rules of Java syntax, and the collective part of the session was a real eye-opener on how good the students have gotten at collective coding. Talking about code is a Good Thing™®, coding with ten or more hands in and Even Better Thing™®. Just afterwards we had a great session with a young artist presenting her project, the exercise being: how would you develop her installation ? There too, the students showed a great capacity at collectively designing the project, even when discussing the complex details of the code. The trick, apparently, is playing such arcane and thick subjects fast and loose, and thereby ignoring the preciousness of the form itself of the code, and doing it collectively, and as a form of play. It’s an intellectual bait and switch which in the end allows for a rigorous form of play.




















[...] Edric Stanley has written an interesting post on his blog about Andy Best fun idea last week to write Processing sketches inside of a tweet. [...]
Pingback by Twittering Processing Sketches [Processing] at CreativeApplications.Net — 17 February, 2009 @ 22:07 pm
This is really cool. There are so many “let’s do it in 140 characters!” ideas – this one is really a good exercise.
You could make an installation at an exhibition that automatically receives, compiles and runs Twetches..all day long (well, at least until some funny person sends endless loops).
Comment by partikelfernsteuerung — 17 February, 2009 @ 22:16 pm
[...] denn: Bei abstractmachine wurden einige sehr schöne Processing-Programme veröffentlicht, die in nur 140 Zeichen Code [...]
Pingback by Kurzer Prozess « partikelfernsteuerung — 17 February, 2009 @ 22:29 pm
[...] abstractmachine » void draw(){ background(0, 0, 255); }void mousePressed() { link( “http://tiny.c… (tags: http://www.abstractmachine.net 2009 mes1 dia18 processing twitter meme legal *****) [...]
Pingback by rascunho » Blog Archive » links for 2009-02-18 — 18 February, 2009 @ 21:03 pm
[...] abstractmachine » void draw(){ background(0, 0, 255); }void mousePressed() { link( “http://tiny.c… [...]
Pingback by Bruno Campagnolo de Paula weblog » Resumo do dia para 2009-02-18 — 19 February, 2009 @ 04:18 am
The “at least until some funny person sends endless loops” part of the previous comment by partikelfernsteuerung is important.
I hope that you remind your students that play has its limits. It might be reasonably safe in the sandpit in your local park, but you shouldn’t play on the road. Similarly, daddy’s power tools are not toys. Remember: computers (especially networked computers) are powerful tools and subject to harmful results through their misuse.
Any “artist” or player should rightly expect their “installation” to be shut down or otherwise heavily abused if open to unfiltered/untrusted content.
Comment by subpixel — 20 February, 2009 @ 21:00 pm
Well, as for play having it’s limits, and double-quoted “artists” dismembering themselves with Oedipal power tools, I don’t know if I give into your rhetoric. I could very well throw that back at you and suggest that one ought to know the basics of form and composition, the difference between pastiche and kitch, and the various dialectics of their interplay before throwing sketches up on to YouTube. Everyone’s got their own meaning of amateur and professional — careful where you walk there.
But if it is “responsibility” you seek, yes, you can rest reassured that I am sufficiently paranoid about networked computers and just taught a 3-day workshop with the very same students where it was constantly question of being sufficiently paranoid when building systems connected to the Internet, and most of all, server-side scripting. I’m a little less paranoid about client-side computing (ex: installations) — that said, allowing your computer to be turned into a drone can put you at serious risk, especially if you’re on Windows. Obviously, script-kiddies and red-meat hackers alike will give little care as to nature of the site; whether you be Microsoft or peaceonearth.com, you will get hacked.
However, to belabor the previous point: there are no absolutes, just as art is not produced in a vaccuum. The nature of things are of great interest to us, in all their complexity. As such we will always reserve the right, as artists yes, to explore all aspects of the beast, including misuse. But again, clearly, if that is not the objective of the piece, then a good dose of paranoia is always good to have at hand when working on yer good ol’ Internets.
Comment by Douglas Edric Stanley — 21 February, 2009 @ 08:23 am
You’ve restored my confidence that the paranoia is… included, and it is perhaps just that the relatively “uninteresting” side of computing (eg network security) isn’t likely to be talked about as much on a site that is about the “interesting” stuff (eg interactive graphical widgets).
In any case, my point was that adult play, just as child play, has limits or dangers, and the example of an endless loop for the art installation idea is probably one of the lesser dangers.
To err is human, to really f*** things up, you need a computer.
A side effect of this notion is that someone else can really mess you up with a computer, maybe your own! :o)
-spxl
Note: “artist” (with the quotes) was used as a shorthand for any person who might produce such a work, whether they consider themselves to be an artist or otherwise.
Comment by subpixel — 23 February, 2009 @ 04:32 am
Nice work ! As you wrote in the past “Programming Is Fun” — You have forgotten to say “with you”.
Comment by Jean-Michel — 3 March, 2009 @ 19:09 pm
[...] about the evolving nature of this latest fad beast. Twitter is not just one thing, as our recent 140 character sketches hopefully made clear. People are using it as a chat service, I used it last summer as my own [...]
Pingback by abstractmachine » Goodnight Sweet Tweets — 20 April, 2009 @ 12:23 pm
[...] an interesting exercise. As people have done with Processing for Twitter-coded graphics, the tiny 140-character limit means the challenge of trying to do more [...]
Pingback by Create Digital Music » Twitter Everywhere: More Tweet a Sound, SuperCollider Code, Richie Hawtin + Traktor — 30 April, 2009 @ 17:29 pm
[...] be done in processing in 140 characters. Which is really cool. But there’s something about this post that makes me feel really tiny and stupid. Which I am. [...]
Pingback by The Most Exciting Blog Post That I’ve Not Managed to Understand in the Slightest | crackunit.com — 30 April, 2009 @ 21:15 pm
[...] an interesting exercise. As people have done with Processing for Twitter-coded graphics, the tiny 140-character limit means the challenge of trying to do more [...]
Pingback by Twitter Everywhere: More Tweet a Sound, SuperCollider Code, Richie Hawtin + Traktor | Speakear — 1 May, 2009 @ 06:01 am
some more : http://twitter.com/emoc/status/1673868440 + http://twitter.com/emoc/status/1673185369 + http://twitter.com/emoc/status/1673169569
Comment by emoc — 2 May, 2009 @ 00:16 am
[...] be done in processing in 140 characters. Which is really cool. But there’s something about this post that makes me feel really tiny and stupid. Which I am. [...]
Pingback by The Webby Awards Present WebbyConnect — 14 May, 2009 @ 02:02 am
hey, I created a page to collect sketches that are tagged with hash tag #twskc from twitter, pass them through processingjs, and display it on the page among the code.
http://www.openprocessing.org/labs/twskc/
Comment by sinan ascioglu — 18 May, 2009 @ 22:35 pm
Hey everyone, we just launched a competition “Tiny Sketch” within this concept: Can you create a cool sketch under 200 characters, winner to get $200? Brought to you by Rhizome.org and OpenProcessing.org. http://www.openprocessing.org/collections/rhizome.php
Comment by Sinan Ascioglu — 11 August, 2009 @ 22:46 pm
[...] http://www.abstractmachine.net/blog/p5-tweets/ [...]
Pingback by Introdução à Programação 1 e 2 (2009) » Divulgação: 200 Character Processing Competition (até 13/9/2009) — 12 August, 2009 @ 15:31 pm
[...] http://www.abstractmachine.net/blog/p5-tweets/ [...]
Pingback by Bruno Campagnolo de Paula weblog » Divulgação: 200 Character Processing Competition (até 13/9/2009) — 12 August, 2009 @ 16:24 pm
Really nice posts. I will be checking back here regularly.
Comment by Kelli Garner — 26 September, 2009 @ 01:10 am
Truly inspiring. I even made my own: void draw(){int x=width,y=height;stroke(200+sin(frameCount.5)5);point((y/2)+random(-5,5),(x/2)+random(-5));copy(0,0,x,y,-5,-5,x+9,y+9);}
A 138 character flight thru the clouds.
Comment by Pjotor — 18 March, 2010 @ 16:14 pm
[...] 推特电脑绘图: http://www.abstractmachine.net/blog/p5-tweets/ [...]
Pingback by 微博艺术 | 撒把盐 — 10 November, 2010 @ 13:44 pm
another one: PFont f=createFont(“”,90);int n;void draw(){textFont(f);fill(random(255),random(255),random(255));filter(BLUR,2);text(char(n),5,90);n++;}
Comment by plus tard — 12 September, 2011 @ 12:20 pm
wholesale nike shoes
Comment by lvcilfirxvlzoy — 10 April, 2013 @ 05:06 am
Pretty portion of content. I just stumbled upon your weblog and in accession capital to claim that I get in fact loved account your blog posts.
Any way I’ll be subscribing on your feeds or even I fulfillment you get admission to persistently fast.
Comment by google — 12 May, 2013 @ 10:40 am