xxxxxxxxxx
let pg;
let v = 800;
function setup() {
createCanvas(v, windowHeight);
// pg = createGraphics(v, v-100);
pg = createGraphics(v*0.6,v*0.6);
noLoop();
}
function draw() {
pg.background(255, 241, 208);
pg.drawingContext.shadowOffsetX = 15;
// pg.drawingContext.shadowOffsetY = -15;
pg.drawingContext.shadowBlur = 200;
pg.drawingContext.shadowColor = color(255, 252, 49,300);
pg.noStroke();
pg.fill(221, 28, 26);
pg.circle(pg.width / 2, pg.height / 2, 200);
// eye
pg.fill(255);
pg.stroke(106, 107, 131);
pg.strokeWeight(3);
pg.circle(250,180,50);
pg.circle(200,180,50);
// pupil (of eye)
pg.fill(0);
pg.noStroke();
pg.circle(240,170,20);
pg.circle(190,170,20);
for (let j = 0; j < 50; j += 10) {
for (let i = 0; i < 50; i += 10) {
let x = i * 15;
let y = j * 15;
// image(pg, 150, 150);
// image(pg, 0, 0, 155, 155);
image(pg, x-20, y-50, 255, 255);
}
}
}