add brighten_image script function, 'average' and 'offset' combine modes

This commit is contained in:
GenevensiS
2026-04-11 04:51:59 +02:00
parent c167272ae6
commit d49cfda407
8 changed files with 89 additions and 0 deletions
+17
View File
@@ -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.
+1
View File
@@ -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.