DrawRect: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|DrawRect(sX, sY, sW, sH [, r, g, b])}} {{FuncParameters}} {{FuncParam|sX|__EDIT_ME__}} {{FuncParam...")
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Draw rectangle in screen space.}}


{{FuncSyntax|DrawRect(sX, sY, sW, sH [, r, g, b])}}
{{FuncSyntax|DrawRect(sX, sY, sW, sH)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|sX|__EDIT_ME__}}
{{FuncParam|sX|Start X location.}}
{{FuncParam|sY|__EDIT_ME__}}
{{FuncParam|sY|Start Y location.}}
{{FuncParam|sW|__EDIT_ME__}}
{{FuncParam|sW|Width}}
{{FuncParam|sH |__EDIT_ME__}}
{{FuncParam|sH|Height}}
{{FuncParam|r|__EDIT_ME__}}
{{FuncParam|g|__EDIT_ME__}}
{{FuncParamOptional|b|__EDIT_ME__}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns nothing.}}


== Example ==
== Example ==
Line 20: Line 17:


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[DrawText]]
* [[SetDrawColor]]
* [[SetTextDrawScale]]
* [[GetTextSize]]
* [[DrawLine]]
* [[DrawLine3D]]
* [[DrawPoint3D]]
* [[DrawCircle3D]]
* [[DrawBox]]
* [[DrawRect]]
* [[DrawTexture]]
* [[DrawTextureEx]]
* [[DrawMaterial]]

Latest revision as of 20:25, 30 August 2020

DrawRect

Type: Function
Context: Client
Introduced: v1.0

Description

Draw rectangle in screen space.

Syntax

DrawRect(sX, sY, sW, sH)

Parameters

  • sX
    Start X location.
  • sY
    Start Y location.
  • sW
    Width
  • sH
    Height

Return Value

  • Returns nothing.

Example

__EDIT_ME__

See also