Rename script function rotate -> rotate_image

This commit is contained in:
Twan van Laarhoven
2020-04-25 23:46:30 +02:00
parent bce298e2f0
commit 7d06e903a4
4 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -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.
-21
View File
@@ -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
+21
View File
@@ -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