Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    \$\begingroup\$ +1 but would it be possible for you to explain a little how that code work? In particular i m curious to know how (where in the code) does it pick the colors? \$\endgroup\$ Commented Mar 10, 2014 at 8:40
  • 1
    \$\begingroup\$ @MarkJeronimus, I can make it 70 but I kept some things for clarity. I, thus, took the liberty to ignore the LF when counting. \$\endgroup\$ Commented Mar 10, 2014 at 12:39
  • \$\begingroup\$ @plannapus, OK, added some comments. The color picking is done with (0,?$~99 3) which produces 100 rgb triplets, one for each level. Because of the randomness, you might get less than 100 triplets so some levels will have a smoother transition (but still have different colors). \$\endgroup\$ Commented Mar 10, 2014 at 13:07