This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//module.exports = function(options, undef) { | |
"use strict"; | |
const TAU = 2 * Math.PI, | |
lerp = (start, stop, amt = 0) => +start + amt*(stop - start), | |
sq = n => n*n, | |
pjsCheck = obj => obj != null && 'noLoop' in obj, | |
argsErr = (mtd, len, min) => { | |
throw `Too few args passed to ${mtd}() [${len} < ${min}].`; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* No Repeat ID Input (v2.1.1) | |
* by GoToLoop (2015/Sep/15) | |
* | |
* Forum.Processing.org/two/discussion/12532/ | |
* windowjs-cross-mode-alert-confirm-prompt-other-js-api-for-java#Item_2 | |
* | |
* Forum.Processing.org/two/discussion/869/check-array-contents-with-arraylist | |
* | |
* Studio.ProcessingTogether.com/sp/pad/export/ro.9$Bjf6i21oXBw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Keyboard Input Library | |
* Andrew Errity v0.2 (2015-Oct-01) | |
* GoToLoop v1.0.4 (2015-Oct-22) | |
* | |
* https://Forum.Processing.org/two/discussion/13175/ | |
* do-whille-is-not-working-how-it-suppose-to#Item_12 | |
* | |
* https://GitHub.com/aerrity/Inputs/blob/master/src/Inputs.java | |
* https://Gist.GitHub.com/GoToLoop/bba0c288aaeeb5ef9bb1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Resize the image to a new width and height using nearest neighbor algorithm. | |
* To make the image scale proportionally, | |
* use 0 as the value for the wide or high parameters. | |
* For instance, to make the width of an image 150 pixels, | |
* and change the height using the same proportion, use resize(150, 0). | |
* Otherwise same usage as the regular resize(). | |
* | |
* Note: Disproportionate resizing squashes "pixels" from squares to rectangles. | |
* This works about 10 times slower than the regular resize. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
CircleMutualAttraction (v2.3.8) | |
by Speykious (2017-Jun-27) | |
mod GoToLoop (2017-Jun-29) | |
https://Forum.Processing.org/two/discussion/23226/ | |
new-python-example-for-the-fisica-library#Item_2 | |
https://Gist.GitHub.com/GoToLoop/1861619991354ed7d063026658270689 | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Countdown Class (v1.2.5) | |
* GoToLoop (2017/Aug/26) | |
* | |
* https://Forum.Processing.org/two/discussion/27733/ | |
* countdown-class-library-for-java-js-python | |
* | |
* https://Forum.Processing.org/two/discussion/23846/ | |
* time-delay-in-python-mode#Item_11 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Countdown Class (v1.2.5) | |
GoToLoop (2017/Aug/28) | |
Forum.Processing.org/two/discussion/27733/ | |
countdown-class-library-for-java-js-python#Item_2 | |
Forum.Processing.org/two/discussion/23846/ | |
time-delay-in-python-mode#Item_14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Countdown Class II (v1.2.5) | |
GoToLoop (2017/Aug/30) | |
Forum.Processing.org/two/discussion/27733/ | |
countdown-class-library-for-java-js-python#Item_3 | |
Forum.Processing.org/two/discussion/23846/ | |
time-delay-in-python-mode#Item_17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function adjustFrameSize() { | |
if (frameElement) { | |
frameElement.height = frameElement.frameBorder = 0; | |
frameElement.height = getDocHeight() + 'px'; | |
frameElement.width = getDocWidth() + 'px'; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Canvas Resize Watcher (v1.0) | |
* GoToLoop (2018/May/04) | |
* Developed on P3 (v3.3.5) | |
* | |
* https://Discourse.Processing.org/t/event-called-when-canvas-is-resized/6643/8 | |
* https://Gist.GitHub.com/GoToLoop/1d1eb18f468a7d5758469707276b6ea1 | |
*/ | |
package gotoloop.listener; |
OlderNewer