Skip to content
This repository has been archived by the owner. It is now read-only.

Commit 583090c

Browse files
author
Lauren McCarthy
committed
v0.6.2
1 parent 404a17a commit 583090c

38 files changed

+3063
-575
lines changed

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ gulp.task('getExamples', function(){
249249
var headers = {'User-Agent': 'p5.js-editor/0.0.1'};
250250
// get example source files
251251
var options = {
252-
url: 'https://api.github.com/repos/processing/p5.js-website/contents/examples/examples_src',
252+
url: 'https://api.github.com/repos/processing/p5.js-website/contents/src/data/examples/en',
253253
method: 'GET',
254254
headers: headers
255255
};
@@ -264,7 +264,7 @@ gulp.task('getExamples', function(){
264264
saveDataForCategory(requestParams);
265265
});
266266
// get example assets
267-
options.url = 'https://api.github.com/repos/processing/p5.js-website/contents/examples/examples/assets';
267+
options.url = 'https://api.github.com/repos/processing/p5.js-website/contents/src/data/examples/assets';
268268
request(options, function (error, response, body) {
269269
var assetsDest = "./public/mode_assets/p5/example_assets/";
270270
if (!error && response.statusCode == 200) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Sam Lavigne",
33
"name": "p5",
44
"description": "Javascript IDE for beginners",
5-
"version": "0.6.1",
5+
"version": "0.6.2",
66
"devDependencies": {
77
"autolinker": "^0.17.1",
88
"br-mousetrap": "~1.1.3",

public/mode_assets/p5/empty_project/libraries/p5.dom.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! p5.dom.js v0.2.12 August 17, 2016 */
1+
/*! p5.dom.js v0.2.13 Oct 1, 2016 */
22
/**
33
* <p>The web is much more than just canvas and p5.dom makes it easy to interact
44
* with other HTML5 objects, including text, hyperlink, image, input, video,
@@ -375,7 +375,7 @@
375375
* @param {Number} min minimum value of the slider
376376
* @param {Number} max maximum value of the slider
377377
* @param {Number} [value] default value of the slider
378-
* @param {Number} [step] step size for each tick of the slider
378+
* @param {Number} [step] step size for each tick of the slider (if step is set to 0, the slider will move continuously from the minimum to the maximum value)
379379
* @return {Object/p5.Element} pointer to p5.Element holding created node
380380
* @example
381381
* <div><code>
@@ -412,7 +412,11 @@
412412
elt.type = 'range';
413413
elt.min = min;
414414
elt.max = max;
415-
if (step) elt.step = step;
415+
if (step === 0) {
416+
elt.step = .000000000000000001; // smallest valid step
417+
} else if (step) {
418+
elt.step = step;
419+
}
416420
if (typeof(value) === "number") elt.value = value;
417421
return addElement(elt, this);
418422
};
@@ -1832,6 +1836,10 @@
18321836
p5.MediaElement.prototype.copy = function(){
18331837
p5.Renderer2D.prototype.copy.apply(this, arguments);
18341838
};
1839+
p5.MediaElement.prototype.mask = function(){
1840+
this.loadPixels();
1841+
p5.Image.prototype.mask.apply(this, arguments);
1842+
};
18351843
/**
18361844
* Schedule an event to be called when the audio or video
18371845
* element reaches the end. If the element is looping,

0 commit comments

Comments
 (0)