Circle Expression Challenge

At Pixomondo we have a little challenge going on in our comp department. Fabian Holtz challenged everyone to create a tool by only writing one expression that creates a circle with different size/falloff that can be repeatedly tiled and and also offset. It was quite fun and is just way faster than any combination of nodes could ever be. Here’s how it looks like and the code:

channel r:
size*falloff/hypot((floor(y/(height/amount))%2== 0? (width/2-(x+offset)*amount%width) : (width/2-(x)*amount%width)),(height/2-y*amount%height))-falloff