mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add brighten_image script function, 'average' and 'offset' combine modes
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
Function: brighten_image
|
||||
|
||||
DOC_MSE_VERSION: since 2.6.0
|
||||
|
||||
--Usage--
|
||||
> brighten_image(input: image, amount: brightening amount)
|
||||
|
||||
Brighten or darken an image.
|
||||
|
||||
To brighten use an amount between @0@ (no effect) and @1@ (entire image is pure white).
|
||||
|
||||
To darken use an amount between @0@ (no effect) and @-1@ (entire image is pure black).
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
| @input@ [[type:image]] Image to brighten/darken.
|
||||
| @alpha@ [[type:double]] Brightening factor.
|
||||
@@ -87,6 +87,7 @@ These functions are built into the program, other [[type:function]]s can be defi
|
||||
| [[fun:set_alpha]] Change the transparency of an image.
|
||||
| [[fun:set_combine]] Change how the image should be combined with the background.
|
||||
| [[fun:saturate_image]] Saturate/desaturate an image.
|
||||
| [[fun:brighten_image]] Brighten/darken an image.
|
||||
| [[fun:invert_image]] Invert the colors of an image.
|
||||
| [[fun:recolor_image]] Change the colors of an image to match the font color.
|
||||
| [[fun:resize_image]] Stretch or squeeze an image to a given height and width.
|
||||
|
||||
Reference in New Issue
Block a user