xxxxxxxxxx
67
let l1,l2;
let a1, a2;
function preload() {
a1 = loadImage("A1.png");
a2 = loadImage("A2.png");
}
function setup() {
createCanvas(850, 550);
pixelDensity(1);
l1 = new Riso("black");
l2 = new Riso("metallicgold");
a1 = halftoneImage(a1, 'line', 5, 45, 127);
a2 = halftoneImage(a2, 'line', 5, 45, 127);
a2rev = createGraphics(425,550);
a2rev.scale(-1,1);
a2rev.image(a2,-425,0,425,550);
a1rev = createGraphics(425,550);
a1rev.scale(-1,1);
a1rev.image(a1,-425,0,425,550);
noLoop();
}
function draw() {
background(255, 253, 230); //set the on screen background to be white
// black circle
// l1.push();
// l2.push();
l1.fill(200);
l1.image(a1, 0, 0, 425, 550); // draw layer1
l2.fill(100);
l2.image(a2rev, 0, 0, 425, 550); //draw justblues to blue layer
l1.cutout(l2);
// l1.pop();
// l2.pop();
// l1.push();
// l2.push();
l1.fill(200);
l1.image(a2, 425, 0, 425, 550);
l2.scale(1,1);
l2.fill(125);
l2.image(a1rev, 425, 0, 425, 550); //draw justblues to blue layer
l2.cutout(l1); // cut text out of black
// l1.pop();
// l2.pop();
l2.circle(width/2,height/2,400);
drawRiso();
exportRiso();
}