mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Rename script function rotate -> rotate_image
This commit is contained in:
@@ -90,7 +90,7 @@ These functions are built into the program, other [[type:function]]s can be defi
|
||||
| [[fun:crop]] Crop an image, giving only a small subset of it.
|
||||
| [[fun:flip_horizontal]] Flip an image horizontally.
|
||||
| [[fun:flip_vertical]] Flip an image vertically.
|
||||
| [[fun:rotate]] Rotate an image.
|
||||
| [[fun:rotate_image]] Rotate an image.
|
||||
| [[fun:drop_shadow]] Add a drop shadow to an image.
|
||||
| [[fun:symbol_variation]] Render a variation of a [[type:symbol]].
|
||||
| [[fun:built_in_image]] Return an image built into the program.
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
Function: rotate
|
||||
|
||||
DOC_MSE_VERSION: since 0.3.9
|
||||
|
||||
--Usage--
|
||||
> rotate(input: image, angle: some_number)
|
||||
|
||||
Rotate an image. The image can become larger to accomodate the rotated bounding box.
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
| @input@ [[type:image]] Image to rotate.
|
||||
| @angle@ [[type:double]] Angle to rotate by, in degrees counter clockwise.
|
||||
|
||||
--Examples--
|
||||
> rotate("image_logo.png", angle:30) == [[Image]]
|
||||
>>> rotate(<img src="image_logo.png" alt='"image_logo.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />, angle:30) == <img src="image_logo_rotate30.png" alt='"image_logo_rotate30.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />
|
||||
|
||||
--See also--
|
||||
| [[fun:flip_horizontal]] Flip an image horizontally
|
||||
| [[fun:flip_vertical]] Flip an image vertically
|
||||
@@ -0,0 +1,21 @@
|
||||
Function: rotate_image
|
||||
|
||||
DOC_MSE_VERSION: since 0.3.9, called rotate until 2.0.2
|
||||
|
||||
--Usage--
|
||||
> rotate_image(input: image, angle: some_number)
|
||||
|
||||
Rotate an image. The image can become larger to accomodate the rotated bounding box.
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
| @input@ [[type:image]] Image to rotate.
|
||||
| @angle@ [[type:double]] Angle to rotate by, in degrees counter clockwise.
|
||||
|
||||
--Examples--
|
||||
> rotate_image("image_logo.png", angle:30) == [[Image]]
|
||||
>>> rotate_image(<img src="image_logo.png" alt='"image_logo.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />, angle:30) == <img src="image_logo_rotate30.png" alt='"image_logo_rotate30.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />
|
||||
|
||||
--See also--
|
||||
| [[fun:flip_horizontal]] Flip an image horizontally
|
||||
| [[fun:flip_vertical]] Flip an image vertically
|
||||
Reference in New Issue
Block a user