xxxxxxxxxx
95
let font1, font2;
let mic;
let c;
function preload(){
font1 = loadFont("./Mattone-Bold.otf")
font2 = loadFont("./MaziusDisplay-Extraitalic.otf")
}
function setup() {
c = createCanvas(600, 400);
mic = new p5.AudioIn();
mic.start();
}
function draw() {
//stroke(0);
let vol = mic.getLevel();
background(255);
//background(100,160,100);
//stroke(60,10,75);
stroke(235,210,250);
strokeWeight((vol*1000)+5);
//strokeWeight(18);
noFill();
strokeCap(SQUARE);
translate(90,180);
line(50,50,50,height);
strokeCap(ROUND);
arc(75,50,50,50,PI,TWO_PI);
line(100,50,100,100);
arc(112.5,100,25,25,0,PI);
line(125,100,125,50);
arc(150,50,50,50,PI,TWO_PI);
strokeCap(SQUARE);
line(175,50,175,height);
translate(152,0);
line(50,50,50,height);
strokeCap(ROUND);
arc(75,50,50,50,PI,TWO_PI);
line(100,50,100,100);
arc(112.5,100,25,25,0,PI);
line(125,100,125,50);
arc(150,50,50,50,PI,TWO_PI);
strokeCap(SQUARE);
line(175,50,175,height);
strokeCap(ROUND);
translate(118,-80);
line(-50,-300,100,180)
arc(112.5,180,25,25,0,PI);
line(125,180,275,-300);
translate(-(145+152-18),0);
strokeWeight(.5);
//fill(60,10,75);
fill(50,100,50);
stroke(50,100,50);
textSize(26);
translate(-60,-175);
//text('mmvandenberg.com',330,25,width,height);
textSize(75);
strokeWeight(2);
translate(0,150);
textFont(font2)
text('Marley',5,0,width,height);
text('Maxine',5,60,width,height);
text('V.',5,120,width,height);
textFont(font2)
strokeWeight(1);
textSize(20);
//text('hiiiii',0,-30,width,height);
textSize(28);
text('mmvandenberg.com',330,300);
textFont(font1)
textSize(20);
textAlign(RIGHT);
text('Fine Arts',-50,-40,width,height);
text('Design',-50,-10,width,height);
text('Sound',-50,20,width,height);
textAlign(LEFT);
text('443',5,250);
text('900',5,275);
text('8157',5,300);
strokeWeight(0);
fill(255,255,255,100);
translate(-30,-110);
//text('blahblahblahblahblahblahblahblah',0,0);
}
function mouseClicked(){
saveCanvas(c,'drawdraw2.jpeg');
}