question: public static int toRGB ( ColorSpace colorSpace , float ... components ) { float [ ] rgb = colorSpace . toRGB ( components ) ; if ( rgb [ 0 ] < 0f || rgb [ 1 ] < 0f || rgb [ 2 ] < 0f || rgb [ 0 ] > 1f || rgb [ 1 ] > 1f || rgb [ 2 ] > 1f ) { return 0 ; } return 0xff000000 | ( ( int ) ( rgb [ 0 ] * 255f ) << 16 ) | ( ( int ) ( rgb [ 1 ] * 255f ) << 8 ) | ( int ) ( rgb [ 2 ] * 255f ) ; }
target:  Returns an rgb value from color components in the specified color space.