Below is the code to the first assignment.
PImage img;
void setup() {
size (500, 550);
background (#0F1015);
img=loadImage(“hi.JPG”);
}
void draw() {
image(img, 130, 150);
image(img, 130, 150, width/2, height/2);
frameRate(4);
if (mouseX>100);
translate(mouseX, mouseY);
textSize(25);
text(“peace”, 10, 15);
fill(random(150, 255), random(150, 255), random(150, 255));
} //<>//