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 Slice RENDERED_FALSE concode_elem_sep int index concode_elem_sep String ANSI_RESET concode_elem_sep Slice RENDERED_TRUE 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 ( long arg0 ) { if ( arg0 >= 0 ) { return toAnsi ( getRed ( arg0 ) , getGreen ( arg0 ) , getBlue ( arg0 ) ) ; } else { return ( int ) ( - arg0 - 1 ) ; } }