For example: "#FF8000".
How could I convert it to RGBColor or Hue?
|
|
Using
Edit Shorter version, since somebody mentioned golfing...
|
|||||||||||||||||||
|
|
I hate regular expressions... :)
|
||||
|
|
|
Borrowing from amr's answer here
=>{{255, 255, 255}, {255, 255, 255}, {0, 0, 0}, {255, 85, 0}, {0, 85, 0}} |
||||
|
|
|
Here is another option:
And another:
|
|
Just to add nothing to the previous answers
|
|||
|
|
|
You guys are to fast for me ;) My solution which is similar to's @cormullion:
P.S.: Things are not always just #000000 and #FFFFFF. It's mostly a varying of shades of #A4A4A4 :) EDIT PieChart of the sector angles proportional to {R, G, B}
|
||||
|
|
|
Also
Edit Golfing a one liner :)
|
|||||||
|
|
Function that converts string to a list of 3 numbers: for R, G and B component:
Usage:
PS: This may, or may not be the most accurate and fast solution. |
|||||
|