hex2RGB              package:colorspace              R Documentation

_C_o_n_v_e_r_t _H_e_x_a_d_e_c_i_m_a_l _C_o_l_o_r _S_p_e_c_i_f_i_c_a_t_i_o_n_s _T_o _R_G_B _O_b_j_e_c_t_s

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

     This function takes a vector of strings of the form '"#RRGGBB"'
     (hexdecimal color descriptions) into RGB objects.

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

     hex2RGB(x, gamma = 2.2)

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

       x: a vector of hexdecimal color descriptions.

   gamma: the display gamma value.  Passing a value of 'NA' results in
          no gamma correction being applied.

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

     This function converts device dependent color descriptions of the
     form '"#RRGGBB"' into device independent sRGB colour descriptions.

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

     An RGB object describing the colours.

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

     Ross Ihaka

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

     'hex', 'RGB', 'HSV', 'XYZ', 'polarLAB', 'LUV', 'polarLUV'.

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

     rgb = hex2RGB(c("#FF0000","#00FF00", "#0000FF"))

