Many solidworks APIs take a single integer as a color. This uses ColorRef underwater: https://learn.microsoft.com/en-us/windows/win32/gdi/colorref But I think ColorRef is annoying, so let's create something more user-friendly.