p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. Looking for p5.js 2.0? http://beta.p5js.org
81 matches across 8 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | test/manual-test-examples/p5.Table/matchRow/sketch.js | 22 | print(result.getString('name')); // Prints "Snake" |
| HIGH | test/manual-test-examples/p5.Table/getObject/sketch.js | 21 | print('Without a header column:', table.getObject()); |
| HIGH | test/manual-test-examples/p5.Table/getObject/sketch.js | 22 | print('With a header column:', table.getObject('name')); |
| HIGH | test/manual-test-examples/p5.Table/findRows/sketch.js | 27 | print(rows[i].getString('name') + ': ' + rows[i].getString('type')); |
| HIGH | test/manual-test-examples/p5.Table/matchRows/sketch.js | 27 | print(rows[i].getString('name') + ': ' + rows[i].getString('type')); |
| HIGH | test/manual-test-examples/p5.Table/trim/sketch.js | 21 | print(table.getColumn('name')); |
| HIGH | test/manual-test-examples/p5.Table/trim/sketch.js | 22 | print(table.getColumn('type')); |
| HIGH | test/manual-test-examples/p5.Table/trim/sketch.js | 25 | print(table.getColumn('name')); |
| HIGH | test/manual-test-examples/p5.Table/trim/sketch.js | 26 | print(table.getColumn('type')); |
| HIGH | …t/manual-test-examples/p5.Table/removeTokens/sketch.js | 21 | print(table.getColumn('name')); |
| HIGH | …t/manual-test-examples/p5.Table/removeTokens/sketch.js | 22 | print(table.getColumn('type')); |
| HIGH | …t/manual-test-examples/p5.Table/removeTokens/sketch.js | 26 | print(table.getColumn('name')); |
| HIGH | …t/manual-test-examples/p5.Table/removeTokens/sketch.js | 27 | print(table.getColumn('type')); |
| HIGH | test/manual-test-examples/p5.Table/getColumn/sketch.js | 21 | print(table.getColumn('name')); |
| HIGH | …ual-test-examples/addons/p5.sound/peakDetect/sketch.js | 32 | print('source duration: ' + src_length); |
| HIGH | …manual-test-examples/async/loadJSON_callback/sketch.js | 46 | print(result); // result is ready! |
| HIGH | …ual-test-examples/async/loadStrings_callback/sketch.js | 18 | print('In setup(), there are ' + result.length + ' lines in the result'); |
| HIGH | …ual-test-examples/async/loadStrings_callback/sketch.js | 27 | print( |
| HIGH | …ual-test-examples/async/loadStrings_callback/sketch.js | 30 | print('Click the mouse to display a different random line!'); |
| HIGH | …al-test-examples/async/loadStrings_manyLines/sketch.js | 21 | print('In setup(), there are ' + result.length + ' lines in the result'); |
| HIGH | …al-test-examples/async/loadStrings_manyLines/sketch.js | 30 | print( |
| HIGH | …al-test-examples/async/loadStrings_manyLines/sketch.js | 33 | print('Click the mouse to display a different random line!'); |
| HIGH | …nual-test-examples/async/loadStrings_preload/sketch.js | 28 | print( |
| HIGH | …nual-test-examples/async/loadStrings_preload/sketch.js | 31 | print('Click the mouse to display a different random line!'); |
| HIGH | …l-test-examples/learningprocessing/chp6/example_6_7.js | 29 | print(' The mouse was pressed! '); |
| HIGH | …l-test-examples/learningprocessing/chp6/example_6_4.js | 13 | print(x); |
| HIGH | …/learningprocessing/chp10/example_10_4/example_10_4.js | 23 | print(' 5 seconds have passed! '); |
| HIGH | …/learningprocessing/chp10/example_10_9/example_10_9.js | 32 | print(' 2 seconds have passed! '); |
| HIGH | …l-test-examples/learningprocessing/chp3/example_3_6.js | 48 | print('Take me to your leader!'); |
| HIGH | …l-test-examples/learningprocessing/chp4/example_4_5.js | 25 | print(key); |
| HIGH | src/data/p5.TypedDict.js | 313 | print() { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/unit/io/loadJSON.js | 121 | sketch.preload = function() { |
| LOW | test/manual-test-examples/p5.Table/saveTable/sketch.js | 21 | save(table, 'animals.csv'); |
| LOW | …manual-test-examples/async/loadJSON_callback/sketch.js | 1 | // This example gets weather for any city based on user input. |
| LOW | …manual-test-examples/webgl/geometryImmediate/sketch.js | 61 | // QUAD_STRIP and TRIANGLE_STRIP need the vertices of each shared side |
| LOW | …l-test-examples/learningprocessing/chp3/example_3_1.js | 1 | // Learning Processing |
| LOW | …/manual-test-examples/saveData/saveJSONArray/sketch.js | 21 | } |
| LOW | …ples/tutorials/Integrating-other-libraries/0/sketch.js | 1 | // This shows an example of using the "Api example" code from |
| LOW | docs/yuidoc-p5-theme/assets/js/render.js | 201 | // p.preload is an empty function created by the p5.sound library in order to use the p5.js preload system |
| LOW | docs/yuidoc-p5-theme/assets/js/reference.js | 3361 | // The Bash man page says |
| LOW | docs/yuidoc-p5-theme/assets/js/reference.js | 3381 | // so /(?:^|[|&;<>\s])/ is more appropriate. |
| LOW | docs/yuidoc-p5-theme/assets/js/reference.js | 3981 | } |
| LOW | lib/addons/p5.sound.js | 7261 | // * @param {Number} [freq2] Frequency value for band with index 2 |
| LOW | lib/addons/p5.sound.js | 7321 | |
| LOW | lib/addons/p5.sound.js | 7341 | // * |
| LOW | src/core/friendly_errors/stacktrace.js | 1 | /** |
| LOW | src/core/friendly_errors/fes_core.js | 1041 | // If we find that we're logging lots of false positives, we can |
| LOW | src/core/friendly_errors/validate_params.js | 41 | |
| LOW | src/core/friendly_errors/validate_params.js | 61 | p5Constructors[key] = p5[key]; |
| LOW | src/core/friendly_errors/validate_params.js | 81 | // - seen: true |
| LOW | src/core/friendly_errors/sketch_reader.js | 281 | for (let i = 0; i < tempArray.length; i++) { |
| LOW | src/webgl/p5.Matrix.js | 961 | |
| LOW | src/webgl/p5.Matrix.js | 981 | // const X = 2*znear/(right-left); |
| LOW | src/webgl/p5.Matrix.js | 1001 | //[ |
| LOW | src/webgl/p5.Camera.js | 3441 | |
| LOW | src/image/loading_displaying.js | 681 | if (frameDelay === 0) { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/unit/typography/p5.Font.js | 22 | let textString = 'Lorem ipsum dolor sit amet.'; |
| LOW | test/unit/typography/p5.Font.js | 22 | let textString = 'Lorem ipsum dolor sit amet.'; |
| LOW | test/unit/dom/dom.js | 1566 | const testContent = 'Lorem ipsum'; |
| LOW | test/manual-test-examples/p5.Font/simple/sketch.js | 162 | "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a gall |
| LOW | test/manual-test-examples/p5.Font/system/sketch.js | 20 | 'Simple long Text: Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', |
| LOW | test/manual-test-examples/p5.Font/callback/sketch.js | 13 | 'Simple long Text: Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', |
| LOW | test/manual-test-examples/p5.Font/custom/sketch.js | 24 | 'Simple long Text: Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', |
| LOW | test/manual-test-examples/p5.Font/custom/sketch.js | 593 | var text = 'Lorem ipsum dolor sit amet.'; |
| LOW | test/manual-test-examples/p5.Font/custom/sketch.js | 593 | var text = 'Lorem ipsum dolor sit amet.'; |
| LOW | test/js/modernizr.js | 5 | if("reportValidity"in A)return!0;var e,t=!1;return Modernizr.formvalidationapi=!0,A.addEventListener("submit",function(A |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/js/modernizr.js | 2 | * https://modernizr.com/download/?-adownload-ambientlight-animation-apng-appearance-applicationcache-atobbtoa-audio-aud |
| MEDIUM | test/js/modernizr.js | 4 | if(!Modernizr.audio.wav)return void addTest("audiopreload",!1);r.src="data:audio/wav;base64,UklGRvwZAABXQVZFZm10IBAAAAAB |
| MEDIUM | test/js/modernizr.js | 4 | if(!Modernizr.audio.wav)return void addTest("audiopreload",!1);r.src="data:audio/wav;base64,UklGRvwZAABXQVZFZm10IBAAAAAB |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/test-reference.html | 216 | .filter(function excludeIfNoBrowserSupportFor(filename) { |
| LOW | test/unit/core/structure.js | 73 | function assertCanPreserveRenderState(work) { |
| LOW | test/unit/webgl/p5.Framebuffer.js | 225 | function setupAndReturnFramebuffer() { |
| LOW | test/unit/webgl/p5.Geometry.js | 173 | function assertGeometryRendersMatch(drawGeometry, lightingModes) { |
| LOW | docs/preprocessor.js | 261 | function renderItemDescriptionsAsMarkdown(item) { |
| LOW | docs/preprocessor.js | 271 | function renderDescriptionsAsMarkdown(data) { |
| LOW | docs/yuidoc-p5-theme/assets/js/reference.js | 2830 | function allowAnywhereFoldCaseAndRenumberGroups(regex) { |
| LOW | docs/yuidoc-p5-theme/assets/js/reference.js | 3582 | function recombineTagsAndDecorations(job) { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/first-timers.yml | 1 | # You can create the issue in a different repo than where the problem is. Just make sure you have installed the bot on t |
| MEDIUM | .github/first-timers.yml | 5 | # you can change the labels to suit your needs if "first-timers-only" is not what you are looking for. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/webgl/p5.Texture.js | 373 | // for webgl 1 we need to check if the texture is power of two |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/js/sinon.js | 5155 | handleRequest: function handleRequest(xhr) { |