Skip to content

Commit 85d487c

Browse files
author
lauren mccarthy
committed
docs
1 parent c84d0c8 commit 85d487c

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

docs/yuidoc-p5-theme/layouts/main.handlebars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<li><a href="../reference/">Reference</a></li>
6868
<li><a href="../libraries/">Libraries</a></li>
6969
<li><a href="../learn/">Learn</a></li>
70+
<li><a href="../learn/#examples">Examples</a></li>
7071
<li><a href="../contribute/">Contribute</a></li>
7172
<li><a href="http://forum.processing.org/two/" target=_blank class="other-link">Forum</a></li>
7273
<li><a href="http://github.com/lmccart/p5.js" target=_blank class="other-link">Github</a></li>

lib/addons/p5.dom.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,15 @@ var p5DOM = (function(){
511511
* @param {Number} x x-position relative to upper left of window
512512
* @param {Number} y y-position relative to upper left of window
513513
* @return {p5.Element}
514+
* @example
515+
* <div><code class='norender'>
516+
* function setup() {
517+
* var cnv = createCanvas(100, 100);
518+
* // positions canvas 50px to right and 100px
519+
* // below upper left corner of the window
520+
* cnv.position(50, 100);
521+
* }
522+
* </code></div>
514523
*/
515524
p5.Element.prototype.position = function(x, y) {
516525
this.elt.style.position = 'absolute';

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
}
2929
],
3030
"dependencies": {
31+
"grunt-update-json": "^0.2.1",
3132
"reqwest": "~0.9.6"
3233
},
3334
"files": [

0 commit comments

Comments
 (0)