first commit

This commit is contained in:
2020-06-12 23:49:11 +02:00
commit ea19e5ad2a
214 changed files with 43291 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package background;
import basis.Bild;
import basis.Farbe;
import basis.Fenster;
import basis.Hilfe;
public class Background {
private Fenster fenster;
private Bild NAME;
private String PATH = "createBackground/background/res/Baum.png";
private int dichte = 1000;
public Background() {
fenster = new Fenster(Hilfe.monitorBreite(), Hilfe.monitorHoehe());
fenster.setzeTitel("Dichte: "+ dichte);
fenster.setzeHintergrundFarbe(Farbe.rgb(22, 136, 0));
fenster.setzeSichtbar(false);
for (int i = 0; i < dichte; i++) {
NAME = new Bild(PATH);
NAME.setzeGroesse(NAME.breite()/4, NAME.hoehe()/4);
NAME.setzePosition(Hilfe.zufall(0,fenster.breite()), Hilfe.zufall(0,fenster.hoehe()));
}
fenster.setzeSichtbar(true);
}
public static void main(String[] args) {
Background back = new Background();
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB