algorithmic modeling for Rhino
Hi Zachary,
are "hexadecimal" like HTML colors, for example #89ABCDE?
If so, then something like this:
A = System.Drawing.ColorTranslator.ToHtml(color);
will do. However, to avoid HTML known colors, you need to use the ToArgb() method. Full example provided also in Python.
Did you need also the alpha channel?
- Giulio
_______________
giulio@mcneel.com
Damn you Giulio! 38 seconds!
--
David Rutten
david@mcneel.com
Poprad, Slovakia
:)
Usually I find answers are just given right at the moment when I'm finished with them.
- Giulio
_______________
giulio@mcneel.com
Hey Thanks guys, I needed the Alpha Channel too, but I figured it out based on what I saw. I chose to do it in python because that is what I am familiar with. Thanks for the quick responses! I tell you what, as far as online forums go, it doesn't get better than this!
Zach
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by