xxxxxxxxxx
78
var font1
function preload() {
font1=loadFont("./Junction-regular.otf")
}
function setup() {
// business cards have a 3.5:2 ratio
// horizontal
// createCanvas(700, 400);
// vertical
createCanvas(400, 700);
}
function draw() {
background("#FCCE46");
// debugging
// push();
// stroke("red");
// line(0, 400, 400, 400);
// line(0, 500, 400, 500);
// line(0, 600, 400, 600);
// pop();
// fill("red");
noStroke();
push();
fill("#FFD0B3");
strokeWeight(12);
stroke("#A34E19");
rectMode(CENTER);
rect(200, 200, 150, 150)
noFill();
circle(200, 200, 300);
line(100, 100, 300, 300);
line(100, 300, 300, 100);
fill(235, 34, 93);
push()
translate(200,200)
fill("#C76426");
noStroke();
beginShape();
vertex(-10, 10);
vertex(0, 35);
vertex(10, 10);
vertex(35, 0);
vertex(10, -8);
vertex(0, -35);
vertex(-10, -8);
vertex(-35, 0);
endShape();
pop()
pop();
fill("#A34E19");
textFont(font1);
textSize(40);
text("Baslel Addisu", 20, 400 + 30);
textSize(20);
text("basleladdisu.com", 20, 400 + 60);
line
textSize(24);
textFont('Courier New');
text("MICA Graphic Design", 20, 700 - 120);
text("Student", 20, 700 - 90);
text("2024", 20, 700 - 60);
}