I want to generate some vector graphic op art, kind of like Bridget Riley’sstuff. The one I’m interested in is very similar to this one.

Ultimately, I’d like it to consist of rectangles with widths of

ABS(SIN( (i+1)*PI()/32)-SIN( (i)*PI()/32) ) for i = 0 to 64

I know this can be done in Mathematica, but I was wondering if there is free software out there that can do this for me without much cost or effort.

I imagine that since it’s just describing rectangles, it might be possible to do in in postscript or html or something like that. I’m an incompetent programmer who last seriously wrote code in c some 20 years ago.

I’d like to be able to generate one repeating square block of it and import the vector graphic into Illustrator. Alternatively, it would be fine to generate an entire image, so long as it ends up in a mainstream vector format.