File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1463,6 +1463,18 @@ p5.prototype.createSelect = function(...args) {
14631463 * @example
14641464 * <div>
14651465 * <code>
1466+ * let style = document.createElement('style');
1467+ * style.innerHTML = `
1468+ * .p5-radio label {
1469+ * display: flex;
1470+ * align-items: center;
1471+ * }
1472+ * .p5-radio input {
1473+ * margin-right: 5px;
1474+ * }
1475+ * `;
1476+ * document.head.appendChild(style);
1477+ *
14661478 * let myRadio;
14671479 *
14681480 * function setup() {
@@ -1472,6 +1484,7 @@ p5.prototype.createSelect = function(...args) {
14721484 * // in the top-left corner.
14731485 * myRadio = createRadio();
14741486 * myRadio.position(0, 0);
1487+ * myRadio.class('p5-radio');
14751488 * myRadio.size(60);
14761489 *
14771490 * // Add a few color options.
@@ -1538,6 +1551,7 @@ p5.prototype.createSelect = function(...args) {
15381551 * // in the top-left corner.
15391552 * myRadio = createRadio();
15401553 * myRadio.position(0, 0);
1554+ * myRadio.class('p5-radio');
15411555 * myRadio.size(50);
15421556 *
15431557 * // Add a few color options.
You can’t perform that action at this time.
0 commit comments