cairoPatternCreateLinear        package:RGtk2        R Documentation

_c_a_i_r_o_P_a_t_t_e_r_n_C_r_e_a_t_e_L_i_n_e_a_r

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

     Create a new linear gradient cairo_pattern_t along the line
     defined by (x0, y0) and (x1, y1).  Before using the gradient
     pattern, a number of color stops should be defined using
     'cairoPatternAddColorStopRgb' or 'cairoPatternAddColorStopRgba'.

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

     cairoPatternCreateLinear(x0, y0, x1, y1)

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

    'x0': [numeric]  x coordinate of the start point 

    'y0': [numeric]  y coordinate of the start point 

    'x1': [numeric]  x coordinate of the end point 

    'y1': [numeric]  y coordinate of the end point 

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

     Note: The coordinates here are in pattern space. For a new
     pattern, pattern space is identical to user space, but the
     relationship between the spaces can be changed with
     'cairoPatternSetMatrix'.

_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

