xxxxxxxxxx
81
var customfont;
let font1;
let font2;
let canvas
function preload() {
font1= loadFont('./ApfelGrotezk-Regular.otf');
font2= loadFont('./OFLGoudyStM.otf');
}
function setup() {
canvas = createCanvas(360, 650);
rectMode(CENTER);
}
function draw() {
background(248, 248, 255);
//237, 234, 224 bone color
fill(0)
strokeWeight(0)
quad(0,0,0,490, 360, 455,360,0)
strokeWeight(0);
fill(0);
textSize(20);
textFont(font1);
text('Grace Birch', 70, 555);
textSize(9);
textFont (font2);
text ('gbirch@mica.edu',70, 590);
text('Graphic Design', 70, 575)
stroke(248, 248, 255);
fill(248, 248, 255);
strokeWeight(8);
//top left triangle
triangle(70, 50, 70, 200,180, 180 );
//top right
triangle(180,180,290, 200, 290, 50);
//bottom left
triangle(180, 180, 80, 220, 70, 330);
//bottom right
triangle (180,180, 280, 230,290, 330);
stroke(248, 248, 255);
strokeWeight ()
//rect(180, 180, 30, 30)
//ellipse(180, 150, 30, 30)
triangle(180, 180, 196, 120, 164, 120)
ellipse(180, 240, 30, 125)
//negative space triangle
fill(0);
strokeWeight(0)
triangle (180, 155, 170, 115, 190,115)
//diagonal line
strokeWeight(5)
//stroke(226, 88, 34)
//line(0,420, 360, 520)
stroke(204, 204, 255)
line(0,490, 360, 455)
//226, 88, 34 flame
//204, 204, 255 periwinkle
}
function mouseClicked(){
saveCanvas(canvas, "Week2 Business Card Sketch.jpeg");
}