Feb 01 2010 | 11:19 pm

Obviously, I'm deep in gl.mesh right now. I have gotten how to make a mesh of rectangles of varying size (thanks to Andrew's Shatter example), but I'm assuming there is some way to make a similar grid of circles with the polygon draw mode. I have seen posted (more than once) Andrew's snippet of making a row of circles, basically starring this expression:

[jit.expr @expr sin(snorm[0]*PI) cos(snorm[0]*PI 0.]

our rectangle maker looks like this:

[jit.expr @inputs 2
@expr (cell[0]%4.>0.)*(cell[0]%4.]
(cell[0]%4>1)*in[1] "0."]

so I see we're using a factor to pick basically corners of a square in the example above, but is it possible to integrate the two, so that in each grid item, you're generating a circle rather than a square?

M