Continuing documenting functions

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@575 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-07-14 15:13:46 +00:00
parent a75366234f
commit 4f644756f6
19 changed files with 195 additions and 4 deletions
+5 -2
View File
@@ -9,6 +9,9 @@ Function: linear_blend
Blend two images together using a linear gradient.
Coordinates range from 0 to 1, where 0 is the top and the left, and 1 is the right and the bottom.
So for example a blend from @x1:0, y1:0@ to @x2:0, y2:1@ is from top to bottom.
The images must have the same size.
--Parameters--
@@ -20,8 +23,8 @@ The images must have the same size.
--Examples--
This gives a vertical gradient:
> linear_blend(image1: "image1.png", image2: "image2.png", x1:0, y1:0, x2:1, y2:1) == [[Image]]
<pre style="padding-top:2px;padding-bottom:2px;"> linear_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;" />, x1:0, y1:0, x2:1, y2:1) == <img src="image_linear_blend.png" alt='"image_linear_blend.png"' style="border:1px solid black;vertical-align:middle;" /></pre>
> linear_blend(image1: "image1.png", image2: "image2.png", x1:0, y1:0, x2:0, y2:1) == [[Image]]
>>> linear_blend(image1: <img src="image1.png" alt='"image1.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />, image2: <img src="image2.png" alt='"image2.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />, x1:0, y1:0, x2:1, y2:1) == <img src="image_linear_blend.png" alt='"image_linear_blend.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />
--See also--
| [[fun:masked_blend]] Blend two images together using a third mask image.