![Nodebox network data](https://loka.nahovitsyn.com/140.jpg)
Create a negate node and send sum1 to it.Right-click on Size port of slice1, choose “Publish” and call it ‘size’.Right-click the accumulation node and select ‘Edit Children’.This means we have to negate the number and send it to a make point node. The idea is that the value can be used to push the y coordinate of each rectangle up based on the combined height of his predecessors. In addition I want to create a point based on this number. I want to be able to send a number to the Size of slice1 so I need to publish this specific parameter. Let’s get back to the child nodes to implement a few modifications. You can now give the network a new name.Right-click one of them and choose “group into network”.Select slice1 and sum1 by dragging over them.Let’s create a subnetwork to store this function and enable to send a range of numbers to it. We will do this as many times as there are numbers in random_numbers2. Try it out and notice that the sum is higher with a higher size. We can do this by changing the Size value of slice1. The idea is to make a sommation netwerk that returns the sum value for 0, 0-1, 0-2, 0-3, 0-4 and so on. Create a sum node and connect slice1 to it.Create a slice node and set Start-index to 0.0 and Size to 1.0.We will have to create a procedure to stack them on each other with reference to their height value. The result is ten rectangles all on top of each other. Change the strokecolor to white and enter 1.0 as the Strokewidth. Create a colorize node and connect rect1 to it.Connect it to Amount of random_numbers1 and of random_numbers2.Create a number node and set Value to 10.0.Connect random_numbers1 to Height port of rect1.Connect random_numbers1 to Width port of rect1.Set Start to 20 and End to 50 of random_numbers2.Set Start to 1 and End to 50 of random_numbers1.Pointing to the same seed would result in a square but I want rectangles with a different width and height.
![nodebox network data nodebox network data](https://www.nodebox.net/node/documentation/using/animation-wave-c.png)
Set Seed of the first one to 0 and to 1 for the second one. Since I want the ability to change width and height parameters of this rectangle I will create a random number and use its’ seeding principle to change its’ value. I want to be able to tell each tower how many segments it contains and i want to be able to reset the width and height of each segment. Suppose we want to make a network that stacks building blocks (represented as simple rectangles with a difference in width and height) on top of each other. We’ve covered a few of them before (f.e the arab tiling principle). Nodebox is ideal for creating generative design. Learn about random: to learn how randomness works in NodeBox.Creating Generative Design First things first.
![Nodebox network data](https://loka.nahovitsyn.com/140.jpg)