From 8a10537fcc3766e7ed39bb57d9f45aa0fd4927af Mon Sep 17 00:00:00 2001 From: alafr Date: Wed, 23 Nov 2016 00:21:07 +0200 Subject: [PATCH] Fix typo in radialGradient arguments --- docs/vector.coffee.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/vector.coffee.md b/docs/vector.coffee.md index aa1321e..cc2b6e8 100644 --- a/docs/vector.coffee.md +++ b/docs/vector.coffee.md @@ -197,7 +197,7 @@ There are two types of gradients: linear and radial. They are created by the `li and `radialGradient` methods. Their function signatures are listed below: * `linearGradient(x1, y1, x2, y2)` - `x1,y1` is the start point, `x2,y2` is the end point -* `radialGradient(x1, y2, r1, x2, y2, r2)` - `r1` is the inner radius, `r2` is the outer radius +* `radialGradient(x1, y1, r1, x2, y2, r2)` - `r1` is the inner radius, `r2` is the outer radius Once you have a gradient object, you need to create color stops at points along that gradient. Stops are defined at percentage values (0 to 1), and take a color value (any usable by the