Code in 2009

Tumm Mutt

25_tummmuttconcept1.png

25_tummmuttconcept2.png

25_tummmuttconcept3.png

25_tummmuttconcept4-1.png

25_tummmuttconcept5.png

25_tummmuttconcept6.png

Concept art for TummMutt, spacetime shepherd dog. Below is the Processing code:

import processing.pdf.*;

int w = 6000;
int h = 600;
int r;
int x=0;
int y=0;
int dy=0;
int prevX =0;
int prevY=0;
int prevR=0;
int origY=0;
color bk_color;
color fg_color;

void setup() {
  size(w, h);
  beginRecord(PDF, "/Users/shawn/Desktop/TummMuttConcept1.pdf");
  smooth();
  noLoop();
  noStroke();
} 

void draw() {
  y = int(random(h-r*2)+r*2);
  origY = y;
  fill(0x000066,10);
  beginShape();
  vertex(0,y);
  prevY=y;
  while (x < w) {
    r = int(random(50)+20);
    if ((x+r)>w) {
    r = w-x;
     }
     x = x+r;
     fill(0x000066,10);
     bezierVertex(prevX+prevR,prevY-prevR,x-r,y-r,x,y-r);
     fill(random(255),random(255),random(255),128);
     ellipse(x, y, r*2,r*2);
     fill(random(255),random(255),random(255),128);
     rect(x-r, y, r*2, h-y);
     prevX=x;
     prevY=y;
     prevR=r;
     dy = int(random(h/2)-h/4);
     if (((y+dy)>(h-r*2))||(y+dy<r*2)) {
       dy = -dy;
     }
     y = y+dy;
  }

  vertex(w,h);
  vertex(0,h);
  vertex(0,origY);
  endShape();
  endRecord();

}

Laughing Dice | Modkit Prototype Board

Shawn Wallace