Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mhackfly/iframe4p5

sketch.html is an HTML page that displays a sketch, a p5.js script, in an iframe with appearance management
https://github.com/mhackfly/iframe4p5

html-css-javascript iframe p5js sketch

Last synced: 11 days ago
JSON representation

sketch.html is an HTML page that displays a sketch, a p5.js script, in an iframe with appearance management

Awesome Lists containing this project

README

        

# iframe4p5
> **sketch.html** is an HTML page that displays a sketch, a **p5.js** script, in an iframe with appearance management. Example of integrating a sketch into an iframe in the **index.html** file:

>> ``

>Functions are defined to modify the styles of the iframe:

>> **iframeBorder(border):** Modifies the border of the iframe.
>> **iframeBorderRadius(border_radius):** Modifies the border radius of the iframe and the canvas.
>> **iframeBackgroundColor(background_color):** Changes the background color of the iframe.
>> **iframePadding(padding):** Adjusts the padding of the iframe.
>> **iframeBoxShadow(box_shadow):** Adds a box shadow to the iframe.