xxxxxxxxxx
40
function setup() {
createCanvas(1200, 800);
img = loadImage('1.png'); //loading image
}
function draw() {
background(60,150,200);//colour of background
image(img, 700, 200);//image size/position
image(img, 660, 100, img.width *4, img.height *4);//2nd image size + position
stroke(0,200,255)
strokeWeight(13)
line(0, 130, 1900, 1400);//draw a line
line(10, 100, 140, 100)//line1
line(140, 250, 140, 100)//line2
line(140, 250, 300, 250)//line3
line(300, 250, 300, 400)//line4
line(470,400, 300, 400)//line5
line(470,400, 470, 550)//line6
line(640,550, 470, 550)//line7
line(470,400, 470, 550)//line8-e
line(470,400, 470, 550)//line9-e
point(800, 200)//draw a point
fill(0,30,100)//colour of rectangle
rect(100,200,90,90)//draw rectangle
fill(0,30,100)//colour of rectangle
rect(650,570,70,70)//draw rectangle
stroke(60,150,200)//line colour
strokeWeight(2)//line thickness
fill(60,150,200)//colour of circle
ellipse(752, 44, 72, 72);//draw circle
stroke(130,160,190)
strokeWeight(7)
fill(180,200,240)
rect(30,450,380,330)//draw rectangle
textSize(23);
text('insert', 90,500);
fill(0, 102, 153);
text('text', 90,550);//insert title
}