Better validation and test coverage for background colours

This commit is contained in:
Lovell Fuller
2019-08-16 20:37:17 +01:00
parent e4333ff6b0
commit da4e05c118
6 changed files with 33 additions and 16 deletions

View File

@@ -179,7 +179,7 @@ function blur (sigma) {
function flatten (options) {
this.options.flatten = is.bool(options) ? options : true;
if (is.object(options)) {
this._setColourOption('flattenBackground', options.background);
this._setBackgroundColourOption('flattenBackground', options.background);
}
return this;
}