For this assignment I want to make a T-shirt full of flowers to create a spring vide T-shirt for the spring. When the winters coming springs are not far….
So by create a model of print picture with full of flowers i start with processing.
1 Draw a flower add a pot in the middle
strokeWeight (10.0);
stroke(color(255,0,0));
translate(50,50);
for(int i=0;i<10;i++){
rotate(TWO_PI/10);
line(0,0,30,0);
}
ellipse(0,0,15,15);
2 Add color
strokeWeight (10.0);
stroke(color(255,0,0));
translate(50,50);
for(int i=0;i<10;i++){
rotate(TWO_PI/10);
line(0,0,30,0);
}
strokeWeight(0);
fill(color(255,255,0));
ellipse(0,0,15,15);
3 Set up random color
int getRandomColor(){
return color(random(120,255),random(255),random(255));
}
void setup(){
strokeWeight (10.0);
stroke(getRandomColor());
translate(50,50);
for(int i=0;i<10;i++){
rotate(TWO_PI/10);
line(0,0,30,0);
}
strokeWeight(0);
fill(getRandomColor());
ellipse(0,0,15,15);
}
4 Set up the size of flower
int getRandomColor(){
return color(random(120,255),random(255),random(255));
}
void setup(){
float flowerSize = 15.0;
strokeWeight (flowerSize);
stroke(getRandomColor());
translate(50,50);
for(int i=0;i<10;i++){
rotate(TWO_PI/10);
line(0,0,3*flowerSize,0);
}
strokeWeight(0);
fill(getRandomColor());
ellipse(0,0,1.5*flowerSize,1.5*flowerSize);
}
5 Get a bigger canvas
int getRandomColor(){
return color(random(120,255),random(255),random(255));
}
void drawFlower(float x, float y, float flowerSize){
strokeWeight (flowerSize);
stroke(getRandomColor());
translate(x,y);
for(int i=0;i<10;i++){
rotate(TWO_PI/10);
line(0,0,3*flowerSize,0);
}
strokeWeight(0);
fill(getRandomColor());
ellipse(0,0,1.5*flowerSize,1.5*flowerSize);
}
void setup(){
drawFlower(20,50,5.0);
}
6 Set up random color
int getRandomColor(){
return color(random(120,255),random(255),random(255));
}
void drawFlower(float x, float y, float flowerSize){
strokeWeight (flowerSize);
stroke(getRandomColor());
translate(x,y);
for(int i=0;i<10;i++){
rotate(TWO_PI/10);
line(0,0,3*flowerSize,0);
}
strokeWeight(0);
fill(getRandomColor());
ellipse(0,0,1.5*flowerSize,1.5*flowerSize);
}
void setup(){
size(800,600);
background(0);
}
void draw(){
if(keyPressed == true){
drawFlower(random(width),random(height),random(5,25));
}
}
Then push play we have the print picture with full of flowers for the shirt.
Because the colors and sizes are random so every time we play it and get the print picture will look different, so each of the flower vibe T-shits will be one and only.

Then add more designs on the shirt . And print it out.

And here we are a unique “Flower Vibe” T-shirt.
