renderer
Example:
Functions:
create_font
Returns a font based on name, size, and boldness.
Argument
Type
Required
name
string
+
size
number
+
bold
bool
+
create_texture
Returns a texture based on filename.
Argument
Type
Required
filename
string
+
set_clip
Clips rendering to the given region.
Argument
Type
Required
x
number
+
y
number
+
w
number
+
h
number
+
remove_clip
Removes any set clip.
image
Argument
Type
Required
line
Argument
Type
Required
circle
Argument
Type
Required
filled_circle
Argument
Type
Required
triangle
filled_triangle
rect
Argument
Type
Required
filled_rect
Argument
Type
Required
gradient_rect
text
Argument
Type
Required
text_centered
Argument
Type
Required
get_text_size
Argument
Type
Required
text
string
+
font
font
-
logo
Argument
Type
Required
lock_cursor
Locks the cursor from interactions.
unlock_cursor
Unlocks the cursor from interactions.
Last updated