mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add 'add_stroke_effect' script function
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user