RGB                package:colorspace                R Documentation

_C_r_e_a_t_e _R_G_B _C_o_l_o_r_s

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

     This function creates colors of class RGB; a subclass of the
     virtual ``color'' class.

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

     RGB(R, G, B, names)

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

   R,G,B: these arguments give the red, green and blue intensities of
          the colors (the values should lie between 0 and 1). The
          values can be provided in separate 'R', 'G' and 'B' vectors
          or in a three-column matrix passed as 'R'. 

   names: A vector of names for the colors (by default the row names of
          'R' are used).

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

     This function creates colors in the RGB color space which is a
     linearly transformed version of CIEXYZ space.

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

     An object of class ``RGB'' which inherits from class ``color.''

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

     Ross Ihaka

_R_e_f_e_r_e_n_c_e_s:

     <URL: www.srgb.com>

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

     'HSV', 'XYZ', 'LAB', 'polarLAB', 'LUV', 'polarLUV'.

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

     # Create a random set of colors
     rgb = RGB(R = runif(20), G = runif(20), B = runif(20))

