Skip to content

Commit

Permalink
style: auto resize
Browse files Browse the repository at this point in the history
  • Loading branch information
amio committed Jul 28, 2020
1 parent 95b42d4 commit 96978db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<style>
body { padding: 0; margin: 0; background-color: #F2F2F2 }
body { display: flex; align-items: center; justify-content: center; }
body canvas { width: auto !important; height: auto !important; max-width: 90vw; max-height: 90vh }
</style>
<script src="//cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.dom.min.js"></script>
Expand Down

0 comments on commit 96978db

Please sign in to comment.