Colshapes::newRectangle: Difference between revisions
m (category) |
(Add missing dimension optional parameter) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
Creates a rectangle (square) ColShape 2D plane | |||
==Parameters== | ==Parameters== | ||
* '''x: | * '''x:''' {{RageType|Number}} in float | ||
* '''y: | * '''y:''' {{RageType|Number}} in float | ||
* '''width: | * '''width:''' {{RageType|Number}} in float | ||
* '''height: | * '''height:''' {{RageType|Number}} in float | ||
* '''dimension:''' {{RageType|Number}} (optional) | |||
==Syntax== | ==Syntax== | ||
{{Shared}} | {{Shared}} | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.colshapes.newRectangle(x, y, width, height) | mp.colshapes.newRectangle(x, y, width, height, dimension) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 15: | Line 17: | ||
[[Category:ColShape]] | [[Category:ColShape API]] | ||
[[Category:Shared Function]] | [[Category:Shared Function]] | ||
Latest revision as of 12:58, 20 October 2020
Creates a rectangle (square) ColShape 2D plane
Parameters
- x: Number in float
- y: Number in float
- width: Number in float
- height: Number in float
- dimension: Number (optional)
Syntax
Shared
mp.colshapes.newRectangle(x, y, width, height, dimension)
See Also
- Functions
- Properties
- Arrays
- Functions