Docs: ensure options are included for flatten op

This commit is contained in:
Lovell Fuller 2018-10-08 19:56:30 +01:00
parent 937b091bab
commit dac8117f32
2 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,8 @@ Merge alpha transparency channel, if any, with a background.
### Parameters
- `options`
- `options` **[Object][2]?**
- `options.background` **([String][3] \| [Object][2])** background colour, parsed by the [color][4] module, defaults to black. (optional, default `{r:0,g:0,b:0}`)
Returns **Sharp**

View File

@ -172,6 +172,7 @@ function blur (sigma) {
/**
* Merge alpha transparency channel, if any, with a background.
* @param {Object} [options]
* @param {String|Object} [options.background={r: 0, g: 0, b: 0}] - background colour, parsed by the [color](https://www.npmjs.org/package/color) module, defaults to black.
* @returns {Sharp}
*/