xxxxxxxxxx
Flower[] myFlower=new Flower[100];
PFont font;
float fx;//Flower pattern x
float fy;//flower pattern y
float fd;//size of flower
color hb;//flowers
color hx;//flower heart hue
float H1;//hue value 1
float H2;//hue value 2
float B;//Brightness
void setup() {
size(1024, 768);
colorMode(HSB, 360, 100, 100);
noLoop();
font=loadFont("Brush Script.ttf", 30, 200);
textFont(font, 128);
}
void draw() {
background(random(360), 100, 250);
for (int i=0; i<myFlower.length; i++) {
fx=random(width);
fy=random(height/4, height/1.5);
fd=random(40, 80);//Large and small flowers
H1=random(0, 360);
H2=random(0, 360);
B=random(90, 100);
hb=color(H1, 100, B);//flower color 1
hx=color(H2, 100, B);//flower color 2
myFlower[i]=new Flower(fx, fy, fd, hb, hx);
textSize(40);
//fill(int(random(360)),100,100,3);//misty color
//rect(0,0,width,height);
}
text("ALLES GUTE ZUM MUTTERTAG", 50, 50);
//println(petals, a, petalsd, d);
}
void mousePressed() {
loop(); // Holding down the mouse activates looping
}
void mouseReleased() {
noLoop(); // Releasing the mouse stops looping draw()
}