Skip to content

Commit 53cb71d

Browse files
author
lauren mccarthy
committed
packaging new release
1 parent 0829b1c commit 53cb71d

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

lib/p5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! p5.js v0.3.8 October 07, 2014 */
1+
/*! p5.js v0.3.9 October 10, 2014 */
22
var shim = function (require) {
33
window.requestDraw = function () {
44
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback, element) {

lib/p5.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "https://github.com/lmccart/p5.js.git"
66
},
7-
"version": "0.3.8",
7+
"version": "0.3.9",
88
"devDependencies": {
99
"almond": "~0.2.7",
1010
"amdclean": "~0.3.3",

src/environment/environment.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,30 @@ define(function(require) {
324324
}
325325
};
326326

327+
/*
328+
*
329+
*
330+
* devicePixelScaling
331+
* @param {Boolean} val whether the sketch should be scaled or not
332+
* @example
333+
* <div>
334+
* <code>
335+
* function setup() {
336+
* }
337+
* function mousePressed() {
338+
* }
339+
* </code>
340+
* </div>
341+
*/
342+
// p5.prototype.devicePixelScaling = function(val) {
343+
// if (val) {
344+
// this._pixelDensity = window.devicePixelRatio || 1;
345+
// } else {
346+
// this._pixelDensity = 1;
347+
// }
348+
// this.resizeCanvas(this.width, this.height);
349+
// }
350+
327351
function launchFullscreen(element) {
328352
var enabled = document.fullscreenEnabled ||
329353
document.webkitFullscreenEnabled ||

0 commit comments

Comments
 (0)