Classes
Methods
h(h) → {RectPrimitive}
Sets the height of the rectangle.
Parameters:
Name | Type | Description |
---|---|---|
h |
number | the height |
- Source:
Returns:
- Type
- RectPrimitive
h(h) → {RectPrimitive}
Sets the height of the rectangle.
Parameters:
Name | Type | Description |
---|---|---|
h |
number | the height |
- Source:
Returns:
- Type
- RectPrimitive
w(w) → {RectPrimitive}
Sets the width of the rectangle.
Parameters:
Name | Type | Description |
---|---|---|
w |
number | the width |
- Source:
Returns:
- itself
- Type
- RectPrimitive
w(w) → {RectPrimitive}
Sets the width of the rectangle.
Parameters:
Name | Type | Description |
---|---|---|
w |
number | the width |
- Source:
Returns:
- itself
- Type
- RectPrimitive
wh(w, h) → {RectPrimitive}
Sets the width and height of the rectangle.
Parameters:
Name | Type | Description |
---|---|---|
w |
number | the width |
h |
number | the height |
- Source:
Returns:
- itself
- Type
- RectPrimitive
wh(w, h) → {RectPrimitive}
Sets the width and height of the rectangle.
Parameters:
Name | Type | Description |
---|---|---|
w |
number | the width |
h |
number | the height |
- Source:
Returns:
- itself
- Type
- RectPrimitive