Fixes #34 (Diff swallows black color in added areas): adds options.ligth... #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@see PR features update (changes default values and options names but below screenshots still relevant).
The fix for #34 is the same but with improved factoring and commented code:
I also improved #51 with two more or less useful functionalities found in resemble.js.
As examples, I'll give you some tests I've made from images found at http://humblesoftware.github.io/js-imagediff/.
.example.normal, default behavior without options, the +25 boost is not much altering the original rendering in this case:

.example.transparency, +25 default boost is giving a slightly white transparent background:

.example.size, still default behavior, I just set option.align manually to top:

.example.normal, now setting options.lightness to 255 (all differences are clearly visible):

.example.transparency, using options.rgb with [0,0,255] to give a blue tint in area zone:

.example.normal, setting options.stack and options.rgb to [185,0,185] giving a purple rendering on common pixels like with resemble.js:

.example.size, option.align center and options.stack and yellow balance (options.rgb=[255,255,0]):

The previous images are generated by Succss, ask me if you want the configuration file to reproduce locally. Thanks !