Merge pull request #36 from TomTkacz/master

implemented import_image function
This commit is contained in:
GenevensiS
2025-04-13 14:43:15 +02:00
committed by GitHub
8 changed files with 103 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
Function: import_image
--Usage--
> import_image(image_path)
Load an image from outside the data folder. Intended for use from the CLI.
--Parameters--
! Parameter Type Description
| @input@ [[type:string]] Full path of the image to load
--Examples--
> new_card([image: import_image("D:/Art/Ajani.png"), card_color: "green"])
+1
View File
@@ -94,6 +94,7 @@ These functions are built into the program, other [[type:function]]s can be defi
| [[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:import_image]] Load an image from outside the data folder.
| [[fun:built_in_image]] Return an image built into the program.
! Cards <<<