From e0da3a7a4196d944ba536bc2005422402b9178d5 Mon Sep 17 00:00:00 2001 From: Mahmoud Gomaa Date: Fri, 11 Feb 2022 07:17:27 +0200 Subject: [PATCH] Update image.html Add image.res, image.svg, and image.svgf --- docs/functions/image.html | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/functions/image.html b/docs/functions/image.html index c316415..1051a8e 100644 --- a/docs/functions/image.html +++ b/docs/functions/image.html @@ -1,10 +1,11 @@ -
IMAGE (ICON)
+
IMAGE (ICON)

The image namespace contains functions that return an icon and are only assigned to the image property

image.glyph

Return font icon with color and size option.

Syntax

image.glyph(0xE00B)
+ image.glyph(\uE00B)
image.glyph("\uE00B")
image.glyph("\xE00B")

@@ -13,21 +14,28 @@ image.glyph(0xE00B, #0000ff, 12, "Segoe MDL2 Assets")
-
image.icon
+
image.res

Returns an icon through a path or through resources.

Syntax

- image.icon(path)
- image.icon(path, index)
- image.icon(path, -id)
+ image.res(path)
+ image.res(path, index)
+ image.res(path, -id)

image(path)
image(path, index)
image(path, -id)
+
+
image.svg, image.svgf
+

Returns an svg image via a string or from a file path.

+

Syntax

+ image.svg('')
+ image.svgf(path)
+
image.rect

Returns a colored rectangle icon of an optional size.

Syntax

image.rect(#0000ff)
image.rect(#0000ff, 10)
-
\ No newline at end of file +