The ColortoDec script converts RGB and Hex values to Decimal values. This is useful for converting color values found in palletes websites / apps to decimal values which can be used to change the color of Max UI objects.
Download this repository as a ZIP file, extract it and move to folder to your Max 7/Packages folder.
Simply create a new object within your patch, type "js colortodec" and hit enter.
To convert RGB / RGBa values, prepend "rgb" to your list.
To convert HEX values, prepend "hex".
This package also includes an example snippet (ColorToDec-Example) that can be used as reference.
Ícaro Ferre
@icaroferre
spektroaudio.com