filter : contrast

The contrast filter uses a linear function to calculate the result. You can specify two parameters: the slope m and an x-coordinate that dictates where the center of the line should be moved.

Basic Example

"patina" : {
    "type"          : "filter",
    "patternName"   : "noise_plasma",
    "filter"        : [{ "name": "contrast" }]
}