#Tinycode Project

Hosted by the Cloud Lab
Columbia University Graduate School of Architecture, Planning & Preservation.

Tweeting complete Processing sketches, with the limitation of only 140 characters.1 Search for #tinycode or #tc hashtag. What can be made in a single line of code? To run these sketches, paste the code into Processing2 and press 'Run'. You can download Processing here.
1 Limit of a single tweet.
2 Processing.org is a framework for algorithmic visualization and computational sketching. It was created at the MIT Media Lab by Ben Fry and Casey Reas.

The #Tinycode Apps


Drawing App
65 Characters
Posted by @sho000 on 2/16/2011
void draw(){if(mousePressed)line(pmouseX,pmouseY,mouseX,mouseY);}
 


Box Grid
131 Characters
Posted by @proxyToru on 2/17/2011
super.size(99,99,P3D);for(int i=0;i<9;i++){for(int j=0;j<9;j++){pushMatrix();translate(i*15,j*15,9*sin(i));rotate(i*j);box(9);popMatrix();}}
 


HSB Spiral
131 Characters
Posted by @ProxyMark on 2/16/2011
int l=66,j=2;colorMode(HSB,l);translate(50,50);while(j<9){int i=0;while(i<l){i++;rotate(j/55.);fill(i,l,l);ellipse(i,0,9,9);}j++;}
 
, , ,

Rotating Box
129 Characters
Posted by @sho000 on 2/16/2011
void setup(){size(100,100,P3D);noFill();}void draw(){background(255);translate(50,50);rotateY(radians(frameCount%360));box(50);}
 
, ,

Sierpinski Fractal
117 Characters
Posted by @ProxyMark on 2/13/2011
float x,y,r;void setup(){for(int i=0;i<999;i++){r=random(3);if(r>2)x++;else if(r>1)y++;x/=2;y/=2;point(x*99,y*99);}}
 
, ,

Noise World
123 Characters
Posted by @ProxyMark on 2/12/2011
for(int g=0;g<8;g++){for(int i=40;i>=0;i--){for(int j=40;j>=0;j--){
if(noise(i/9.9,j/9.9)>.3+g/9.9)rect(i*5-g,j*5-g,5,5);}}}

 
, , , ,

Gyroid
135 Characters
Posted by @proxyToru on 2/12/2011
int x,y,z;for(x=20;x>-5;x--)for(y=20;y>-5;y--)for(z=0;z<4;z++)
if(cos(x)*sin(y)+cos(y)*sin(z)+cos(z)*sin(x)<0)ellipse(x*6+z,y*6+z,6,6);

 
, , , ,

Tweet Tree
139 Characters
Posted by @ProxyMark on 2/12/2011
void setup(){f(0,.6);}void f(int g,float r){pushMatrix();rotate(r);
line(0,0,0,13);translate(0,15);if(g<9){f(g+1,-r);f(g+1,r);}popMatrix();}

 
, , , ,

Contributors


@ProxyMark Mark Collins is co-director of Proxy, an innovation-focused design firm working across a range of scales and platforms. Mark is as an adjunct assistant professor at the Columbia University Graduate School of Architecture where he co-directs the Cloud Lab.

@proxyToru Toru Hasegawa is co-director of Proxy. Toru investigates the culture of innovation and technology in architecture as an adjunct assistant professor at the Columbia University Graduate School of Architecture Toru is a co-director of the Cloud Lab.

@sho000 Shohei Matsukawa. Principal, 000studio | Visiting Scholar, Harvard GSD | twilog.org/sho000 | togetter.com/id/sho000 http://000studio.com
 
Please direct all inquiries to inquiry @ thecloudlab dot org
Copyright 2010 thecloudlab.org