xxxxxxxxxx
function setup() {
createCanvas(2160, 3840);
background("#780606");
//variables
let hatColor = "black"
let hatWidth = width *(5/12);
let hatHeight = height *(5/128);
let brimWidth = width * (35/216);
let brimHeight = height *(1/64);
let lensDiam = 250;
let frameColor = "#CFD2D8";
//Tophat
fill(hatColor);
ellipse(width * 0.5, height * (9/32), hatWidth, hatHeight);
rect(width * (7/24), height * (217/768), hatWidth, height * (5/48));
ellipse(width * (23/72), height * (91/240), brimWidth, brimHeight);
ellipse(width * (49/72), height * (91/240), brimWidth, brimHeight);
//Glasses
ellipse(width * (175/432), height * (211/384), width * (25/216), height * (25/384));
ellipse(width * (65/108), height * (211/384), width * (25/216), height * (25/384));
stroke(frameColor);
strokeWeight(width/400);
line(width * (25/54), height * (211/384), width * (235/432), height * (211/384));
line(width * (49/108), height * (109/192), width * (239/432), height * (109/192));
line(width * (49/108), height * (109/192), width * (109/216), height * (9/16));
line(width * (109/216), height * (9/16), width * (239/432), height * (109/192));
//Title
textSize(width/20);
fill(0);
text('Django Unchained', width *(65/216), height *(11/12));
}