🖌️Renderer
Last updated
Last updated
[?]
: integer
, g [?]
: integer
, b [?]
: integer
, a [?]
: integer
): nil
Name | Type | Description |
---|---|---|
Sets the color of the renderer.
integer
, y0: integer
, x1: integer
, y1: integer
): nil
Name | Type | Description |
---|---|---|
Draws a line.
table
): nil
Name | Type | Description |
---|---|---|
Draws a polyline.
table
): nil
Draws a filled polyline.
integer
, y: integer
, w: integer
, h: integer
): nil
Draws a filled rectangle.
integer
, y: integer
, w: integer
, h: integer
): nil
Draws an outlined rectangle.
integer
, y: integer
, r: integer
, s: integer
): nil
Draws an outlined circle.
integer
, y: integer
, r: integer
): nil
Draws a filled circle.
integer
, y: integer
, w: integer
, h: integer
, radius: integer
): nil
Draws an outlined rounded rectangle.
integer
, y: integer
, w: integer
, h: integer
, radius: integer
): nil
Draws a filled rounded rectangle.
table
): nil
Draws an outlined triangle.
table
): nil
Draws a filled triangle.
table
, texture: integer
): nil
Draws a textured polygon.
string
, size: integer
, flags: integer
, weight: integer
): integer
Loads a font.
integer
, x: integer
, y: integer
, text: string
): nil
Draws a text.
Converts world coordinates to screen coordinates. Returns x, y and visible.
integer
, integer
Returns screen size.
integer
, text: string
): integer
, integer
Returns text size.
string
): integer
Loads an image. Returns image handle.
integer
, x: integer
, y: integer
, w: integer
, h: integer
): nil
Draws an image.
integer
, x: integer
, y: integer
, w: integer
, h: integer
): nil
Draws an image centered.
integer
): integer
, integer
Returns image size.
integer
, y0: integer
, x1: integer
, y1: integer
, alpha0: integer
, alpha1: integer
, bHorizontal: boolean
): nil
Draws a filled rectangle with fade.
integer
, y0: integer
, x1: integer
, y1: integer
, r: integer
, g: integer
, b: integer
, a: integer
, r2: integer
, g2: integer
, b2: integer
, a2: integer
, bHorizontal: boolean
): nil
Draws a filled gradient rectangle.
integer
, y0: integer
, w: integer
, h: integer
, thickness: integer
, obj_rounding: integer
): nil
Draws a glow.
number
, y0: number
, w: number
, h: number
, strength: number
, rounding: number
, alpha: number
): nil
Draws a blur.
integer
, y: integer
, w: integer
, h: integer
, intersect: boolean
): nil
Pushes a clip rect.
nil
Pops a clip rect.
string
, duration: number
): nil
Draws a centered notification.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|