Jump to content

How to generate color with Loop Index


Cool-LV

Recommended Posts

QUOTE(Anders Björk @ Nov 20 2007, 04:17 PM)

"Make a arrray of RGB values choose value from them" ???

No no no, if I have thousands of color want to display, that is a crazy action. is any generation automatically? an arithmetic would be appreciated.

Link to comment

QUOTE(Anders Björk @ Nov 20 2007, 04:17 PM)

"Make a arrray of RGB values choose value from them" ???

No no no, if I have thousands of color want to display, that is a crazy action. is any generation automatically? an arithmetic would be appreciated.

Link to comment

QUOTE(Cool-LV @ Nov 21 2007, 12:35 AM)

I don't see what's crazy about that at all. That's exactly what I'd do.

There's a list of several thousand different colors (with names!) here. It wouldn't be terribly difficult to write a VI to parse the RGB values out of that page and create an array with their values. Use that array as a constant in a color-lookup function, and you're done.

If you only need a couple hundred decent colors, you could also work from LabVIEW's 221 valid icon colors. It's trivial to generate those programmatically. You can also do the same thing with web-safe colors and get roughly the same result.

Link to comment

QUOTE(Cool-LV @ Nov 21 2007, 12:35 AM)

I don't see what's crazy about that at all. That's exactly what I'd do.

There's a list of several thousand different colors (with names!) here. It wouldn't be terribly difficult to write a VI to parse the RGB values out of that page and create an array with their values. Use that array as a constant in a color-lookup function, and you're done.

If you only need a couple hundred decent colors, you could also work from LabVIEW's 221 valid icon colors. It's trivial to generate those programmatically. You can also do the same thing with web-safe colors and get roughly the same result.

Link to comment

QUOTE(Cool-LV @ Nov 20 2007, 11:35 PM)

"Make a arrray of RGB values choose value from them" ???

No no no, if I have thousands of color want to display, that is a crazy action. is any generation automatically? an arithmetic would be appreciated.

I don't know how much you need to differentiate the colors, but thousands of colors will become difficult to easily distinguish.

And I agree that a table lookup provides a very nice implementation to your stated problem.

David

Link to comment

QUOTE(Cool-LV @ Nov 20 2007, 11:35 PM)

"Make a arrray of RGB values choose value from them" ???

No no no, if I have thousands of color want to display, that is a crazy action. is any generation automatically? an arithmetic would be appreciated.

I don't know how much you need to differentiate the colors, but thousands of colors will become difficult to easily distinguish.

And I agree that a table lookup provides a very nice implementation to your stated problem.

David

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.