| 
    Picasso API
    2.8
    
   | 
 
Typedefs | |
| typedef enum _ps_gradient_spread | ps_gradient_spread | 
| Fill type of outside the gradient area.  | |
Enumerations | |
| enum | _ps_gradient_spread { GRADIENT_SPREAD_PAD, GRADIENT_SPREAD_REPEAT, GRADIENT_SPREAD_REFLECT } | 
| Fill type of outside the gradient area.  More... | |
Functions | |
| PEXPORT ps_gradient *PICAPI | ps_gradient_create_linear (ps_gradient_spread spread, const ps_point *start, const ps_point *end) | 
| Create a new gradient that varies along the line defined by provided starting and ending points.  More... | |
| PEXPORT ps_gradient *PICAPI | ps_gradient_create_radial (ps_gradient_spread spread, const ps_point *start, float sradius, const ps_point *end, float eradius) | 
| Create a new gradient that varies along the area defined by provided starting and ending circles.  More... | |
| PEXPORT ps_gradient *PICAPI | ps_gradient_create_conic (ps_gradient_spread spread, const ps_point *origin, float sangle) | 
| Create a new gradient that varies along the area defined by provided concentric circles.  More... | |
| PEXPORT void PICAPI | ps_gradient_transform (ps_gradient *gradient, const ps_matrix *matrix) | 
| Transform the gradient object.  More... | |
| PEXPORT ps_gradient *PICAPI | ps_gradient_ref (ps_gradient *gradient) | 
| Increases the reference count of the gradient by 1.  More... | |
| PEXPORT void PICAPI | ps_gradient_unref (ps_gradient *gradient) | 
| Decrements the reference count for the gradient object. If the reference count on the gradient falls to 0, the gradient is freed.  More... | |
| PEXPORT void PICAPI | ps_gradient_add_color_stop (ps_gradient *gradient, float offset, const ps_color *color) | 
| Add a color stop to a gradient. The offset specifies the location along the gradient's control vector.  More... | |
| PEXPORT void PICAPI | ps_gradient_clear_color_stops (ps_gradient *gradient) | 
| Clear color stops from gradient's control vector.  More... | |
| enum _ps_gradient_spread | 
| void ps_gradient_add_color_stop | ( | ps_gradient * | gradient, | 
| float | offset, | ||
| const ps_color * | color | ||
| ) | 
Add a color stop to a gradient. The offset specifies the location along the gradient's control vector.
| gradient | Pointer to an existing gradient object. | 
| offset | An offset position in control vector (range 0 ~ 1). | 
| color | Color for the stop. | 
| void ps_gradient_clear_color_stops | ( | ps_gradient * | gradient | ) | 
Clear color stops from gradient's control vector.
| gradient | Pointer to an existing gradient object. | 
| ps_gradient * ps_gradient_create_conic | ( | ps_gradient_spread | spread, | 
| const ps_point * | origin, | ||
| float | sangle | ||
| ) | 
Create a new gradient that varies along the area defined by provided concentric circles.
| spread | The spread type of the gradient. | 
| origin | The center point of conic, of the required gradient. | 
| sangle | The angle, int32_t radians, which the first color. | 
| ps_gradient * ps_gradient_create_linear | ( | ps_gradient_spread | spread, | 
| const ps_point * | start, | ||
| const ps_point * | end | ||
| ) | 
Create a new gradient that varies along the line defined by provided starting and ending points.
| spread | The spread type of the gradient. | 
| start | The starting point , of the required gradient. | 
| end | The ending point, of the required gradient. | 
| ps_gradient * ps_gradient_create_radial | ( | ps_gradient_spread | spread, | 
| const ps_point * | start, | ||
| float | sradius, | ||
| const ps_point * | end, | ||
| float | eradius | ||
| ) | 
Create a new gradient that varies along the area defined by provided starting and ending circles.
| spread | The spread type of the gradient. | 
| start | The center point of the starting circle, of the required gradient. | 
| sradius | The radius of the starting circle, of the required gradient. | 
| end | The center point of the ending circle, of the required gradient. | 
| eradius | The radius of the ending circle, of the required gradient. | 
| ps_gradient * ps_gradient_ref | ( | ps_gradient * | gradient | ) | 
Increases the reference count of the gradient by 1.
| gradient | Pointer to an existing gradient object. | 
| void ps_gradient_transform | ( | ps_gradient * | gradient, | 
| const ps_matrix * | matrix | ||
| ) | 
Transform the gradient object.
| gradient | Pointer to an existing gradient object. | 
| matrix | Pointer to an existing matrix object. | 
| void ps_gradient_unref | ( | ps_gradient * | gradient | ) | 
Decrements the reference count for the gradient object. If the reference count on the gradient falls to 0, the gradient is freed.
| gradient | Pointer to an existing gradient object. | 
 1.8.17