Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Client Moderato

Canvas:DrawRect

Draws a fille Rect on the Canvas<br/></br>This method can only be called from inside <code>Update</code> event

Non ancora tradotto

Sintassi

Lua
my_canvas:DrawRect(texture_path, screen_position, screen_size, render_color = Color.WHITE, blend_mode = BlendMode.Opaque)

Parametri

Nome Tipo Predefinito Descrizione
texture_path ImagePath Pass empty to use default white Texture
screen_position Vector2D
screen_size Vector2D
render_color facoltativo Color Color.WHITE
blend_mode facoltativo BlendMode BlendMode.Opaque