# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=329

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

**Page:** 330

---

## [Return object in method and use its functions](https://discourse.processing.org/t/return-object-in-method-and-use-its-functions/22140)

<div class="topic-metadata">

**Author:** [@Alphaprot](https://discourse.processing.org/u/Alphaprot)\
**Replies:** 6\
**Last updated:** [June 28, 2020, 8:28pm UTC](https://discourse.processing.org/t/return-object-in-method-and-use-its-functions/22140 "2020-06-28T20:28:56Z")

</div>

Hey folks, I am trying to get interactions done in a little fisicia-based game of mine. Goal is a method/function, that returns the nearest type of objectType X (passed as an argument) in a given interaction distance (s…

---

## [Detection and evaluate geometric shapes](https://discourse.processing.org/t/detection-and-evaluate-geometric-shapes/22163)

<div class="topic-metadata">

**Author:** [@Ezzat\_Oraby](https://discourse.processing.org/u/Ezzat_Oraby)\
**Replies:** 13\
**Last updated:** [June 28, 2020, 5:27pm UTC](https://discourse.processing.org/t/detection-and-evaluate-geometric-shapes/22163 "2020-06-28T17:27:05Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Dear friends I uploaded an image for which I would estimate some dimensions, there are central circles and associated circles around to measure …

---

## [Why is code faster in the browser than on the desktop](https://discourse.processing.org/t/why-is-code-faster-in-the-browser-than-on-the-desktop/22207)

<div class="topic-metadata">

**Author:** [@tinkrit](https://discourse.processing.org/u/tinkrit)\
**Replies:** 5\
**Last updated:** [June 28, 2020, 5:00pm UTC](https://discourse.processing.org/t/why-is-code-faster-in-the-browser-than-on-the-desktop/22207 "2020-06-28T17:00:13Z")

</div>

Hi everyone, I saw this code on https://www.openprocessing.org/sketch/656607 and I ran it in Processing 1.51 , Processing 2.2 and Processing 3.54 and the web version on the above link runs faster and much smoother. Why…

---

## [Making object appear in random locations](https://discourse.processing.org/t/making-object-appear-in-random-locations/22216)

<div class="topic-metadata">

**Author:** [@liekevoortman](https://discourse.processing.org/u/liekevoortman)\
**Replies:** 5\
**Last updated:** [June 28, 2020, 1:24pm UTC](https://discourse.processing.org/t/making-object-appear-in-random-locations/22216 "2020-06-28T13:24:34Z")

</div>

Hi! I need to make an object (circle) appear in random locations on my screen. So it appears, dissapears, and appears again in another random location, and so forth. Maybe this is really simple, but I’m not very familiar…

---

## [Pitch Detection (Minim / Sound)](https://discourse.processing.org/t/pitch-detection-minim-sound/22213)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 0\
**Last updated:** [June 28, 2020, 9:49am UTC](https://discourse.processing.org/t/pitch-detection-minim-sound/22213 "2020-06-28T09:49:50Z")

</div>

Any tips on how one might do robust pitch detection in Processing with Minim or another library? I am interested in detecting the note that someone sings/plays via the microphone.

---

## [Array+ funcion get(x,y)](https://discourse.processing.org/t/array-funcion-get-x-y/22191)

<div class="topic-metadata">

**Author:** [@doloresgarcia](https://discourse.processing.org/u/doloresgarcia)\
**Replies:** 2\
**Last updated:** [June 28, 2020, 12:24am UTC](https://discourse.processing.org/t/array-funcion-get-x-y/22191 "2020-06-28T00:24:37Z")

</div>

Hola, estoy queriendo realizar una funcion donde, con la funcion get(x,y) trabaje con un PImage\[\], pero el programa me dice que no pueden trabajar juntos. Alguien conoce alguna manera de hacerlo o alguna alternativa a e…

---

## [Create Website like chordfy.net](https://discourse.processing.org/t/create-website-like-chordfy-net/22172)

<div class="topic-metadata">

**Author:** [@arianaiwan](https://discourse.processing.org/u/arianaiwan)\
**Replies:** 1\
**Last updated:** [June 27, 2020, 10:31pm UTC](https://discourse.processing.org/t/create-website-like-chordfy-net/22172 "2020-06-27T22:31:40Z")

</div>

I want to make a website that can detect chords or tones in a song. for example like the website https://chordify.net/ is it possible with this p5js. please explain because I’m just a beginner.

---

## [Estimation of Energy difference of Images for greased concrete surface with time](https://discourse.processing.org/t/estimation-of-energy-difference-of-images-for-greased-concrete-surface-with-time/22179)

<div class="topic-metadata">

**Author:** [@Ezzat\_Oraby](https://discourse.processing.org/u/Ezzat_Oraby)\
**Replies:** 1\
**Last updated:** [June 27, 2020, 10:14pm UTC](https://discourse.processing.org/t/estimation-of-energy-difference-of-images-for-greased-concrete-surface-with-time/22179 "2020-06-27T22:14:14Z")

</div>

Regarding to the attached image, we have a study on greased cement cubes absorption of grease. The intensity (I) of each cube has been calculated and then the Energy (E), E = I^2 the differences between the image energ…

---

## [Timing Problem xxx](https://discourse.processing.org/t/timing-problem-xxx/22180)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 9\
**Last updated:** [June 27, 2020, 10:11pm UTC](https://discourse.processing.org/t/timing-problem-xxx/22180 "2020-06-27T22:11:50Z")

</div>

I have made an G4P image button as an ON/OFF switch for an Arduino program. I’m having some timing problems. Seems that when the image button is turned on the Arduino comes on with no noticeable delay, but when the image…

---

## [How can i optimize this chain of if/else statement?](https://discourse.processing.org/t/how-can-i-optimize-this-chain-of-if-else-statement/22182)

<div class="topic-metadata">

**Author:** [@bismarck](https://discourse.processing.org/u/bismarck)\
**Replies:** 3\
**Last updated:** [June 27, 2020, 9:07pm UTC](https://discourse.processing.org/t/how-can-i-optimize-this-chain-of-if-else-statement/22182 "2020-06-27T21:07:02Z")

</div>

hello i want to optimize this code. I thought that i can use the switch statement, but i don’t know how to implement it: //function setup() { createCanvas(400, 400); } function draw() { background(220); let s…

---

## [Can't run "Hello World" in python mode](https://discourse.processing.org/t/cant-run-hello-world-in-python-mode/22012)

<div class="topic-metadata">

**Author:** [@Spiff](https://discourse.processing.org/u/Spiff)\
**Replies:** 8\
**Last updated:** [June 27, 2020, 7:55pm UTC](https://discourse.processing.org/t/cant-run-hello-world-in-python-mode/22012 "2020-06-27T19:55:41Z")

</div>

Basic problem here. Any tips would be most welcome. I can run code in Java Mode. And I have Installed Python mode. But even the most basic code won’t run. e.g.: ellipse(50, 50, 80, 80) When I click the “Run” button, it…

---

## [Processing python module dont running code](https://discourse.processing.org/t/processing-python-module-dont-running-code/22188)

<div class="topic-metadata">

**Author:** [@omselkara](https://discourse.processing.org/u/omselkara)\
**Replies:** 8\
**Last updated:** [June 27, 2020, 6:39pm UTC](https://discourse.processing.org/t/processing-python-module-dont-running-code/22188 "2020-06-27T18:39:24Z")

</div>

my prcessing python module is opening but its not running the code

---

## [Where do I put this rectangle in this code?](https://discourse.processing.org/t/where-do-i-put-this-rectangle-in-this-code/22155)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 14\
**Last updated:** [June 27, 2020, 6:21pm UTC](https://discourse.processing.org/t/where-do-i-put-this-rectangle-in-this-code/22155 "2020-06-27T18:21:48Z")

</div>

I’m trying to make a main menu and have this atm float x = 260; float y = 480; float w = 240; float h = 60; float q = 160; float a = 335; float s = 280; float d = 60; PFont zigBlack; boolean screen2 = false; void setu…

---

## [Collecting common patterns, code snippets, solutions used in processing programs](https://discourse.processing.org/t/collecting-common-patterns-code-snippets-solutions-used-in-processing-programs/20676)

<div class="topic-metadata">

**Author:** [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Replies:** 6\
**Last updated:** [June 27, 2020, 4:46pm UTC](https://discourse.processing.org/t/collecting-common-patterns-code-snippets-solutions-used-in-processing-programs/20676 "2020-06-27T16:46:51Z")

</div>

Hi, There are many common solutions or code snippets and patterns used in processing programs. It would be useful for all of us if they could be collected to a one place. I’ve found some of them, but I’m sure there are …

---

## [Exported gradle project not working](https://discourse.processing.org/t/exported-gradle-project-not-working/22020)

<div class="topic-metadata">

**Author:** [@Mesalcode](https://discourse.processing.org/u/Mesalcode)\
**Replies:** 1\
**Last updated:** [June 27, 2020, 4:30pm UTC](https://discourse.processing.org/t/exported-gradle-project-not-working/22020 "2020-06-27T16:30:21Z")

</div>

Hi there! I exported my processing project via the ‘Export Android Project’ option of the PDE. Unfortunately, after importing it into android studio the grade build fails. I am getting the following error: Unable to f…

---

## [An Innovative Problem's Solution - app prototype in P5](https://discourse.processing.org/t/an-innovative-problems-solution-app-prototype-in-p5/22181)

<div class="topic-metadata">

**Author:** [@ARNAV\_A\_GUPTA](https://discourse.processing.org/u/ARNAV_A_GUPTA)\
**Replies:** 2\
**Last updated:** [June 27, 2020, 2:53pm UTC](https://discourse.processing.org/t/an-innovative-problems-solution-app-prototype-in-p5/22181 "2020-06-27T14:53:59Z")

</div>

I’ve been enrolled in a challenge where I’ve to make an app which solves a problem (I think the problem itself should be innovative)… Got many points: An app which tells only about the truth of an action made by the g…

---

## [How to display blob (tracking color) size (x,y) to use for collision with another object?](https://discourse.processing.org/t/how-to-display-blob-tracking-color-size-x-y-to-use-for-collision-with-another-object/22142)

<div class="topic-metadata">

**Author:** [@VIRUS](https://discourse.processing.org/u/VIRUS)\
**Replies:** 2\
**Last updated:** [June 27, 2020, 1:29pm UTC](https://discourse.processing.org/t/how-to-display-blob-tracking-color-size-x-y-to-use-for-collision-with-another-object/22142 "2020-06-27T13:29:17Z")

</div>

Hi, Totalely NOOB Asking: I took some code from Train coding that fits an idea I have in head. How can I Interact the ellipse with the blob zone (that appears on click with color picking (color tracking) For now, ther…

---

## [Easing, don't get it fully](https://discourse.processing.org/t/easing-dont-get-it-fully/22154)

<div class="topic-metadata">

**Author:** [@klap](https://discourse.processing.org/u/klap)\
**Replies:** 3\
**Last updated:** [June 27, 2020, 12:07pm UTC](https://discourse.processing.org/t/easing-dont-get-it-fully/22154 "2020-06-27T12:07:35Z")

</div>

I don’t think I fully understand easing. Maybe it’s my math, but I don’t see why the two ellipses, end up in the same position with the ‘\* easing’ part. float x = 0.0; float easing = 0.05; void setup() { size(100, 10…

---

## [Sudden OpenGL Problems on Ubuntu 20 with P2D and P3D](https://discourse.processing.org/t/sudden-opengl-problems-on-ubuntu-20-with-p2d-and-p3d/22183)

<div class="topic-metadata">

**Author:** [@johnbentcope](https://discourse.processing.org/u/johnbentcope)\
**Replies:** 1\
**Last updated:** [June 26, 2020, 11:12pm UTC](https://discourse.processing.org/t/sudden-opengl-problems-on-ubuntu-20-with-p2d-and-p3d/22183 "2020-06-26T23:12:04Z")

</div>

I’m running Ubuntu 20.04 on a Dell T5500 with an NVIDIA Quadro K4000, and the nvidia-drivers-440 driver. I’ve been toying with a lot of settings over the last few days, working on a few projects, and suddently I can’t r…

---

## [Specific position of squares](https://discourse.processing.org/t/specific-position-of-squares/21669)

<div class="topic-metadata">

**Author:** [@aylen2000](https://discourse.processing.org/u/aylen2000)\
**Replies:** 1\
**Last updated:** [June 8, 2020, 3:26am UTC](https://discourse.processing.org/t/specific-position-of-squares/21669 "2020-06-08T03:26:37Z")

</div>

Hi, I need help with a college job. It consists of generating with the movement and speed of the mouse, different abstract works of art, in my case select some that contain different squares each one in a specific positi…

---

## [Line() y for. Ayuda](https://discourse.processing.org/t/line-y-for-ayuda/22137)

<div class="topic-metadata">

**Author:** [@FireInTheSky](https://discourse.processing.org/u/FireInTheSky)\
**Replies:** 1\
**Last updated:** [June 26, 2020, 3:15pm UTC](https://discourse.processing.org/t/line-y-for-ayuda/22137 "2020-06-26T15:15:24Z")

</div>

Hola de nuevo. Estoy intentando hacer estas lineas Pero lo único que me salió fue así No sé qué cosa tengo que cambiar para que una sola linea salga del centro, y no todas. Gracias

---

## [News from my Processing games](https://discourse.processing.org/t/news-from-my-processing-games/22175)

<div class="topic-metadata">

**Author:** [@Skys](https://discourse.processing.org/u/Skys)\
**Replies:** 0\
**Last updated:** [June 26, 2020, 12:10pm UTC](https://discourse.processing.org/t/news-from-my-processing-games/22175 "2020-06-26T12:10:37Z")

</div>

My Pizza simulator now have some Animals for Pork(Schinken). 2 sensles Linemans movin around, some of my games are startet to make it useabele via android smartfone using touchscreen. there is realy need a description h…

---

## [Problem with inserting an image array](https://discourse.processing.org/t/problem-with-inserting-an-image-array/22164)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 3\
**Last updated:** [June 26, 2020, 8:50am UTC](https://discourse.processing.org/t/problem-with-inserting-an-image-array/22164 "2020-06-26T08:50:40Z")

</div>

Hi everyone, one question: if I have an array of images, for example PImage \[\] dogs = new PImage \[4\] then inserting each image: dogsOne = loadImage (""); then when I have to insert my images in image (… 0,0,100,100)…

---

## [Processing , second user interface via chrome](https://discourse.processing.org/t/processing-second-user-interface-via-chrome/21771)

<div class="topic-metadata">

**Author:** [@Theo68](https://discourse.processing.org/u/Theo68)\
**Replies:** 11\
**Last updated:** [June 26, 2020, 8:34am UTC](https://discourse.processing.org/t/processing-second-user-interface-via-chrome/21771 "2020-06-26T08:34:48Z")

</div>

I have written a scetch for processing. I’m reading a circuit of sensors via usb and I’ve created a graphical environment. Is it possible to create a server within the same scetch and display a second user interface so t…

---

## [Trying to debug Pop/PushMatrix -- Can I see the stack?](https://discourse.processing.org/t/trying-to-debug-pop-pushmatrix-can-i-see-the-stack/22170)

<div class="topic-metadata">

**Author:** [@slashwreck](https://discourse.processing.org/u/slashwreck)\
**Replies:** 6\
**Last updated:** [June 26, 2020, 7:28am UTC](https://discourse.processing.org/t/trying-to-debug-pop-pushmatrix-can-i-see-the-stack/22170 "2020-06-26T07:28:49Z")

</div>

I had some working code, added some simple translation, and now I’m getting missing a pushMatrix() error. I believe all my push, pop, and translate commands are balanced, so I don’t see where the error is. Is there a w…

---

## [How to add a canvas to a \<div\> and center it?](https://discourse.processing.org/t/how-to-add-a-canvas-to-a-div-and-center-it/22107)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 4\
**Last updated:** [June 26, 2020, 6:48am UTC](https://discourse.processing.org/t/how-to-add-a-canvas-to-a-div-and-center-it/22107 "2020-06-26T06:48:31Z")

</div>

I’m not sure if div is the best thing to use but here goes. I have 2 different types of canvases. Type 1 will be centered horizontally. Type 2 will be centered horizontally and vertically. I have 2 different snippets of…

---

## [Overloading functions: is there anyway to overload functions if they take arraylists?](https://discourse.processing.org/t/overloading-functions-is-there-anyway-to-overload-functions-if-they-take-arraylists/22169)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [June 26, 2020, 2:16am UTC](https://discourse.processing.org/t/overloading-functions-is-there-anyway-to-overload-functions-if-they-take-arraylists/22169 "2020-06-26T02:16:17Z")

</div>

the following fails at compile time and says they’res a duplicate function, void saveData(ArrayList\<String\> a){ if(click){ for(int i=0;i\<a.size();i++) output.println(a.get(i)); saveTo(); } …

---

## [Texture with P2D renderer?](https://discourse.processing.org/t/texture-with-p2d-renderer/22148)

<div class="topic-metadata">

**Author:** [@grege2](https://discourse.processing.org/u/grege2)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 8:04pm UTC](https://discourse.processing.org/t/texture-with-p2d-renderer/22148 "2020-06-25T20:04:35Z")

</div>

Hi, Is it possible at all, maybe with a hack to directly talk to the browser GL rendering layer, to use simple texturing in the p5.js P2D renderer ? In Java Processing it seems it might be possible in the P2D renderer, …

---

## [(drawbot image to gcode v2) error when running](https://discourse.processing.org/t/drawbot-image-to-gcode-v2-error-when-running/18273)

<div class="topic-metadata">

**Author:** [@motorimicro](https://discourse.processing.org/u/motorimicro)\
**Replies:** 8\
**Last updated:** [June 25, 2020, 5:50pm UTC](https://discourse.processing.org/t/drawbot-image-to-gcode-v2-error-when-running/18273 "2020-06-25T17:50:56Z")

</div>

Hi everyone I am trying to run this sketch, theoretically it should work as written and tested by many other users but in my case it gives me this error. do you know how to fix the situation? the file can be downloaded…

---

## [Dependency Management for Libraries](https://discourse.processing.org/t/dependency-management-for-libraries/18940)

<div class="topic-metadata">

**Author:** [@cansik](https://discourse.processing.org/u/cansik)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 6:41pm UTC](https://discourse.processing.org/t/dependency-management-for-libraries/18940 "2020-06-25T18:41:04Z")

</div>

At the moment I am working on a new library for Processing which is based on OpenCV. The binary files of OpenCV are about ~400 MB, with all contribution libraries, we are talking about ~700 MB to download. As this maybe …

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=328)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=330)
