Skip to content

Instantly share code, notes, and snippets.

@s-estay
Last active September 4, 2019 19:04
Show Gist options
  • Save s-estay/517d75f47a38f9088264ca8a57bfc011 to your computer and use it in GitHub Desktop.
Save s-estay/517d75f47a38f9088264ca8a57bfc011 to your computer and use it in GitHub Desktop.
Include new p5 objects within div tag in md-file
<script src = "{{site.baseurl}}/assets/js/instance-mode-example-one.js"></script>
<script src = "{{site.baseurl}}/assets/js/instance-mode-example-two.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.min.js"></script>
<div class = "p5js-script-div" id = "script-1"></div>
<div class = "p5js-script-div" id = "script-2"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment