MdPC

E.T. the Extra-Terrestrial (1982)

Family, Sci-Fi

Plot

A troubled child summons the courage to help a friendly alien escape Earth and return to his home world.

details

Movie Poster

The code

// Manuale di Programmazione Cinematografica
// Daniele Olmisani, 2016

// E.T. the extra-terrestrial (1982)


final color PAPER = color(115, 145, 155);
final color INK = color(125, 75, 20);

final int COLS = 8;

final String SPRITE = 
  "XXXXXXX." +
  "X.XXXXXX" +
  "XXXXXXXX" +
  "XXXXXXXX" +
  "XX....XX" +
  "....XXXX" +
  "...XXXXX" +
  "XXXXXXXX" +
  "X.XXXXXX" +
  "..XXXXXX" +
  "..XXXXXX" +
  "..X...XX" +
  ".XX...XX" +
  "XXX..XXX";


void setup() {
  size(480, 640);
  noLoop();
}


void draw() {
  
  float s = 0.7 * (min(width, height) / (2*COLS));
  float l = SPRITE.length();

  translate((width-2*s*COLS)/2.0, (height-s*l/COLS)/2.0);
  scale(2*s, s);
   
  background(PAPER);
  
  fill(INK);
  stroke(INK);
  strokeWeight(0.02);
  
  for (int i=0; i<l; i++) {
    
    if (SPRITE.charAt(i) == 'X') {
      rect(i%COLS, i/COLS, 1, 1);
    }
  }
  
  save("et-the-extra-terrestrial.png");
}

MdPC - a collection of minimalist movie posters by Daniele Olmisani Please, see LICENSE file