diff --git a/public/reference/data.json b/public/reference/data.json index 018570a85c..0df5e709a3 100644 --- a/public/reference/data.json +++ b/public/reference/data.json @@ -10675,7 +10675,7 @@ { "file": "src/dom/dom.js", "line": 1159, - "description": "

Creates a dropdown menu <select></select> element.

\n

The parameter is optional. If true is passed, as in\nlet mySelect = createSelect(true), then the dropdown will support\nmultiple selections. If an existing <select></select> element\nis passed, as in let mySelect = createSelect(otherSelect), the existing\nelement will be wrapped in a new p5.Element\nobject.

\n

Dropdowns extend the p5.Element class with a few\nhelpful methods for managing options:

\n\n", + "description": "

Creates a dropdown menu <select></select> element.

\n

The parameter is optional. If true is passed, as in\nlet mySelect = createSelect(true), then the dropdown will support\nmultiple selections. If an existing <select></select> element\nis passed, as in let mySelect = createSelect(otherSelect), the existing\nelement will be wrapped in a new p5.Element\nobject.

\n

Dropdowns extend the p5.Element class with a few\nhelpful methods for managing options:

\n\n", "itemtype": "method", "name": "createSelect", "return": { @@ -10723,7 +10723,7 @@ { "file": "src/dom/dom.js", "line": 1440, - "description": "

Creates a radio button element.

\n

The parameter is optional. If a string is passed, as in\nlet myRadio = createSelect('food'), then each radio option will\nhave \"food\" as its name parameter: <input name=\"food\"></input>.\nIf an existing <div></div> or <span></span>\nelement is passed, as in let myRadio = createSelect(container), it will\nbecome the radio button's parent element.

\n

Radio buttons extend the p5.Element class with a few\nhelpful methods for managing options:

\n\n", + "description": "

Creates a radio button element.

\n

The parameter is optional. If a string is passed, as in\nlet myRadio = createSelect('food'), then each radio option will\nhave \"food\" as its name parameter: <input name=\"food\"></input>.\nIf an existing <div></div> or <span></span>\nelement is passed, as in let myRadio = createSelect(container), it will\nbecome the radio button's parent element.

\n

Radio buttons extend the p5.Element class with a few\nhelpful methods for managing options:

\n\n", "itemtype": "method", "name": "createRadio", "return": { @@ -13116,7 +13116,7 @@ { "file": "src/image/loading_displaying.js", "line": 888, - "description": "

Draws an image to the canvas.

\n

The first parameter, img, is the source image to be drawn. img can be\nany of the following objects:

\n\n

The second and third parameters, dx and dy, set the coordinates of the\ndestination image's top left corner. See\nimageMode() for other ways to position images.

\n

Here's a diagram that explains how optional parameters work in image():

\n

\n

The fourth and fifth parameters, dw and dh, are optional. They set the\nthe width and height to draw the destination image. By default, image()\ndraws the full source image at its original size.

\n

The sixth and seventh parameters, sx and sy, are also optional.\nThese coordinates define the top left corner of a subsection to draw from\nthe source image.

\n

The eighth and ninth parameters, sw and sh, are also optional.\nThey define the width and height of a subsection to draw from the source\nimage. By default, image() draws the full subsection that begins at\n(sx, sy) and extends to the edges of the source image.

\n

The ninth parameter, fit, is also optional. It enables a subsection of\nthe source image to be drawn without affecting its aspect ratio. If\nCONTAIN is passed, the full subsection will appear within the destination\nrectangle. If COVER is passed, the subsection will completely cover the\ndestination rectangle. This may have the effect of zooming into the\nsubsection.

\n

The tenth and eleventh paremeters, xAlign and yAlign, are also\noptional. They determine how to align the fitted subsection. xAlign can\nbe set to either LEFT, RIGHT, or CENTER. yAlign can be set to\neither TOP, BOTTOM, or CENTER. By default, both xAlign and yAlign\nare set to CENTER.

\n", + "description": "

Draws an image to the canvas.

\n

The first parameter, img, is the source image to be drawn. img can be\nany of the following objects:

\n\n

The second and third parameters, dx and dy, set the coordinates of the\ndestination image's top left corner. See\nimageMode() for other ways to position images.

\n

Here's a diagram that explains how optional parameters work in image():

\n

\n

The fourth and fifth parameters, dw and dh, are optional. They set the\nthe width and height to draw the destination image. By default, image()\ndraws the full source image at its original size.

\n

The sixth and seventh parameters, sx and sy, are also optional.\nThese coordinates define the top left corner of a subsection to draw from\nthe source image.

\n

The eighth and ninth parameters, sw and sh, are also optional.\nThey define the width and height of a subsection to draw from the source\nimage. By default, image() draws the full subsection that begins at\n(sx, sy) and extends to the edges of the source image.

\n

The ninth parameter, fit, is also optional. It enables a subsection of\nthe source image to be drawn without affecting its aspect ratio. If\nCONTAIN is passed, the full subsection will appear within the destination\nrectangle. If COVER is passed, the subsection will completely cover the\ndestination rectangle. This may have the effect of zooming into the\nsubsection.

\n

The tenth and eleventh parameters, xAlign and yAlign, are also\noptional. They determine how to align the fitted subsection. xAlign can\nbe set to either LEFT, RIGHT, or CENTER. yAlign can be set to\neither TOP, BOTTOM, or CENTER. By default, both xAlign and yAlign\nare set to CENTER.

\n", "itemtype": "method", "name": "image", "example": [ diff --git a/src/content/reference/en/p5/createRadio.mdx b/src/content/reference/en/p5/createRadio.mdx index 12baaaf83b..9830d5824b 100644 --- a/src/content/reference/en/p5/createRadio.mdx +++ b/src/content/reference/en/p5/createRadio.mdx @@ -28,7 +28,7 @@ description: >