add 'add_stroke_effect' script function

This commit is contained in:
GenevensiS
2026-01-14 11:48:17 +01:00
parent d10a71e925
commit 8afd412021
10 changed files with 128 additions and 111 deletions
+1
View File
@@ -91,6 +91,7 @@ These functions are built into the program, other [[type:function]]s can be defi
| [[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.
| [[fun:enlarge]] Enlarge an image by putting a border around it.
| [[fun:add_stroke_effect]] Add a stroke effect around an image.
| [[fun:add_bleed_edge]] Add a crude print bleed edge around an image.
| [[fun:crop]] Crop an image, giving only a small subset of it.
| [[fun:flip_horizontal]] Flip an image horizontally.
+15
View File
@@ -0,0 +1,15 @@
Function: add_stroke_effect
--Usage--
> add_stroke_effect(input: image, radius: number, blur: number, color: color)
Add a stroke effect around an image.
--Parameters--
! Parameter Type Description
| @input@ [[type:image]] Image that needs a stroke effect
| @radius@ [[type:int]] Size of the stroke, in pixels
| @blur@ [[type:int]] Size of the blur of the stroke, in pixels. Optional, defaults to 0
| @color@ [[type:color]] Color of the stroke
| @include_image@ [[type:boolean]] Draw the original image in the middle of the stroke effect. Optional, defaults to true