forked from jywarren/image-sequencer
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding easier to use interface for blend module and different blend m…
…odes (#1453) * Bump data-uri-to-buffer from 2.0.1 to 3.0.0 Bumps [data-uri-to-buffer](https://github.com/TooTallNate/node-data-uri-to-buffer) from 2.0.1 to 3.0.0. - [Release notes](https://github.com/TooTallNate/node-data-uri-to-buffer/releases) - [Commits](TooTallNate/node-data-uri-to-buffer@2.0.1...3.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * add blend modes * fix toCliString test * add docs link for blend modes * fix crop module * undo last commit * minor change * change default to custom * add docs link Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Harsh Khandeparkar <34770591+HarshKhandeparkar@users.noreply.github.com> Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
- Loading branch information
1 parent
1fa8c6b
commit c22c6c7
Showing
4 changed files
with
95 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,34 @@ | ||
{ | ||
"name": "blend", | ||
"description": "Blend two chosen image steps with the given function. Defaults to using the red channel from image 1 and the green and blue and alpha channels of image 2. Easier to use interfaces coming soon!", | ||
"description": "Blend two chosen image steps with the given function. Defaults to using the red channel from image 1 and the green and blue and alpha channels of image 2.", | ||
"inputs": { | ||
"offset": { | ||
"type": "integer", | ||
"desc": "Choose which image to blend the current image with. Two steps back is -2, three steps back is -3 etc.", | ||
"default": -2 | ||
}, | ||
"blendMode": { | ||
"type": "select", | ||
"desc": "Name of the Blend Mode to use", | ||
"default": "custom", | ||
"values": [ | ||
"custom", | ||
"Multiply", | ||
"Divide", | ||
"Overlay", | ||
"Screen", | ||
"Soft Light", | ||
"Color Burn", | ||
"Color Dodge", | ||
"Grain Extract", | ||
"Grain Merge" | ||
] | ||
}, | ||
"blend": { | ||
"type": "string", | ||
"desc": "Function to use to blend the two images.", | ||
"default": "function(r1, g1, b1, a1, r2, g2, b2, a2, x, y) { return [ r2, g2, b2, a2 ] }" | ||
} | ||
}, | ||
"docs-link":"https://github.com/publiclab/image-sequencer/blob/main/docs/MODULES.md#blend-module" | ||
"docs-link": "https://github.com/publiclab/image-sequencer/blob/main/docs/MODULES.md#blend-module" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters