cairo 1.4.1 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cairo might be problematic. Click here for more details.

@@ -1,19 +0,0 @@
1
- module Cairo
2
- class Context
3
- module Quad
4
- def quad_to(x1, y1, x2, y2)
5
- x0, y0 = current_point
6
- cx1 = x0 + 2 * (x1 - x0) / 3.0
7
- cy1 = y0 + 2 * (y1 - y0) / 3.0
8
- cx2 = cx1 + (x2 - x0) / 3.0
9
- cy2 = cy1 + (y2 - y0) / 3.0
10
- curve_to(cx1, cy1, cx2, cy2, x2, y2)
11
- end
12
-
13
- def rel_quad_to(x1, y1, x2, y2)
14
- x0, y0 = current_point
15
- quad_to(x1 + x0, y1 + y0, x2 + x0, y2 + x0)
16
- end
17
- end
18
- end
19
- end