diff --git a/p5-element.html b/p5-element.html index a5e8724..3958eb1 100644 --- a/p5-element.html +++ b/p5-element.html @@ -151,7 +151,7 @@ * @property drawFunction * @type {String} */ - 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; ', + drawFunction: 'fill(255,5);\nrect(-1, -1, width+1, height+1);\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 *