Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 735 Bytes

File metadata and controls

13 lines (9 loc) · 735 Bytes

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:

<iframe src="sketch.html" name="sincos3D.js"></iframe>

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.