convert the given color rgb or system to an ansi-compatible index for use with esc 38 ; 5 ; m concode_field_sep String name concode_elem_sep int index concode_elem_sep String ANSI_RESET concode_elem_sep Slice RENDERED_TRUE concode_elem_sep Slice RENDERED_FALSE concode_field_sep String getName concode_elem_sep int getIndex concode_elem_sep long color concode_elem_sep long color concode_elem_sep long color concode_elem_sep String ansiColorEscape concode_elem_sep SystemColor valueOf concode_elem_sep int interpolate concode_elem_sep long rgb concode_elem_sep int getBlue concode_elem_sep Slice bar concode_elem_sep Slice bar concode_elem_sep int getRed concode_elem_sep int getGreen concode_elem_sep int parseRgb concode_elem_sep Slice render concode_elem_sep Slice render concode_elem_sep Slice render concode_elem_sep Slice render
int function ( int arg0 , int arg1 , int arg2 ) { arg0 = arg0 * 6 / 256 ; arg1 = arg1 * 6 / 256 ; arg2 = arg2 * 6 / 256 ; return 16 + arg0 * 36 + arg1 * 6 + arg2 ; }