mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Merge pull request #586 from alafr/patch-1
Fix typo in radialGradient arguments
This commit is contained in:
commit
ec17e3cd1b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user