# Latest

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

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

**Page:** 291

---

## [P5.sound from web server](https://discourse.processing.org/t/p5-sound-from-web-server/24979)

<div class="topic-metadata">

**Author:** [@ylh](https://discourse.processing.org/u/ylh)\
**Replies:** 3\
**Last updated:** [October 31, 2020, 5:52pm UTC](https://discourse.processing.org/t/p5-sound-from-web-server/24979 "2020-10-31T17:52:59Z")

</div>

Most sound examples demonstrate how to play an mp3 file. I want to use Oscillators. Oscillators work well locally but I can’t seem to get a remote browser to play. Are there security issues?

---

## [Difference between "new createVector()" and "createVector()"](https://discourse.processing.org/t/difference-between-new-createvector-and-createvector/25056)

<div class="topic-metadata">

**Author:** [@Jason210](https://discourse.processing.org/u/Jason210)\
**Replies:** 6\
**Last updated:** [October 31, 2020, 5:45pm UTC](https://discourse.processing.org/t/difference-between-new-createvector-and-createvector/25056 "2020-10-31T17:45:17Z")

</div>

Hi Can someone explain in simple terms what the difference is between createVector() and new createVector()? Jason

---

## [Problem with multiple inputs](https://discourse.processing.org/t/problem-with-multiple-inputs/25066)

<div class="topic-metadata">

**Author:** [@lepetoc](https://discourse.processing.org/u/lepetoc)\
**Replies:** 3\
**Last updated:** [October 31, 2020, 4:06pm UTC](https://discourse.processing.org/t/problem-with-multiple-inputs/25066 "2020-10-31T16:06:18Z")

</div>

Hello, i’m actually trying to code a litlle, i’m at the beginning and i’m trying to do the character movement, i searched some codes to handle multiple inputs, but i have a problem that i cannot understand : void keyPr…

---

## [MousePressed : select only item in front](https://discourse.processing.org/t/mousepressed-select-only-item-in-front/24936)

<div class="topic-metadata">

**Author:** [@vlafortune](https://discourse.processing.org/u/vlafortune)\
**Replies:** 13\
**Last updated:** [October 31, 2020, 3:42pm UTC](https://discourse.processing.org/t/mousepressed-select-only-item-in-front/24936 "2020-10-31T15:42:59Z")

</div>

Hi! How can I select only the object in front when two objects are stacked? I made a very simple code to show what I mean. In this example, I would like to change only the color of the smaller circle. Thanks! let bubb…

---

## [Translating Syntax Shorthand for Beginners?](https://discourse.processing.org/t/translating-syntax-shorthand-for-beginners/24995)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 21\
**Last updated:** [October 31, 2020, 11:21am UTC](https://discourse.processing.org/t/translating-syntax-shorthand-for-beginners/24995 "2020-10-31T11:21:21Z")

</div>

Hello Team Forum, I found this cool sketch but it is reduced to programming shorthand I have no experience with. I keep trying to format in what I am used but keep failing. t=0,draw=\_=\>{t++||createCanvas(w=720,w)+strok…

---

## [Preview of flight path for 3d gravity sim](https://discourse.processing.org/t/preview-of-flight-path-for-3d-gravity-sim/25053)

<div class="topic-metadata">

**Author:** [@Kport1](https://discourse.processing.org/u/Kport1)\
**Replies:** 0\
**Last updated:** [October 30, 2020, 5:00pm UTC](https://discourse.processing.org/t/preview-of-flight-path-for-3d-gravity-sim/25053 "2020-10-30T17:00:27Z")

</div>

im trying to programm a 3d gravity simulation, but the preview of the flight path of a selected Planet isnt working. I have marked the section in the code where this preview is calculated. Thx Code: class Planet extend…

---

## [How do I connect serial over USB on Chromebook](https://discourse.processing.org/t/how-do-i-connect-serial-over-usb-on-chromebook/24884)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 4\
**Last updated:** [October 30, 2020, 3:16pm UTC](https://discourse.processing.org/t/how-do-i-connect-serial-over-usb-on-chromebook/24884 "2020-10-30T15:16:18Z")

</div>

I jumped down a new rabbit hole and I don’t know how to get out, ha,ha. Ok, I better be more specific. I have an Arduino that runs MultiWii2.3 and uses a protocol to send and receive data over serial. MultiWii comes w…

---

## [Does anyone know why I get this IndexOutOfBoundsExceptions error](https://discourse.processing.org/t/does-anyone-know-why-i-get-this-indexoutofboundsexceptions-error/25059)

<div class="topic-metadata">

**Author:** [@eltorres](https://discourse.processing.org/u/eltorres)\
**Replies:** 1\
**Last updated:** [October 30, 2020, 9:37pm UTC](https://discourse.processing.org/t/does-anyone-know-why-i-get-this-indexoutofboundsexceptions-error/25059 "2020-10-30T21:37:29Z")

</div>

PFont font; ArrayList\<walkers\> l = new ArrayList\<walkers\>(); ArrayList\<walkers\> i = new ArrayList\<walkers\>(); ArrayList\<walkers\> L = new ArrayList\<walkers\>(); int mongolicos = 10; int proteccion = 5; int infectado\_pro…

---

## [Need to obtain object name in constructor(Solution:Referencing)](https://discourse.processing.org/t/need-to-obtain-object-name-in-constructor-solution-referencing/25039)

<div class="topic-metadata">

**Author:** [@xX\_pokeman2003\_Xx](https://discourse.processing.org/u/xX_pokeman2003_Xx)\
**Replies:** 10\
**Last updated:** [October 30, 2020, 9:13pm UTC](https://discourse.processing.org/t/need-to-obtain-object-name-in-constructor-solution-referencing/25039 "2020-10-30T21:13:29Z")

</div>

For transparency sake, I left the original post here, but the solution for the actual question itself is pretty simple:You can’t. HOWEVER, there is a work around that lets you do something similar, by referencing the obj…

---

## [How to create shuffling effect when mouse pressed and choose one when mouse is released](https://discourse.processing.org/t/how-to-create-shuffling-effect-when-mouse-pressed-and-choose-one-when-mouse-is-released/25054)

<div class="topic-metadata">

**Author:** [@ljna227](https://discourse.processing.org/u/ljna227)\
**Replies:** 0\
**Last updated:** [October 30, 2020, 5:50pm UTC](https://discourse.processing.org/t/how-to-create-shuffling-effect-when-mouse-pressed-and-choose-one-when-mouse-is-released/25054 "2020-10-30T17:50:45Z")

</div>

So I have an array of pictures and another array of names of the pictures. When the mouse is pressed, the names and pictures appear on the screen and shuffles. When the mouse is realeased, it stops at one image and corre…

---

## [Processing in France](https://discourse.processing.org/t/processing-in-france/25050)

<div class="topic-metadata">

**Author:** [@subsubsub](https://discourse.processing.org/u/subsubsub)\
**Replies:** 0\
**Last updated:** [October 30, 2020, 2:46pm UTC](https://discourse.processing.org/t/processing-in-france/25050 "2020-10-30T14:46:27Z")

</div>

Hi everyone, I’d like to meet french processing artists. More on me and what i’m searching for : I’m a french professional musician, and I started to use Processing because I want to make a live music and visual perfo…

---

## [Minim Error al leer un archivo](https://discourse.processing.org/t/minim-error-al-leer-un-archivo/25047)

<div class="topic-metadata">

**Author:** [@TiagoNess](https://discourse.processing.org/u/TiagoNess)\
**Replies:** 1\
**Last updated:** [October 30, 2020, 2:15pm UTC](https://discourse.processing.org/t/minim-error-al-leer-un-archivo/25047 "2020-10-30T14:15:39Z")

</div>

Hola, por favor una ayuda con este error el leer un archivo minim. Añadí el archivo desde el editor, y me creo la carpeta data. Hasta ahí bien, pero luego me lanza esta exception, por favor me pueden orientar. Tambi…

---

## [LATEX in processing](https://discourse.processing.org/t/latex-in-processing/19691)

<div class="topic-metadata">

**Author:** [@shahroze](https://discourse.processing.org/u/shahroze)\
**Replies:** 14\
**Last updated:** [October 30, 2020, 1:54pm UTC](https://discourse.processing.org/t/latex-in-processing/19691 "2020-10-30T13:54:03Z")

</div>

how to use latex in processing for displaying equations. Is there a library for using latex or can i create it please give a detailed solution.

---

## [Processing on Microcontrollers?(Teensy, Arduino, etc.)](https://discourse.processing.org/t/processing-on-microcontrollers-teensy-arduino-etc/24962)

<div class="topic-metadata">

**Author:** [@onionwasabi](https://discourse.processing.org/u/onionwasabi)\
**Replies:** 5\
**Last updated:** [October 30, 2020, 9:47am UTC](https://discourse.processing.org/t/processing-on-microcontrollers-teensy-arduino-etc/24962 "2020-10-30T09:47:34Z")

</div>

Hi everyone. I am pretty sure there is a similar question but I couldn’t find the answer I want. Sorry if this is redundant. (I am a noob, still learning) My Question: Is there any way to run Processing on Microcontrol…

---

## [I feel like this is bad practice but I'm not sure why](https://discourse.processing.org/t/i-feel-like-this-is-bad-practice-but-im-not-sure-why/24937)

<div class="topic-metadata">

**Author:** [@wyattsworlddd](https://discourse.processing.org/u/wyattsworlddd)\
**Replies:** 9\
**Last updated:** [October 30, 2020, 9:36am UTC](https://discourse.processing.org/t/i-feel-like-this-is-bad-practice-but-im-not-sure-why/24937 "2020-10-30T09:36:04Z")

</div>

So this code below works, but I feel like maybe I should be doing something else to be more proper. if (s\<=9){ secs = "0" + s; } else { secs = "" + s; } Really simply, all I’m doing is adding a 0 to the f…

---

## [P5.js Text along a curve](https://discourse.processing.org/t/p5-js-text-along-a-curve/25002)

<div class="topic-metadata">

**Author:** [@ucsduni](https://discourse.processing.org/u/ucsduni)\
**Replies:** 3\
**Last updated:** [October 30, 2020, 6:59am UTC](https://discourse.processing.org/t/p5-js-text-along-a-curve/25002 "2020-10-30T06:59:11Z")

</div>

I was wondering how I can turn a string into something that allows for text to be displayed along a curve.

---

## [Need to run something after declaring an object](https://discourse.processing.org/t/need-to-run-something-after-declaring-an-object/25038)

<div class="topic-metadata">

**Author:** [@xX\_pokeman2003\_Xx](https://discourse.processing.org/u/xX_pokeman2003_Xx)\
**Replies:** 2\
**Last updated:** [October 30, 2020, 5:28am UTC](https://discourse.processing.org/t/need-to-run-something-after-declaring-an-object/25038 "2020-10-30T05:28:18Z")

</div>

I’m currently writing a bit of code I want to reuse in other projects. It’s a GUI framework. The problem is that I don’t want to constantly keep typing in a specific line of code every single time I start using whatever …

---

## [Optimizing for a CPU-Intensive Music Visualizer](https://discourse.processing.org/t/optimizing-for-a-cpu-intensive-music-visualizer/22358)

<div class="topic-metadata">

**Author:** [@dgoren1](https://discourse.processing.org/u/dgoren1)\
**Replies:** 4\
**Last updated:** [October 30, 2020, 5:20am UTC](https://discourse.processing.org/t/optimizing-for-a-cpu-intensive-music-visualizer/22358 "2020-10-30T05:20:18Z")

</div>

Hello! I recently started down my p5.js learning journey trying to build a music visualizer that loads and analyzes multiple audio files at once. I succeeded in building a simple version of the visualizer (watch here!),…

---

## [Controlp5 - Multiple buttons that use one function](https://discourse.processing.org/t/controlp5-multiple-buttons-that-use-one-function/4638)

<div class="topic-metadata">

**Author:** [@Zac-04](https://discourse.processing.org/u/Zac-04)\
**Replies:** 12\
**Last updated:** [October 30, 2020, 3:40am UTC](https://discourse.processing.org/t/controlp5-multiple-buttons-that-use-one-function/4638 "2020-10-30T03:40:38Z")

</div>

So let’s say I had a class that’s display was a button. How would I make it so that all of these classes’ buttons point to one function. e.g. //In my class: button = cp5.addButton("doThis"); //global scope: void doTh…

---

## [I need help with my game (snake game)](https://discourse.processing.org/t/i-need-help-with-my-game-snake-game/24984)

<div class="topic-metadata">

**Author:** [@umar](https://discourse.processing.org/u/umar)\
**Replies:** 9\
**Last updated:** [October 29, 2020, 11:44pm UTC](https://discourse.processing.org/t/i-need-help-with-my-game-snake-game/24984 "2020-10-29T23:44:32Z")

</div>

It’s actually a snake game, but with 16 by 8 blocks window size, where yellow is for banana(+10 points), red is for apple(+5 points) and green block is for cameleon(-5 points). The problem I’m facing is that my fruits ar…

---

## [Debug to processing pjs from processing 3](https://discourse.processing.org/t/debug-to-processing-pjs-from-processing-3/25004)

<div class="topic-metadata">

**Author:** [@adrianmc](https://discourse.processing.org/u/adrianmc)\
**Replies:** 4\
**Last updated:** [October 29, 2020, 6:13pm UTC](https://discourse.processing.org/t/debug-to-processing-pjs-from-processing-3/25004 "2020-10-29T18:13:47Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi all I’m having a problem trying to upload this code to a website, I understand pjs runs with and older version of processing, however I’m not…

---

## [Need some help in creating a simulation](https://discourse.processing.org/t/need-some-help-in-creating-a-simulation/24999)

<div class="topic-metadata">

**Author:** [@Toninuin](https://discourse.processing.org/u/Toninuin)\
**Replies:** 4\
**Last updated:** [October 29, 2020, 10:02pm UTC](https://discourse.processing.org/t/need-some-help-in-creating-a-simulation/24999 "2020-10-29T22:02:32Z")

</div>

Hey people! I’m really new to processing and programming as a whole and I’m trying to do a simulation of a terrain with pseudo-realistic river flow logic. Its a 2D array with perlin noise that does the trick for the terr…

---

## [Using this code for exhibition. how to make the size of file smaller?](https://discourse.processing.org/t/using-this-code-for-exhibition-how-to-make-the-size-of-file-smaller/24997)

<div class="topic-metadata">

**Author:** [@yejincolor](https://discourse.processing.org/u/yejincolor)\
**Replies:** 1\
**Last updated:** [October 29, 2020, 7:13pm UTC](https://discourse.processing.org/t/using-this-code-for-exhibition-how-to-make-the-size-of-file-smaller/24997 "2020-10-29T19:13:22Z")

</div>

changing pixelated dot size by distance Hi, I am a beginner at coding and I just made this code using some references. In this code, the webcam recognizes the distance of people using PoseNet. And the size of dots gets…

---

## [.lenght function](https://discourse.processing.org/t/lenght-function/25015)

<div class="topic-metadata">

**Author:** [@moms\_spaghetti](https://discourse.processing.org/u/moms_spaghetti)\
**Replies:** 1\
**Last updated:** [October 29, 2020, 3:56pm UTC](https://discourse.processing.org/t/lenght-function/25015 "2020-10-29T15:56:40Z")

</div>

Hello Am I the only one where the .lenght doesnt work?? String name = “test”; int lenght = name.lenght(); this gives me the error “The function “.lenght()” does not exist” while here https://processing.org/reference…

---

## [Moving a picture](https://discourse.processing.org/t/moving-a-picture/25018)

<div class="topic-metadata">

**Author:** [@AntiQliMax](https://discourse.processing.org/u/AntiQliMax)\
**Replies:** 1\
**Last updated:** [October 29, 2020, 4:02pm UTC](https://discourse.processing.org/t/moving-a-picture/25018 "2020-10-29T16:02:26Z")

</div>

Well at this point i worked a bit further, The goal is that a fish should jump from a random start position to another (hard coded route) to another end point. I know you guys don’t have the pictures and I am sorry for …

---

## [How to create button that makes lines of text appear randomly](https://discourse.processing.org/t/how-to-create-button-that-makes-lines-of-text-appear-randomly/25017)

<div class="topic-metadata">

**Author:** [@dreabirdflies](https://discourse.processing.org/u/dreabirdflies)\
**Replies:** 1\
**Last updated:** [October 29, 2020, 4:00pm UTC](https://discourse.processing.org/t/how-to-create-button-that-makes-lines-of-text-appear-randomly/25017 "2020-10-29T16:00:30Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Wondering how to do this?

---

## [Need help with centipede / snake game](https://discourse.processing.org/t/need-help-with-centipede-snake-game/24982)

<div class="topic-metadata">

**Author:** [@zezo](https://discourse.processing.org/u/zezo)\
**Replies:** 8\
**Last updated:** [October 29, 2020, 3:45pm UTC](https://discourse.processing.org/t/need-help-with-centipede-snake-game/24982 "2020-10-29T15:45:26Z")

</div>

Hello guys! So I’ve been working on a snake game (kind of ) for school recently but I’m kinda stuck on a part. Because I need to add (invisible) pieces of food on screen and when the snake eats it, the snake needs to be…

---

## [Please give me some feedback on my first-person-shooter engine](https://discourse.processing.org/t/please-give-me-some-feedback-on-my-first-person-shooter-engine/24927)

<div class="topic-metadata">

**Author:** [@LeviathanProgramming](https://discourse.processing.org/u/LeviathanProgramming)\
**Replies:** 4\
**Last updated:** [October 29, 2020, 1:49pm UTC](https://discourse.processing.org/t/please-give-me-some-feedback-on-my-first-person-shooter-engine/24927 "2020-10-29T13:49:59Z")

</div>

Here is the link to my project: I would like some feedback on it if you don’t mind. If you find any bugs, please report them. Thanks.

---

## [If statement problems](https://discourse.processing.org/t/if-statement-problems/25012)

<div class="topic-metadata">

**Author:** [@AntiQliMax](https://discourse.processing.org/u/AntiQliMax)\
**Replies:** 4\
**Last updated:** [October 29, 2020, 1:40pm UTC](https://discourse.processing.org/t/if-statement-problems/25012 "2020-10-29T13:40:52Z")

</div>

Hello, I am new to processing and programming in general, as of a project for school I ran into a problem. The goal is that a random number will be generated, with a click on a the mouse, after that it should go to the …

---

## [DropDownList\_demo](https://discourse.processing.org/t/dropdownlist-demo/24951)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 3\
**Last updated:** [October 29, 2020, 1:26pm UTC](https://discourse.processing.org/t/dropdownlist-demo/24951 "2020-10-29T13:26:08Z")

</div>

The following source code demonstrates a class to create a drop down list. It was designed for use on a tablet, but has not been tested on smaller devices. // Drop Down List control parts =\> a.)display field, b.)arrow…

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

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