# Latest

**URL:** https://discourse.processing.org/latest.md?page=318

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 319

---

## [Multiple canvas class](https://discourse.processing.org/t/multiple-canvas-class/20889)

<div class="topic-metadata">

**Author:** [@jimbrink](https://discourse.processing.org/u/jimbrink)\
**Replies:** 6\
**Last updated:** [August 3, 2020, 1:56am UTC](https://discourse.processing.org/t/multiple-canvas-class/20889 "2020-08-03T01:56:43Z")

</div>

I started using p5.js about half year ago. I wanted two canvases in the first major project I attempted was disappointed to read createCanvas should only be used once. Before learning there were already a couple of way…

---

## [Agnostic Transparencies](https://discourse.processing.org/t/agnostic-transparencies/22997)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 3\
**Last updated:** [August 2, 2020, 9:06pm UTC](https://discourse.processing.org/t/agnostic-transparencies/22997 "2020-08-02T21:06:43Z")

</div>

Hi there. Is there any way to draw transparent objects that allow them to stay transparent no matter which order they’re drawn? Here’s a gif demonstrating how the order in which they’re drawn affects an object’s transpa…

---

## [\[SOURCE CODE + ARTICLE\] Localized Attraction Repulsion particle system](https://discourse.processing.org/t/source-code-article-localized-attraction-repulsion-particle-system/23003)

<div class="topic-metadata">

**Author:** [@ciphrd](https://discourse.processing.org/u/ciphrd)\
**Replies:** 2\
**Last updated:** [August 2, 2020, 11:06pm UTC](https://discourse.processing.org/t/source-code-article-localized-attraction-repulsion-particle-system/23003 "2020-08-02T23:06:07Z")

</div>

Hello community, I recently wrote an article about a simple technique I called Localized Attraction Repulsion between particles. It is based on attraction / repulsion between particles, but the attraction and repulsion …

---

## [How do you choose what class you add to a list with a variable?](https://discourse.processing.org/t/how-do-you-choose-what-class-you-add-to-a-list-with-a-variable/22987)

<div class="topic-metadata">

**Author:** [@no\_spaces](https://discourse.processing.org/u/no_spaces)\
**Replies:** 4\
**Last updated:** [August 2, 2020, 8:36pm UTC](https://discourse.processing.org/t/how-do-you-choose-what-class-you-add-to-a-list-with-a-variable/22987 "2020-08-02T20:36:48Z")

</div>

So I want to do something like this, where you add a new instance of a class determined by a variable (trust me, I have a good reason for this, but I can’t tell…) Class type; dummy1 list\[\] = new dummy1\[3\]; void setup()…

---

## [Would anyone know how to get the tempo/speed of a song using import processing.sound.\* library?](https://discourse.processing.org/t/would-anyone-know-how-to-get-the-tempo-speed-of-a-song-using-import-processing-sound-library/22928)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 8\
**Last updated:** [August 2, 2020, 1:40pm UTC](https://discourse.processing.org/t/would-anyone-know-how-to-get-the-tempo-speed-of-a-song-using-import-processing-sound-library/22928 "2020-08-02T13:40:24Z")

</div>

Been trying to search through the Internet. I can’t quite seem to find anything in regards to how to get the tempo/speed of a song, does anyone know any built in function or even a library? Edit: I tried to use the Mini…

---

## [Get User Input and Save It](https://discourse.processing.org/t/get-user-input-and-save-it/22935)

<div class="topic-metadata">

**Author:** [@greenArtist7](https://discourse.processing.org/u/greenArtist7)\
**Replies:** 11\
**Last updated:** [August 2, 2020, 11:10am UTC](https://discourse.processing.org/t/get-user-input-and-save-it/22935 "2020-08-02T11:10:53Z")

</div>

Hello, I need to create an app using processing for a homework assignment. I’m thinking about an app that requires the user to input text information, and use that to randomize a selection. What would be the best way fo…

---

## [Interview an experienced programmer](https://discourse.processing.org/t/interview-an-experienced-programmer/21530)

<div class="topic-metadata">

**Author:** [@juan122](https://discourse.processing.org/u/juan122)\
**Replies:** 3\
**Last updated:** [August 2, 2020, 1:06pm UTC](https://discourse.processing.org/t/interview-an-experienced-programmer/21530 "2020-08-02T13:06:05Z")

</div>

Good morning, would you like to help me? With my team do a job for the computer science faculty of Universidad Nacional de la Plata that consists of an analysis of the syntax, semantics, exception handling, etc. of Proce…

---

## [P5\_terminal\_graphics](https://discourse.processing.org/t/p5-terminal-graphics/22712)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [August 2, 2020, 1:00pm UTC](https://discourse.processing.org/t/p5-terminal-graphics/22712 "2020-08-02T13:00:10Z")

</div>

I posted this before in a topic related to a question. The last two days I have spent some time cleaning up the project and getting rid of dependencies. Anyway, what I made is a renderer that can be set using: size(112…

---

## [Changing strokeweight / radius when mousePressed](https://discourse.processing.org/t/changing-strokeweight-radius-when-mousepressed/22871)

<div class="topic-metadata">

**Author:** [@karate29](https://discourse.processing.org/u/karate29)\
**Replies:** 13\
**Last updated:** [August 2, 2020, 12:40pm UTC](https://discourse.processing.org/t/changing-strokeweight-radius-when-mousepressed/22871 "2020-08-02T12:40:32Z")

</div>

I am trying to create a free hand drawing program. I already made the colors and when you press them it changes the color and you can draw with the selected color. The problem I am coming across is I want the user to be …

---

## [With 'Essentia', is this compatible with Processing? Additionally can it get the tempo, key signature and loudness?](https://discourse.processing.org/t/with-essentia-is-this-compatible-with-processing-additionally-can-it-get-the-tempo-key-signature-and-loudness/22967)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 6\
**Last updated:** [August 2, 2020, 12:26pm UTC](https://discourse.processing.org/t/with-essentia-is-this-compatible-with-processing-additionally-can-it-get-the-tempo-key-signature-and-loudness/22967 "2020-08-02T12:26:51Z")

</div>

I was looking at Essentia and it said it is compatible with Python and JavaScript but I am not sure if this is compatible with Processing or not? This library deals with audio. Here is the link to its Github repo https:/…

---

## [New Idea: Swift Playgrounds Mode for Processing](https://discourse.processing.org/t/new-idea-swift-playgrounds-mode-for-processing/10021)

<div class="topic-metadata">

**Author:** [@XinyuYou](https://discourse.processing.org/u/XinyuYou)\
**Replies:** 11\
**Last updated:** [August 2, 2020, 9:37am UTC](https://discourse.processing.org/t/new-idea-swift-playgrounds-mode-for-processing/10021 "2020-08-02T09:37:22Z")

</div>

Hello everyone, My name is Xinyu You, a second-year postgraduate student of the National University of Defense Technology (NUDT), China. After Play with Processing, I find that I really love this! It’s one of the best …

---

## [Storing points to create gradient of shapes](https://discourse.processing.org/t/storing-points-to-create-gradient-of-shapes/21635)

<div class="topic-metadata">

**Author:** [@mrbro](https://discourse.processing.org/u/mrbro)\
**Replies:** 8\
**Last updated:** [August 2, 2020, 9:14am UTC](https://discourse.processing.org/t/storing-points-to-create-gradient-of-shapes/21635 "2020-08-02T09:14:18Z")

</div>

Hi There! So I am trying to create a smooth gradation of polygons using storing. I need to dynamically change the amount of points and store them to fade consequently. However, the code changes all the polygons at t…

---

## [I can't add stuff to my array](https://discourse.processing.org/t/i-cant-add-stuff-to-my-array/18772)

<div class="topic-metadata">

**Author:** [@alkilum](https://discourse.processing.org/u/alkilum)\
**Replies:** 10\
**Last updated:** [August 2, 2020, 4:48am UTC](https://discourse.processing.org/t/i-cant-add-stuff-to-my-array/18772 "2020-08-02T04:48:38Z")

</div>

I have an short\[\] array, and i want to add a bunch of 0s to it. Here is my code: size(800,600); short \[\] visible; for(int n=0;n\<2985984;n+=1) { visible.add(0); } I get an error saying “Cannot invoke add(int) an th…

---

## [Cannot specify sphereDetail when using createShape SPHERE](https://discourse.processing.org/t/cannot-specify-spheredetail-when-using-createshape-sphere/22912)

<div class="topic-metadata">

**Author:** [@danieltorrer](https://discourse.processing.org/u/danieltorrer)\
**Replies:** 3\
**Last updated:** [August 2, 2020, 2:41am UTC](https://discourse.processing.org/t/cannot-specify-spheredetail-when-using-createshape-sphere/22912 "2020-08-02T02:41:34Z")

</div>

When creating a sphere() you are able to specify the number of vertices it has if you previously call sphereDetail(). However seems that there is no way to specify the detail when using createShape(SPHERE, size). Does a…

---

## [Uncaught TypeError: velocity.reflect is not a function](https://discourse.processing.org/t/uncaught-typeerror-velocity-reflect-is-not-a-function/19402)

<div class="topic-metadata">

**Author:** [@mike\_ekim1024](https://discourse.processing.org/u/mike_ekim1024)\
**Replies:** 6\
**Last updated:** [August 2, 2020, 2:19am UTC](https://discourse.processing.org/t/uncaught-typeerror-velocity-reflect-is-not-a-function/19402 "2020-08-02T02:19:29Z")

</div>

The documentation clearly states there is a Vector.prototype.reflect() method, but does not exist on the object. https://p5js.org/reference/#/p5.Vector I did a console.log(p5.Vector.prototype) and it’s definitely not t…

---

## [Using the FFT library, is it possible to get the beats per minute?](https://discourse.processing.org/t/using-the-fft-library-is-it-possible-to-get-the-beats-per-minute/22965)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 5\
**Last updated:** [August 2, 2020, 2:11am UTC](https://discourse.processing.org/t/using-the-fft-library-is-it-possible-to-get-the-beats-per-minute/22965 "2020-08-02T02:11:33Z")

</div>

Using the FFT library, is it possible to get the beats per minute? If so what would I type exactly?

---

## [Can I make fill() static?](https://discourse.processing.org/t/can-i-make-fill-static/22978)

<div class="topic-metadata">

**Author:** [@alkilum](https://discourse.processing.org/u/alkilum)\
**Replies:** 4\
**Last updated:** [August 2, 2020, 2:01am UTC](https://discourse.processing.org/t/can-i-make-fill-static/22978 "2020-08-02T02:01:04Z")

</div>

So I wanted to call fill() in a subroutine and it apparently cannot be called in a static function. So I removed the static keyword and now there is no error, but the function doesn’t work anymore, it simply renders the …

---

## [Another Neural Network Trainer](https://discourse.processing.org/t/another-neural-network-trainer/22624)

<div class="topic-metadata">

**Author:** [@ivaylo](https://discourse.processing.org/u/ivaylo)\
**Replies:** 2\
**Last updated:** [August 1, 2020, 1:58pm UTC](https://discourse.processing.org/t/another-neural-network-trainer/22624 "2020-08-01T13:58:13Z")

</div>

In case someone needs it - https://github.com/iiliev/processing\_neural\_net\_trainer Cheers…

---

## [Library creation help](https://discourse.processing.org/t/library-creation-help/22923)

<div class="topic-metadata">

**Author:** [@SamuelCobb](https://discourse.processing.org/u/SamuelCobb)\
**Replies:** 6\
**Last updated:** [August 1, 2020, 1:32pm UTC](https://discourse.processing.org/t/library-creation-help/22923 "2020-08-01T13:32:40Z")

</div>

Hey guys, So, I am not the most experienced p5 user but I am trying to write a “Picking” library for a specific project of mine. In the picking library, I need to create a “buffer” which is basically a hidden canvas whi…

---

## [Is it possible for me to use the 'aubio' library for processing?](https://discourse.processing.org/t/is-it-possible-for-me-to-use-the-aubio-library-for-processing/22963)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 8\
**Last updated:** [August 1, 2020, 1:18pm UTC](https://discourse.processing.org/t/is-it-possible-for-me-to-use-the-aubio-library-for-processing/22963 "2020-08-01T13:18:21Z")

</div>

Is it possible for me to use the aubio library for processing?

---

## [loadImage does not Load Image from data folder](https://discourse.processing.org/t/loadimage-does-not-load-image-from-data-folder/22951)

<div class="topic-metadata">

**Author:** [@JohnnyWhy](https://discourse.processing.org/u/JohnnyWhy)\
**Replies:** 7\
**Last updated:** [August 1, 2020, 12:46pm UTC](https://discourse.processing.org/t/loadimage-does-not-load-image-from-data-folder/22951 "2020-08-01T12:46:51Z")

</div>

2020-07-31T07:00:00Z (UTC) I am using the loadImage example, and definately have the image saved in the data folder of the active sketch. Except for the web URL example below, I get the error message: “The file “moire.…

---

## [How to load the HTLM from HTTPS](https://discourse.processing.org/t/how-to-load-the-htlm-from-https/22956)

<div class="topic-metadata">

**Author:** [@Dozii](https://discourse.processing.org/u/Dozii)\
**Replies:** 1\
**Last updated:** [July 31, 2020, 8:11pm UTC](https://discourse.processing.org/t/how-to-load-the-htlm-from-https/22956 "2020-07-31T20:11:37Z")

</div>

I try to load the html from https, but loadImage doesn’t work. Load from https://unicorninwonderland.com/ void setup(){ // Load from https://unicorninwonderland.com/ PImage image = loadImage( "https://unicorninwond…

---

## [Removing objects from ArrayList doesnt work after index higher than 0](https://discourse.processing.org/t/removing-objects-from-arraylist-doesnt-work-after-index-higher-than-0/22930)

<div class="topic-metadata">

**Author:** [@Bastilling](https://discourse.processing.org/u/Bastilling)\
**Replies:** 5\
**Last updated:** [July 31, 2020, 3:26pm UTC](https://discourse.processing.org/t/removing-objects-from-arraylist-doesnt-work-after-index-higher-than-0/22930 "2020-07-31T15:26:45Z")

</div>

Hey! I have been using Processing recently to create small games just for fun since I am stuck at home a lot due to the Covid 19 Situation. So this is my first time posting on the forum because I ran into a problem this…

---

## [\_\_main\_\_.PVector vs. processing.core.PVector](https://discourse.processing.org/t/main-pvector-vs-processing-core-pvector/22940)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 4\
**Last updated:** [July 31, 2020, 3:11pm UTC](https://discourse.processing.org/t/main-pvector-vs-processing-core-pvector/22940 "2020-07-31T15:11:50Z")

</div>

I was playing with OpenCV and sometimes I use a method that returns a PVector like: opencv.getAverageFlow(), but it is a \<type 'processing.core.PVector'\> and not \<class '\_\_main\_\_.PVector'\> as one created by the sketch. …

---

## [Writing a rotate() to PGraphics for SVG output seems to convert to degrees](https://discourse.processing.org/t/writing-a-rotate-to-pgraphics-for-svg-output-seems-to-convert-to-degrees/22861)

<div class="topic-metadata">

**Author:** [@makoho](https://discourse.processing.org/u/makoho)\
**Replies:** 3\
**Last updated:** [July 31, 2020, 11:06am UTC](https://discourse.processing.org/t/writing-a-rotate-to-pgraphics-for-svg-output-seems-to-convert-to-degrees/22861 "2020-07-31T11:06:21Z")

</div>

I have exported a drawing that I create on a PGraphics object for SVG like this: p = createGraphics((int)drawingSize.x, (int)drawingSize.y, SVG, filename + ".svg"); p.beginDraw(); float angleIncrement = TAU/lineCo…

---

## [How do I maximize the sketch window?](https://discourse.processing.org/t/how-do-i-maximize-the-sketch-window/11620)

<div class="topic-metadata">

**Author:** [@notcatfish2017](https://discourse.processing.org/u/notcatfish2017)\
**Replies:** 12\
**Last updated:** [July 31, 2020, 4:00am UTC](https://discourse.processing.org/t/how-do-i-maximize-the-sketch-window/11620 "2020-07-31T04:00:11Z")

</div>

Hi, How do I maximize the sketch window? (not fullscreen) Thanks!

---

## [Combine STEM with coding](https://discourse.processing.org/t/combine-stem-with-coding/22699)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 2\
**Last updated:** [July 31, 2020, 12:44am UTC](https://discourse.processing.org/t/combine-stem-with-coding/22699 "2020-07-31T00:44:55Z")

</div>

Hello teachers, I have a suggestion for you. Combine STEM with coding for a maximum educational value. For instance the following programs made possible by processing API shows how to plot a function graph. I hope you f…

---

## [Using Minim in processing, how do I get the tempo of an audio file?](https://discourse.processing.org/t/using-minim-in-processing-how-do-i-get-the-tempo-of-an-audio-file/22864)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 5\
**Last updated:** [July 31, 2020, 12:41am UTC](https://discourse.processing.org/t/using-minim-in-processing-how-do-i-get-the-tempo-of-an-audio-file/22864 "2020-07-31T00:41:55Z")

</div>

Using Minim in processing, how do I get the tempo of an audio file? I have been trying to search the Internet but I got no clue as to how to do this?

---

## [Trying to use screen taps for input](https://discourse.processing.org/t/trying-to-use-screen-taps-for-input/22854)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 7\
**Last updated:** [July 30, 2020, 11:57pm UTC](https://discourse.processing.org/t/trying-to-use-screen-taps-for-input/22854 "2020-07-30T23:57:20Z")

</div>

I have an android app that reads a magnetometer over USB and displays the x,y,z data as PVector. It’s ok but what I want is to be able to calibrate the magnetometer data. What I tried is to divide the screen into third…

---

## [Is P3D inherently slow and/or is there a fast alternative?](https://discourse.processing.org/t/is-p3d-inherently-slow-and-or-is-there-a-fast-alternative/22889)

<div class="topic-metadata">

**Author:** [@capbap](https://discourse.processing.org/u/capbap)\
**Replies:** 7\
**Last updated:** [July 30, 2020, 9:25pm UTC](https://discourse.processing.org/t/is-p3d-inherently-slow-and-or-is-there-a-fast-alternative/22889 "2020-07-30T21:25:17Z")

</div>

I started making a simple 3d game in processing using P3D, but it lags severely when drawing more than about 5,000 textured rectangles. Here is the code that I am using to draw the rectangles. void disp(PImage img) { …

[Previous page](https://discourse.processing.org/latest.md?page=317)

[Next page](https://discourse.processing.org/latest.md?page=319)
