generative modeling for Rhino
During the production of presentations, a constant need to select/ coordinate project color scheme's has made Kuler a great aid. The problem has been that this worked amazingly for Adobe products, but not for anything else. To meet this need, I developed a simple VB script for Grasshopper that reads through the ASE files and extracts the HEX, RGB, and CMYK values and deceminates them to coordinated C, M, Y, K, R, G, B values lists.
The custom component can be downloaded at:
Im fairly certain this is not the most optimal way to extract the data from these files, but it works so far.
As a side note, I would like to consolidate the C,M,Y,K,R,G,B values to three single CMYK, RGB, HEX color outputs. If anyone know's how to create a grasshopper "color" with CMYK values, I would appreciate knowing how's to achieve this.
Option 1) use a string to represent all the colour data. You'll also need some component that convert these strings into regular RGB colours.
Option 2) write your own Colour data type that has fields for all this stuff. This is quite a lot of work.
I guess what Im asking is probably simpler.
If I make:
Dim clrMyColor As color
'how would I actually do the following:
clrMyColor = RGB(255, 0,0)
If you want to define your own class, you are free to do so. If you want to put widening cast operators on that class that are able to convert automatically between System.Drawing.Color and MySpecialColor you can do that as well.
Also note that there are a bunch of different color types in the Rhino.Display namespace. CMYK is one of them.