xxxxxxxxxx
PShape x, y;
void setup() {
shapeMode(CENTER);
size(600, 600);
background(0,0,0);
// The file "x1.svg" must be in the data folder
// of the current sketch to load successfully
int generate_x=(int)random(1, 33);
int generate_y=(int)random(1, 33);
x = loadShape(generate_x+".svg");
y = loadShape(generate_y+".svg");
noLoop();
}
void draw() {
x.disableStyle();
y.disableStyle();
fill(255, 255, 255); // Set the SVG fill to blue
stroke(255); // Set the SVG fill to white
shape(x, width/3, height/3 , 150, 150);
shape(y, 2*width/3, height/3, 150, 150);
rect(width/3-50, 2*height/3+30, width/2, 50);
saveFrame("dpOfTheDay.jpg");
}