Getting Started Example anomaly

Jim Gracely's Avatar

Jim Gracely

Mar 20, 2014 @ 05:01 PM

Not sure if this is the correct place to post this.

In the Getting Started document (http://nodebox.net/node/documentation/tutorial/getting-started.html) immediately after adding the Colorize node, there is a change in the ellipse pattern: The Shape node is set to 4:30-60, so there should be 4 ellipses in increasing radius from 30 - 60; yet there is now a 5th ellipse with a radius of 30 prior to the cycle repeating (two radius 30 ellipses in a row.) This same anomaly is seen when the polygon is added. I get the same result when I follow the example.

Where is this 5th element of the Shape node coming from?

Thanks!

  1. Support Staff 1 Posted by lucasnijs on Mar 21, 2014 @ 04:46 PM

    lucasnijs's Avatar

    It is because of list matching. There are 5 colors and four ellipses, so the list matching will assign an ellipse for every color, for the fifth color there is no ellipse anymore so it will take the first one again to match the five colours. Then it will start over again until the third list (= the number of grid points) is matched. Just create four colours and you will see the difference.

  2. Support Staff 2 Posted by Frederik De Ble... on Mar 24, 2014 @ 04:42 PM

    Frederik De Bleser's Avatar

    The page how NodeBox works explains list matching.

  3. 3 Posted by Jim Gracely on Mar 25, 2014 @ 05:50 PM

    Jim Gracely's Avatar

    Thanks for the excellent responses! Node programming is new to me, and I can see it is going to take a little getting used to.

Reply to this discussion

Internal reply

        No formatting (switch to Markdown)

          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

            05 Apr 00:20
            03 Apr 16:44
            30 Mar 02:09
            27 Mar 05:25
            24 Mar 21:21

             

            20 Mar 06:07
            20 Mar 02:39
            14 Mar 08:32
            10 Mar 18:36
            10 Mar 18:36
            10 Mar 18:36