writehex             package:colorspace             R Documentation

_W_r_i_t_e _H_e_x_a_d_e_c_i_m_a_l _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:

     Given a color object, this function writes a file containing the
     hexadecimal representation of the colors in the object.

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

     writehex(x, file = "")

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

       x: a color object.

    file: the name of the file to be written.

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

     This function converts the given color oject to RGB and then
     writes hexadecimal strings (of the form '#RRGGBB') representing
     the colors to the specified file.

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

     The name of the file is returned as the value of the function.

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

     Ross Ihaka

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

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

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

     x = RGB(runif(10), runif(10), runif(10))
     writehex(x, "random.txt")

