readRGB              package:colorspace              R Documentation

_R_e_a_d _R_G_B _C_o_l_o_r _D_e_s_c_r_i_p_t_i_o_n_s

_D_e_s_c_r_i_p_t_i_o_n:

     This function reads a set of RGB color descriptions (of the form
     written by 'gcolorsel') from a file and creates a color object
     containing the corresponding colors.

_U_s_a_g_e:

     readRGB(file = "", class = "RGB")

_A_r_g_u_m_e_n_t_s:

    file: The file containing the color descriptions.

   class: The kind of color object to be returned.

_D_e_t_a_i_l_s:

     The file is assumed to contain RGB color descriptions consisting
     of three integer values in the range from 0 to 255 followed by a
     color name.

_V_a_l_u_e:

     An color object of the specified class containing the color
     descriptions.

_A_u_t_h_o_r(_s):

     Ross Ihaka.

_S_e_e _A_l_s_o:

     'writehex', 'readhex', 'hex2RGB', 'RGB', 'HSV', 'XYZ', 'LAB',
     'polarLAB', 'LUV', 'polarLUV'.

_E_x_a_m_p_l_e_s:

     ## Not run: 
     rgb = readRGB("pastel.rgb")
     hsv = readRGB("pastel.rgb", "HSV")
     ## End(Not run)

