xxxxxxxxxx
/*
Function Drawing
Created 8 Feb 2017
By Tamara sabbagh
tamara.sabbagh@gmail.com
https://www.openprocessing.org/sketch/405183
*/
void setup(){
size(650, 80);
stroke(1);
noLoop();
background(0);
}
void draw(){
int a = 13;
int b = 11;
int c = 25;
bottle(a+c, b);
bottle(a+ 2*c, b);
bottle(a+ 3*c, b);
bottle(a+ 4*c, b);
bottle(a+ 5*c, b);
bottle(a+ 6*c, b);
bottle(a+ 7*c, b);
bottle(a+ 8*c, b);
bottle(a+ 9*c, b);
bottle(a+ 10*c, b);
bottle(a+ 11*c, b);
bottle(a+ 12*c, b);
bottle(a+ 13*c, b);
bottle(a+ 14*c, b);
bottle(a+ 15*c, b);
bottle(a+ 16*c, b);
bottle(a+ 17*c, b);
bottle(a+ 18*c, b);
bottle(a+ 19*c, b);
bottle(a+ 20*c, b);
bottle(a+ 21*c, b);
bottle(a+ 22*c, b);
bottle(a+ 23*c, b);
}
void bottle(int x, int y){
fill(244, 66, 140);
beginShape();
vertex(x,y); //x = 13
vertex(x, y+4);
vertex(x+3, y+4);
vertex(x-2, y+24);
vertex(x-2, y+54);
vertex(x+13, y+54);
vertex(x+13, y+24);
vertex(x+8, y+4);
vertex(x+11, y+4);
vertex(x+11, y);
vertex(x,y);
endShape();
}