Triangle Pattern

pablodespeluzzi's Avatar

pablodespeluzzi

26 Mar, 2016 09:11 PM

Hi!

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:

1) Create a triangle
2) Create a second one and rotate it
3) Create color for 1)
4) 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!

  1. Support Staff 1 Posted by john on 27 Mar, 2016 04:22 AM

    john's Avatar

    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!

    John

  2. 2 Posted by pablodespeluzzi on 27 Mar, 2016 04:29 AM

    pablodespeluzzi's Avatar

    John,

    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.

    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!

    Thank you form Argentina!

    Keep in touch and thanks

    Pablo

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

01 Oct, 2024 07:59 AM
30 Sep, 2024 11:37 PM
30 Sep, 2024 11:11 AM
30 Sep, 2024 02:37 AM
28 Sep, 2024 10:33 AM

 

26 Sep, 2024 06:41 AM
24 Sep, 2024 12:32 AM
24 Sep, 2024 12:27 AM
13 Sep, 2024 12:07 AM
12 Sep, 2024 11:54 PM
07 Sep, 2024 05:16 AM