cairoPatternCreateRgb         package:RGtk2         R Documentation

_c_a_i_r_o_P_a_t_t_e_r_n_C_r_e_a_t_e_R_g_b

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

     Creates a new cairo_pattern_t corresponding to an opaque color. 
     The color components are floating point numbers in the range 0 to
     1. If the values passed in are outside that range, they will be
     clamped.

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

     cairoPatternCreateRgb(red, green, blue)

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

   'red': [numeric]  red component of the color

 'green': [numeric]  green component of the color

  'blue': [numeric]  blue component of the color

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

     ['CairoPattern']  the newly created 'CairoPattern' if succesful,
     or an error pattern in case of no memory.  The caller owns the
     returned object and should call 'cairo\Pattern\Destroy()' when
     finished with it.

     This function will always return a valid pointer, but if an error
     occurred the pattern status will be set to an error.  To inspect
     the status of a pattern use 'cairoPatternStatus'.

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

     Derived by RGtkGen from GTK+ documentation

