Skip to content

Latest commit

 

History

History

fifty_shades_of_grey

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
permalink title description
/examples/volume1/fifty_shades_of_grey/
Fifty Shades of Grey (2015) | Minimalist Movie Poster
Minimalist Movie Poster generated using Java and Processing.

Fifty Shades of Grey (2015)

Drama, Romance, Thriller

Plot

Literature student Anastasia Steele's life changes forever when she meets handsome, yet tormented, billionaire Christian Grey.

details

Movie Poster

The code

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

// Fifty Shades of Grey (2015)


final int ROWS = 10;
final int COLS = 5;


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


void draw() {
  
  scale(width/COLS, height/ROWS);

  float dC = 256/50.0;
  
  noStroke();
  
  int index = 50;
  for (int j=0; j<ROWS; j++) {
    for (int i=0; i<COLS; i++) {
      fill(index*dC);
      rect(i, j, 1, 1);
      index--;
    }
  }
  
  save("fifty-shades-of-grey.png"); 
}

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