stam.rgb.colors             package:stam             R Documentation

_G_e_n_e_r_a_t_e _a _C_o_l_o_r _G_r_a_d_i_e_n_t

_D_e_s_c_r_i_p_t_i_o_n:

     Generates a colur gradient starting from one color given by the
     user and ending in  another going through black.

_U_s_a_g_e:

     stam.rgb.colors(n = 12, m = 1, r0 = 1, g0 = 0, b0 = 0, 
                     r1 = 0, g1 = 1, b1 = 0)

_A_r_g_u_m_e_n_t_s:

       n: Number of shades generated in the color gradient

       m: skewing factor. m=1 produces a linear gradient from start to
          black and from  black to end. High m decreases the amount of
          black, low m's increase it.

      r0: red component of the starting color

      g0: green component of starting color

      b0: blue component of the starting color

      r1: red component of the ending color

      g1: green component of the ending color

      b1: blue component of the ending color

_V_a_l_u_e:

     A charactor vector of length 2*n. Each element represents the code
     of an RGB color.

_A_u_t_h_o_r(_s):

     Claudio Lottaz

_S_e_e _A_l_s_o:

     'image.stamPrediction'

_E_x_a_m_p_l_e_s:

     red.to.blue <- stam.rgb.colors(10, 1, 1, 0, 0, 0, 0, 1)
     fake.data <- matrix(seq(0, 1, 0.01), nrow=10, ncol=10)
     image(fake.data, col=red.to.blue)

