🎨Render
Last updated
Last updated
Vec2
, end_: Vec2
, color: Color
, rounding [?]
: number
, flags [?]
: Enum.DrawFlags
): nil
Name | Type | Description |
---|---|---|
Draws a filled rectangle.
Vec2
, end_: Vec2
, color: Color
, rounding [?]
: number
, flags [?]
: Enum.DrawFlags
, thickness [?]
: number
): nil
Name | Type | Description |
---|---|---|
Draws an unfilled rectangle.
Draw a progress rectangle.
Draws a line between two points.
Draws a series of connected lines (polyline).
Draws a circle.
Draws a filled circle.
Draws a circle with a gradient.
Draws a triangle outline.
Draws a filled triangle.
Draws a textured polygon.
Loads a font and returns its handle. Returns handle to the loaded font.
Draws text at a specified position.
Converts a 3D world position to a 2D screen position. Returns A Vec2 representing the 2D screen position and a boolean indicating visibility on the screen.
Vec2
Retrieves the current screen size, returning it as a Vec2 where x is the width and y is the height of the screen.
Calculates the size of the given text using the specified font, returning the size as a Vec2 where x is the width and y is the height of the text.
string
): integer
Loads an image and returns its handle.
Draws an image at a specified position and size.
Draws an image centered at a specified position and size.
integer
): Vec2
Retrieves the size of an image. Returns the size of the image as a Vec2.
Draws a outlined gradient rectangle.
Draws a filled gradient rectangle.
Vec2
, end_: Vec2
, color: Color
, thickness: number
, obj_rounding [?]
: number
, flags [?]
: Enum.DrawFlags
, offset [?]
: Vec2
): nil
Draws a shadow effect within a specified rectangular area.
Vec2
, radius: number
, color: Color
, thickness: number
, num_segments [?]
: integer
, flags [?]
: Enum.DrawFlags
, offset [?]
: Vec2
): nil
Draws a circle shadow effect.
Vec[]
, color: Color
, thickness: number
, flags [?]
: Enum.DrawFlags
, offset [?]
: Vec2
): nil
Draws a shadow convex polygon effect.
Vec2
, radius: number
, color: Color
, thickness: number
, num_segments: integer
, flags [?]
: Enum.DrawFlags
, offset [?]
: Vec2
): nil
Draws a shadow n-gon (polygon with n sides) effect.
Vec2
, end_: Vec2
, strength [?]
: number
, alpha [?]
: number
, rounding [?]
: number
, flags [?]
: Enum.DrawFlags
): nil
Applies a blur effect within a specified rectangular area.
Begins a new clipping region. Only the rendering within the specified rectangular area will be displayed.
nil
Ends the most recently begun clipping region, restoring the previous clipping region.
number
): nil
Begins a new rotation.
nil
End the rotation.
number
): nil
Do not forget to reset the global alpha value after your rendering.
Set the global alpha value for rendering.
nil
Reset the global alpha value for rendering to 1.0.
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 |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|