Cool-LV Posted November 21, 2007 Report Share Posted November 21, 2007 Dear all, how to generte the color with loop index, and the color can be differentiated by our eyes ? thanks @! the goal is the same as chart or graph's plot color, when add a plot, it can generate a new color. Quote Link to comment
Anders Björk Posted November 21, 2007 Report Share Posted November 21, 2007 Make a arrray of RGB values choose value from them. Colorbrewer has alot of different color maps http://www.personal.psu.edu/cab38/ColorBre...er_updates.html for instance Quote Link to comment
Cool-LV Posted November 22, 2007 Author Report Share Posted November 22, 2007 QUOTE(Anders Björk @ Nov 20 2007, 04:17 PM) Make a arrray of RGB values choose value from them. Colorbrewer has alot of different color maps http://www.personal.psu.edu/cab38/ColorBre...er_updates.html for instance "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. Quote Link to comment
Cool-LV Posted November 22, 2007 Author Report Share Posted November 22, 2007 QUOTE(Anders Björk @ Nov 20 2007, 04:17 PM) Make a arrray of RGB values choose value from them. Colorbrewer has alot of different color maps http://www.personal.psu.edu/cab38/ColorBre...er_updates.html for instance "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. Quote Link to comment
Justin Goeres Posted November 22, 2007 Report Share Posted November 22, 2007 QUOTE(Cool-LV @ Nov 21 2007, 12:35 AM) 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 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. Quote Link to comment
Justin Goeres Posted November 22, 2007 Report Share Posted November 22, 2007 QUOTE(Cool-LV @ Nov 21 2007, 12:35 AM) 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 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. Quote Link to comment
JDave Posted November 22, 2007 Report Share Posted November 22, 2007 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 Quote Link to comment
JDave Posted November 22, 2007 Report Share Posted November 22, 2007 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 Quote Link to comment
LAVA 1.0 Content Posted November 22, 2007 Report Share Posted November 22, 2007 Are you asking how to create a dialog that looks and functions like the color chooser for a graph, like the screen capture below? Quote Link to comment
LAVA 1.0 Content Posted November 22, 2007 Report Share Posted November 22, 2007 Are you asking how to create a dialog that looks and functions like the color chooser for a graph, like the screen capture below? Quote Link to comment
LAVA 1.0 Content Posted November 22, 2007 Report Share Posted November 22, 2007 Color ramping between two colors can be accomplished by interpolating the RGB values seperately and then recombining the components (See below). Ben Quote Link to comment
LAVA 1.0 Content Posted November 22, 2007 Report Share Posted November 22, 2007 Color ramping between two colors can be accomplished by interpolating the RGB values seperately and then recombining the components (See below). Ben Quote Link to comment
Cool-LV Posted November 23, 2007 Author Report Share Posted November 23, 2007 QUOTE(neB @ Nov 22 2007, 12:36 AM) Color ramping between two colors can be accomplished by interpolating the RGB values seperately and then recombining the components (See below).http://lavag.org/old_files/monthly_11_2007/post-29-1195691743.png' target="_blank">BenTHANKS all, Ben's thread is helping me. Quote Link to comment
Cool-LV Posted November 23, 2007 Author Report Share Posted November 23, 2007 QUOTE(neB @ Nov 22 2007, 12:36 AM) Color ramping between two colors can be accomplished by interpolating the RGB values seperately and then recombining the components (See below).http://lavag.org/old_files/monthly_11_2007/post-29-1195691743.png' target="_blank">BenTHANKS all, Ben's thread is helping me. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.