Skip to content

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

License

Notifications You must be signed in to change notification settings

mhackfly/iframe4p5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published