xxxxxxxxxx
var Schrift_Bold;
var cover;
function preload() {
cover = loadImage("cover.jpg");
Schrift_Bold = loadFont ("Schrift-Bold.ttf");
}
function setup() {
createCanvas(525 , 800);
background (100);
}
function draw() {
background(100);
image(cover, 0, 0);
fill( 16, 115, 197);
noStroke();
rect( 0, 0, 525, 800);
fill(255,255,255);
textFont (Schrift_Bold, 0, 0);
textSize(24);
text("Philosophy in the Twentieth Century Vol 3", 7, 34);
fill(203, 57, 80);
textFont (Schrift_Bold, 0, 0);
textSize(24);
text("Contemporary European Thought", 7, 58);
fill(255,255,255);
textFont (Schrift_Bold, 0, 0);
textSize(24);
text("Edited with introductions by William Barrett", 7, 82);
fill(255,255,255);
textFont (Schrift_Bold, 0, 0);
textSize(24);
text("and Henry D.Aiken", 7, 104);
fill(79,172,237);
textFont (Schrift_Bold, 0, 0);
textSize(14);
text("HARPER & ROW/HR 1563",6,770);
translate(253,265);
println(mouseX);
println(mouseY);
rotate((sin(millis()/1000)*6)/5);
//rotate(sin(millis()/1000)*-5);
//rotate(-1000);
//rotate(0);
translate(-250,-250);
fill(239,224,42);
if(mouseIsPressed)
{ fill(203, 57, 80);
}
push();
noStroke();
quad (256, 262, 62, 373, 256, 482, 444, 370);
pop();
fill(203, 57, 80);
if(mouseIsPressed)
{ fill(255,255,255);
}
noStroke();
translate(0,0);
quad (256, 710, 256, 482, 444, 370, 448, 593);
fill(255,255,255);
if(mouseIsPressed)
{ fill(239,224,42);
}
translate(0,0);
noStroke();
quad (256, 482, 256, 710, 62, 599, 62, 373);
pop();
}