Renderer

DrawText

Renders a string within bounds of game screen


Renderer.DrawText('Verdana', 'Hello!', Vector2D(100, 100), false, true, Color(255, 255, 255, 255))
Name
Type
Description

Font

String

String for loaded font

Text

String

String for text to be rendered

Position

Dimensions for text to be displayed

Centered

Boolean

Is text centered

Outlined

Boolean

Outlined text

Color

Color of the text

LoadFontFromFile

Initializes a downloaded font

Renderer.LoadFontFromFile('font', 'verdana', 24, true) 
Name
Type
Description

Instance

String

Custom name for font

Font

String

Name of font

Size

Integer

Font size

Anti-aliased

Boolean

Is text anti-aliased

Anti-aliasing is optional, will be set to true if no value is set

DrawLine

Renders a line within bounds of game screen


Renderer.DrawLine(Vector2D(100, 200), Vector2D(200, 200), Color(255, 255, 255, 255), 100)
Name
Type
Description

Start

Position for the start of the line

End

Position for the end of the line

Color

Color of the line

Thickness

Integer

Thickness of the line

DrawCircleFilled

Renders a filled circle on game screen


Renderer.DrawCircleFilled(Vector2D(100, 100), Color(255, 255, 255, 255), 300)
Name
Type
Description

Position

Position for the circle to be rendered

Color

Color of the circle

Radius

Integer

Radius of the circle

DrawCircleGradient3D

Renders a circle with a gradient on game screen

Renderer.DrawCircleGradient3D(Vector(100, 100, 100) Color(255, 255, 255, 255), Color(255, 255, 255, 0), 32) 

Position

Inner Color

Outer Color

Radius

Integer

DrawCircle3D

Renders a circle on game screen

Renderer.DrawCircle3D(Vector(100, 100, 100) Color(255, 255, 255, 255), 32) 

Position

Color

Radius

Integer

DrawRect

Renders a rectangle on game screen

Renderer.DrawRect(Vector2D(100, 100), Vector2D(200, 200), Color(255, 255, 255, 255))

Color

Rounding

Integer

Rounding is an optional parameter, if left without a value, it will be set to 0

DrawRectFilled

Renders a filled rectangle on game screen

Renderer.DrawRectFilled(Vector2D(100, 100), Vector2D(200, 200), Color(255, 255, 255, 255))

Color

Rounding

Integer

Rounding is an optional parameter, if left without a value, it will be set to 0

GetScreenSize

Returns dimensions of screen

Renderer.GetScreenSize()

CreateTextureFromBase64

Creates an image from base64 string

local texture = Renderer.CreateTextureFromBase64(string, Vector2D(500, 500))
Name
Type

Texture Data

String

Initial Size

CreateTextureFromBytes

Creates an image from byte array

local texture = Renderer.CreateTextureFromBytes(byte, Vector2D(500, 500))
Name
Type

Texture Data

Byte Array

Initial Size

DrawTexture

Renders texture on screen

Renderer.DrawTexture(texture, Vector2D(100, 100), Vector2D(100, 100))
Name
Type

Texture

Texture

Position

Last updated