Skip to content

Commit

Permalink
fixes issue processing#7366
Browse files Browse the repository at this point in the history
  • Loading branch information
Prajyot05 committed Nov 8, 2024
1 parent cfc17d3 commit ef009fd
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/dom/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1463,15 +1463,28 @@ p5.prototype.createSelect = function(...args) {
* @example
* <div>
* <code>
* let style = document.createElement('style');
* style.innerHTML = `
* .p5-radio label {
* display: flex;
* align-items: center;
* }
* .p5-radio input {
* margin-right: 5px;
* }
* `;
* document.head.appendChild(style);
*
* let myRadio;
*
* function setup() {
* createCanvas(100, 100);
*
* // Create a radio button element and place it
* // in the top-left corner.
* // in the top-right corner.
* myRadio = createRadio();
* myRadio.position(0, 0);
* myRadio.class('p5-radio');
* myRadio.size(60);
*
* // Add a few color options.
Expand Down Expand Up @@ -1535,9 +1548,10 @@ p5.prototype.createSelect = function(...args) {
* createCanvas(100, 100);
*
* // Create a radio button element and place it
* // in the top-left corner.
* // in the top-right corner.
* myRadio = createRadio();
* myRadio.position(0, 0);
* myRadio.class('p5-radio');
* myRadio.size(50);
*
* // Add a few color options.
Expand Down

0 comments on commit ef009fd

Please sign in to comment.