Files
MagicSetEditor2/doc/function/combine_blend.txt
T
twanvl 689def7325 Yet more function documentation
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@571 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-14 00:29:25 +00:00

23 lines
1.1 KiB
Plaintext

Function: linear_blend
--Usage--
> combine_blend(image1: image, image2: image, combine: combine_mode)
Blend two images together using a [[type:combine|combine function]].
The images must have the same size.
--Parameters--
! Parameter Type Description
| @image1@ [[type:image]] First image to blend
| @image2@ [[type:image]] Second image to blend
| @combine@ [[type:combine]] Combining function to use
--Examples--
> combine_blend(image1: "image1.png", image2: "image2.png", combine: "add") == [[Image]]
<pre style="padding-top:2px;padding-bottom:2px;"> combine_blend(image1: <img src="image1.png" alt='"image1.png"' style="border:1px solid black;vertical-align:middle;" />, image2: <img src="image2.png" alt='"image2.png"' style="border:1px solid black;vertical-align:middle;" />, combine: "add") == <img src="image_combine_blend.png" alt='"image_combine_blend.png"' style="border:1px solid black;vertical-align:middle;" /></pre>
--See also--
| [[fun:linear_blend]] Blend two images together using a linear gradient.
| [[fun:masked_blend]] Blend two images together using a third mask image.