The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.
I`m new on NodeBox and I am trying to solve out something very simple. I want to create a pattern of triangles with just 2 positions: 1 up 1 down. The main idea of it is making a pattern of different colours. I managed myself reading all the tutorials to:
Create a triangle
Create a second one and rotate it
Create color for 1)
Randoms for the colours
..but my issue is I am not getting to colorize the second triangle within the pattern
Can anyone help me? It seems I am very close!
Thanks!
JO
JOjohn
Hi Pablo,
It sounds like you are very close, but I can't tell from your description exactly what your problem is. I can say in general that if you create a list of triangles you also have to create a list of (different) colors. Otherwise all of your triangles, whether up or down, will get the same color.
I am a NodeBox 3 user. I've never tried NodeBox 1, but perhaps the concepts will transfer.
I am attaching a NodeBox 3 network and a screenshot that shows how to produce a randomly colored tessellation of up and down triangles. It only requires 7 nodes - which might correspond to 7 functions in NodeBox 1.
The copy node produces a pair of triangles, one up, one down, translated so that they perfectly overlap. These pairs are then repeated across a grid of 13 columns and 8 rows sized so that they fit together into a continuous tessellation.
The random and hsb_color nodes produce a fixed number of random colors, in this case 10. When the list of 104 (13*8) triangles are combined with the 10 colors in the colorize node, those 10 colors repeat until all triangles have been colored.
If you generated 2 colors instead of 10, all the up triangles would be one color and all the down triangles would be the other color. If you generated 104 colors, each triangle would be a different color.
Hope this helps! If not, you might want to attach your NodeBox 1 code so that other NodeBox 1 users can get a better idea of what you are trying to do. OR you might consider switching to NodeBox 3!