drawPattern
Draws a geometric background pattern (dots, lines, grid) within a bounded rectangular region. This is ideal for adding premium texture overlays to cards, tech HUDs, or banners.
Syntax
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
| x | int/str |
X position of the bounding box. | Required |
| y | int/str |
Y position of the bounding box. | Required |
| width | int/str |
Width of the bounding box. | Required |
| height | int/str |
Height of the bounding box. | Required |
| pattern_type | string |
The pattern style to draw: dots, lines, grid. |
dots |
| color | string |
Color of the pattern elements. | black |