We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I added noLoop(), background(), but they all do not work to deal with this problem.
https://dropbox.com/s/u3ki3oebsu4tus6/sketch_142_part1_animation_.zip?dl=0
PImage b;
PShape s;
PShape m;
PShape fup;
float x = 0;
float y = 0;
void setup() {
size(1080, 720);
frameRate(25);
b = loadImage("background.png");
s = loadShape("stars.svg");
m = loadShape("moon.svg");
fup = m.getChild("fup");
//noFill();
}
void draw() {
///background(0);
image(b, 0, 0);
shape(s);
shape(m);
//y+=0.9;
/**for(int x=0;x<width/3;x+=30){
for(int y=0;y<height;y+=3){
shape(fup,x,y);
if ( x=width/3){
shape(fup,width/3,y);
}
}
}*/
for (int x=0; x<=width/3; x+=30) {
for (int y=0; y<390; y+=5) {
if (x<width/3) {
shape(fup, x, y);
} else {
shape(fup, width/3, y);
}
}
}
}