Hello - how would I go about converting the following from Processing into openFrameworks? I know it involves using vectors which I struggle with and also the processing sketch uses a thick line which doesn’t work well in oF. They can be changed rectangles with rounded ends.

float[] x=new float[50];

float[] y=new float[50];

float[] stretch = new float[50];

color[] colors = new color[50];

float speed=.4;

color[] Color = {#F01DC9, #0ABDED, #FFFFFF, #17AD9F};

void setup() {

size(960, 540);

strokeWeight(20);

for (int i=0; i<x.length; i++) {

x[i]=random(-100, 800);

}

}

void draw() {

background(0);

for (int i = 0; i < x.length; i++) {

for (int j=0; j<y.length; j++) {

x[i]=x[i]+speed;

y[i]=y[i]+speed;

stroke(colors[i]);

line(x[i], y[i], x[i]+stretch[i], y[i]+stretch[i]);

if (x[i] > 1000 ) {

x[i] =random(-100, -100);

y[i] =random(-800, 800);

stretch[i] = random(15,50);

colors[i] = Color[int(random(Color.length))];

}

}

}

}