tag:support.nodebox.net,2012-11-01:/discussions/nodebox-1/60-triangle-patternNodeBox: Discussion 2018-09-06T13:17:03Ztag:support.nodebox.net,2012-11-01:Comment/394900272016-03-26T21:11:06Z2018-09-06T13:17:02ZTriangle Pattern<div><p>Hi!</p>
<p>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:</p>
<p>1) Create a triangle<br>
2) Create a second one and rotate it<br>
3) Create color for 1)<br>
4) Randoms for the colours</p>
<p>..but my issue is I am not getting to colorize the second triangle within the pattern</p>
<p>Can anyone help me? It seems I am very close!</p>
<p>Thanks!</p></div>pablodespeluzzitag:support.nodebox.net,2012-11-01:Comment/394900272016-03-27T04:22:08Z2016-03-27T04:22:08ZTriangle Pattern<div><p>Hi Pablo,</p>
<p>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.</p>
<p>I am a NodeBox 3 user. I've never tried NodeBox 1, but perhaps
the concepts will transfer.</p>
<p>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.</p>
<p>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.</p>
<p>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.</p>
<p>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.</p>
<p>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!</p>
<p>John</p></div>johntag:support.nodebox.net,2012-11-01:Comment/394900272016-03-27T04:29:22Z2018-09-06T13:17:03ZTriangle Pattern<div><p>John,</p>
<p>THIS IS EXACTLY WHAT I WAS TRYING TO DO!. After I wrote my inquiry I thought more specification will be needed, but no! yo solve it out.</p>
<p>I was working, as soon I receive you email on a re arrangement of all the nodes and I have to say that I was getting closer but not enough!</p>
<p>Thank you form Argentina!</p>
<p>Keep in touch and thanks</p>
<p>Pablo</p></div>pablodespeluzzi