xxxxxxxxxx
113
/* Anti-Surveillance Tool, Wesley Chau, 2020 */
let x=0;
let y=0;
function setup() {
createCanvas(600, 600);
}
function draw() {
background(255);
angleMode(DEGREES);
Cookie();
Danish();
if (mouseIsPressed) {
blendMode(MULTIPLY);
fill(255, 0, 255);
rect(mouseX, y, 30, height);
} else {
blendMode(BLEND);
}
}
function Cookie(){
// FORTUNE COOKIE
noFill();
stroke(198, 255, 179);
strokeWeight(4);
line(width/2+25, 200, width/2+100, 450)
push();
beginShape();
curveVertex(width/2+100, 450);
curveVertex(width/2+100, 450);
curveVertex(145, 320);
curveVertex(width/2, 100);
curveVertex(490, 340);
curveVertex(490, 340);
endShape();
curve(120, 50, 490, 340, width/2+70, 350, 10, 10);
curve(550, 100, width/2+100, 450, 145, 320, 400, 100);
pop();
// noStroke();
// fill(255);
// rect(210, 424, 110, 23);
// TEXT
push();
textSize(20);
noStroke();
fill(198, 255, 179);
text('I', 10, 560, 590, 590);
rotate(348);
translate(-120, -10);
text('AM', 30, 560, 590, 590);
rotate(330);
translate(-300, -45);
text('THE', 80, 560, 590, 590);
rotate(350);
translate(-100, 10);
text('AUTHOR', 130, 560, 590, 590);
rotate(40);
translate(300, -280);
text('OF', 240, 560, 590, 590);
rotate(25);
translate(215, -170);
text('MY', 280, 560, 590, 590);
rotate(10);
translate(85, -63);
text('DESIRE', 330, 560, 590, 590);
pop();
}
function Danish(){
//CHEESE DANISH TEXT
for(let x = 0; x <= 1; x = x+300){
for(let y = 0; y <= 600; y = y+14){
fill(255, 0, 255);
noStroke();
textSize(13.7);
textStyle(ITALIC);
text('TO BE DESIRED IS TO BE A CHEESE DANISH', x, y, 600, 600);
text('TO BE DESIRED IS TO BE A CHEESE DANISH', width/2, y, 600, 600);
// rect(x*50, y*50, 50, 50, 20);
// line(x*50+5, y*50+25, x*50+25, y*50);
// arc(x*50+18, y*50+25, 15, 15, 0, 180);
// line(x*50+6, y*50+44, x*50+44, y*50+6);
// line(x*50+25, y*50+50, x*50+50, y*50+25);
// fill(255,0,0);
// circle(x*50+25, y*50+25, 25);
}
}
}