Files
MagicSetEditor2/doc/function/set_alpha.txt
T
twanvl 36a36356c5 The 'Big Whine' patch:
Any use of a file from another package without a declared dependency will give a warning;

Also added some more _LOCALE_123_ macros so we need less format_string calls

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@753 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-24 20:24:22 +00:00

22 lines
836 B
Plaintext

Function: set_alpha
--Usage--
> set_alpha(input: image, alpha: transparency value)
Make an image more transparent.
The transprarency is multiplied by @alpha@.
If @alpha@ is 1 the image stays the same, if @alpha@ is 0 the image becomes completely transprent.
--Parameters--
! Parameter Type Description
| @input@ [[type:image]] Image to make transparent.
| @alpha@ [[type:double]] Transparency factor.
--Examples--
> set_alpha("image1.png", alpha: 0.5) == [[Image]]
>>> set_alpha(<img src="image1.png" alt='"image1.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />, alpha: 0.5) == <img src="image_set_alpha.png" alt='"image_set_alpha.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />
--See also--
| [[fun:set_mask]] Set the transparancy mask of an image.