convert RGB to OCOLOR
OCOLOR okutil_convert_RGB_to_ocolor( COLORREF cr )
OCOLOR return include Origin internal color index if given input matches one of them.
void okutil_convert_RGB_to_ocolor_ex1(int clrR, int clrG, int clrB) { DWORD dwRGB = RGB(clrR, clrG, clrB); int nColor = okutil_convert_RGB_to_ocolor(dwRGB); out_int("nColor=", nColor); }
okutil_convert_ocolor_to_RGB
origin.h