void setup(){
size(400,900);
background(255);
}
float angle=0;
void drawDNA(float a,float b,float y){
stroke(0);
fill(0);
rect(a,y-3,b-a,5);
stroke(67, 133, 239);
fill(67, 133, 239);
ellipse(a,y,20,20);
stroke(252,47,47);
fill(252,47,47);
ellipse(b,y,20,20);
}
int fromScreen=190;
int multiFact=70;
float anglePlus = 0.04;
int iDiv = 5;
int distanceFromBars = 17;
void draw() {
background(255);
for(float i=0;i<80;i++)
drawDNA(fromScreen+sin(angle+i/iDiv)*multiFact,fromScreen+0-sin(angle+i/iDiv)*multiFact,distanceFromBars*i);
angle+=anglePlus;
}