p5js-snippets
p5js-snippets copied to clipboard
overloads only address the 0'th index of the emement
overloads only address/utilizes the 0'th index of the element
they should make a new instance of the p5 function for each configuration of possible arguments/parameters
"overloads": [
{
"line": 377,
"params": [
{
"name": "x",
"description": "<p>x-coordinate of the rectangle.</p>\n",
"type": "Number"
},
{
"name": "y",
"description": "<p>y-coordinate of the rectangle.</p>\n",
"type": "Number"
},
{
"name": "w",
"description": "<p>width of the rectangle.</p>\n",
"type": "Number"
},
{
"name": "h",
"description": "<p>height of the rectangle.</p>\n",
"type": "Number"
},
{
"name": "tl",
"description": "<p>optional radius of top-left corner.</p>\n",
"type": "Number",
"optional": true
},
{
"name": "tr",
"description": "<p>optional radius of top-right corner.</p>\n",
"type": "Number",
"optional": true
},
{
"name": "br",
"description": "<p>optional radius of bottom-right corner.</p>\n",
"type": "Number",
"optional": true
},
{
"name": "bl",
"description": "<p>optional radius of bottom-left corner.</p>\n",
"type": "Number",
"optional": true
}
],
"return": {
"description": "the p5 object.",
"type": "P5"
}
},
{
"line": 427,
"params": [
{
"name": "x",
"description": "",
"type": "Number"
},
{
"name": "y",
"description": "",
"type": "Number"
},
{
"name": "w",
"description": "",
"type": "Number"
},
{
"name": "h",
"description": "",
"type": "Number"
},
{
"name": "detailX",
"description": "",
"type": "Number",
"optional": true
},
{
"name": "detailY",
"description": "",
"type": "Number",
"optional": true
}
],
"chainable": 1
}
]