Blend Range List Simplified Format

Explicit format

Defined as a JSON array of blend ranges, each one being a JSON object:
{
    "channel": channel,
    "srcBlackMin": srcBlackMin,
    "srcBlackMax": srcBlackMax,
    "srcWhiteMin": srcWhiteMin,
    "srcWhiteMax": srcWhiteMax,
    "destBlackMin": destBlackMin,
    "destBlackMax": destBlackMax,
    "destWhiteMin": destWhiteMin,
    "destWhiteMax": destWhiteMax
}

channel : string
srcBlackMin : number (0 to 255)
srcBlackMax : number (0 to 255)
srcWhiteMin : number (0 to 255)
srcWhiteMax : number (0 to 255)
destBlackMin : number (0 to 255)
destBlackMax : number (0 to 255)
destWhiteMin : number (0 to 255)
destWhiteMax : number (0 to 255)

Minimal format

Defined as a JSON array of blend ranges, each one being a nine-element JSON array:
[ channel, srcBlackMin, srcBlackMax, srcWhiteMin, srcWhiteMax, destBlackMin, destBlackMax, destWhiteMin, destWhiteMax ]

channel : string
srcBlackMin : number (0 to 255)
srcBlackMax : number (0 to 255)
srcWhiteMin : number (0 to 255)
srcWhiteMax : number (0 to 255)
destBlackMin : number (0 to 255)
destBlackMax : number (0 to 255)
destWhiteMin : number (0 to 255)
destWhiteMax : number (0 to 255)

Example

[
    {
        "channel": "gray",
        "srcBlackMin": 0,
        "srcBlackMax": 80,
        "srcWhiteMin": 255,
        "srcWhiteMax": 255,
        "destBlackMin": 0,
        "destBlackMax": 0,
        "destWhiteMin": 255,
        "destWhiteMax": 255
    },
    {
        "channel": "red",
        "srcBlackMin": 0,
        "srcBlackMax": 0,
        "srcWhiteMin": 255,
        "srcWhiteMax": 255,
        "destBlackMin": 0,
        "destBlackMax": 0,
        "destWhiteMin": 145,
        "destWhiteMax": 255
    }
]
[
    [ "gray", 0, 80, 255, 255, 0, 0, 255, 255 ],
    [ "red", 0, 0, 255, 255, 0, 0, 145, 255 ]
]

Gray Blend Range
Red Blend Range

Tags: , , , , ,

Comments are closed.