Simple 2D parametric pattern help (beginner)

Hello anyone that can help me!

I am very very new to grasshopper and am trying to manipulate a defined pattern within a shape (chair back). It is going to be knit so it only has to be two dimensions.

Parameters:
– Base shape pattern is a 16x5mm shape
– 5mm row space and 5mm column space
– Row and Column space need to be constant
– As the pattern goes to the edges of chair back I want the main shapes to shrink horizontally and vertically
– i.e. as the pattern goes towards the top of the chair back the height of the main shape decreases
– i.e. as the pattern goes towards the sides of the chair back the width of the main shape decreases
– The change of the size of shape needs to be in increments of 1mm

I attached an image of the pattern on the chair back, the pattern itself, and then a visualization of this idea (note: the visualization is the incorrect pattern but is what i am going for, radiating out from the center)

Any and all help is appreciated on how to start this project, I am at a bit of a loss!

Thank you!

– Chris



what about the space between the shapes?
does it have to be constant 5mm despite the shapes decreasing?

Yea exactly both the row and column space need to be constant at 5mm