File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
docs/yuidoc-p5-theme/layouts Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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' ;
Original file line number Diff line number Diff line change 2828 }
2929 ],
3030 "dependencies" : {
31+ "grunt-update-json" : " ^0.2.1" ,
3132 "reqwest" : " ~0.9.6"
3233 },
3334 "files" : [
You can’t perform that action at this time.
0 commit comments