mixcolor             package:colorspace             R Documentation

_C_o_m_p_u_t_e _t_h_e _c_o_n_v_e_x _c_o_m_b_i_n_a_t_i_o_n _o_f _t_w_o _c_o_l_o_r_s

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

     This function can be used to compute the result of color mixing
     (it assumes additive mixing).

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

     mixcolor(alpha, color1, color2, where = class(color1))

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

   alpha: The mixed color is obtained by combining an amount '1-alpha'
          of 'color1' with an amount 'alpha' of 'color2'.

  color1: The first color.

  color2: The second color.

   where: The color space where the mixing is to take place.

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

     The mixed color.  This is in the color space specified by 'where'.

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

     Ross Ihaka

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

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

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

     mixcolor(0.5, RGB(1,0,0), RGB(0,1,0))

