diff --git a/demo.html b/demo.html index 061f597..964270e 100644 --- a/demo.html +++ b/demo.html @@ -23,8 +23,8 @@

Simple Polymer element for p5.js live coding. It allows multiple instances of p5.js run side by side.
Documentation - Source code

- + + diff --git a/p5-element.html b/p5-element.html index 91cae94..a5e8724 100644 --- a/p5-element.html +++ b/p5-element.html @@ -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 *