xxxxxxxxxx
39
function preload() {
font = loadFont('jaw.ttf');
}
function setup() {
createCanvas(400, 600);
textAlign(CENTER);
textFont(font);
noStroke();
}
function draw() {
// swimmer
fill(192, 2, 14);
rect(155,145,95,10);
// upper white box
fill(255,5);
// no title
// fill(185, 210, 250,120);
rect(0,0, width, 150);
// water
fill(141, 174, 227,50);
rect(0,150,width,height);
// shark
fill(255,100);
triangle(width/2, height/2, width*0.15, height,width*0.85, height);
// title
fill('red');
textSize(120);
text('JAWS',width/2,120);
}