Skip to content

Commit

Permalink
better demo?!
Browse files Browse the repository at this point in the history
  • Loading branch information
sepans committed May 4, 2015
1 parent 7f8d26b commit 9607c6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

<p>Simple Polymer element for p5.js live coding. It allows multiple instances of p5.js run side by side. <br> <a href="http://sepans.github.io/p5-element/components/p5-element/" target="_blank">Documentation</a> - <a href="https://github.com/sepans/p5-element" target="_blank">Source code</a></p>

<!-- <p5-element></p5-element>
-->
<p5-element></p5-element>

<p5-element id="second"></p5-element>


Expand Down
2 changes: 1 addition & 1 deletion p5-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
* @property drawFunction
* @type {String}
*/
drawFunction: 'background(255);\nrect(x, y, 20, 20);\nx++;\ny++;\nif(x > width - 20) x = 0;\nif(y > height - 20) y = 0; ',
drawFunction: 'fill(255,5);\nrect(0, 0, width, height);\nrect(x, y, 20, 20);\nx++;\ny++;\nif(x > width - 20) x = 0;\nif(y > height - 20) y = 0; ',
/**
* Hide the code block and only display canvas
*
Expand Down

0 comments on commit 9607c6c

Please sign in to comment.