|
@ -101,8 +101,7 @@ Gradient::AddColorStop(const Arguments &args) { |
|
|
* Initialize linear gradient. |
|
|
* Initialize linear gradient. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
Gradient::Gradient(double x0, double y0, double x1, double y1): |
|
|
Gradient::Gradient(double x0, double y0, double x1, double y1) { |
|
|
_x0(x0), _y0(y0), _x1(x1), _y1(y1) { |
|
|
|
|
|
_pattern = cairo_pattern_create_linear(x0, y0, x1, y1); |
|
|
_pattern = cairo_pattern_create_linear(x0, y0, x1, y1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -110,8 +109,7 @@ Gradient::Gradient(double x0, double y0, double x1, double y1): |
|
|
* Initialize radial gradient. |
|
|
* Initialize radial gradient. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
Gradient::Gradient(double x0, double y0, double r0, double x1, double y1, double r1): |
|
|
Gradient::Gradient(double x0, double y0, double r0, double x1, double y1, double r1) { |
|
|
_x0(x0), _y0(y0), _x1(x1), _y1(y1), _r0(r0), _r1(r1) { |
|
|
|
|
|
_pattern = cairo_pattern_create_radial(x0, y0, r0, x1, y1, r1); |
|
|
_pattern = cairo_pattern_create_radial(x0, y0, r0, x1, y1, r1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|