# Latest

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

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

**Page:** 420

---

## [Raspberry Pi - Sound not playing from Processing](https://discourse.processing.org/t/raspberry-pi-sound-not-playing-from-processing/8286)

<div class="topic-metadata">

**Author:** [@rhythmrascal](https://discourse.processing.org/u/rhythmrascal)\
**Replies:** 3\
**Last updated:** [November 30, 2019, 1:37am UTC](https://discourse.processing.org/t/raspberry-pi-sound-not-playing-from-processing/8286 "2019-11-30T01:37:16Z")

</div>

When I attempt to play sound via Processing, I get a fast pace pulsing click that starts after a couple of seconds. With no other sound coming from the speaker. The sound is via the HDMI connection. If I plug in headphon…

---

## [Fill function in an array of objects](https://discourse.processing.org/t/fill-function-in-an-array-of-objects/15925)

<div class="topic-metadata">

**Author:** [@Kasdal](https://discourse.processing.org/u/Kasdal)\
**Replies:** 3\
**Last updated:** [November 29, 2019, 9:19pm UTC](https://discourse.processing.org/t/fill-function-in-an-array-of-objects/15925 "2019-11-29T21:19:14Z")

</div>

import javax.swing.\*; Ball \[\] balls; PVector wind = new PVector(0.03, 3); PVector gravity = new PVector(0.1, 0.1); void setup() { size(800, 600); smooth(); background(255); int ballCount = Integer.parseInt( …

---

## [Multiple Type Dictionaries](https://discourse.processing.org/t/multiple-type-dictionaries/15786)

<div class="topic-metadata">

**Author:** [@KeirMeDear](https://discourse.processing.org/u/KeirMeDear)\
**Replies:** 2\
**Last updated:** [November 29, 2019, 8:28pm UTC](https://discourse.processing.org/t/multiple-type-dictionaries/15786 "2019-11-29T20:28:25Z")

</div>

In processing, is there a way to have a dictionary with multiple types (e.g. String, int, float, etc) I can’t seem to find if there is or not in the docu, the best I’ve found is single type ones like a float dict, int d…

---

## [How to draw a triangle shape using for loop from array](https://discourse.processing.org/t/how-to-draw-a-triangle-shape-using-for-loop-from-array/15955)

<div class="topic-metadata">

**Author:** [@b001](https://discourse.processing.org/u/b001)\
**Replies:** 3\
**Last updated:** [November 29, 2019, 4:37pm UTC](https://discourse.processing.org/t/how-to-draw-a-triangle-shape-using-for-loop-from-array/15955 "2019-11-29T16:37:13Z")

</div>

var door=\[403, 402, 427, 646, 639, 830, 809, 844, 802, 683, 552, 629, 712, 783, 415, 561, 562, 751, 680, 626, 701, 838, 322, 468, 625\]; for(b=0; b\<door.length; b++) { triangle(x1,y1,x2,y2,x3,y3); } how do …

---

## [Can your perform Parallel Processing in Arduino?](https://discourse.processing.org/t/can-your-perform-parallel-processing-in-arduino/15949)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 1\
**Last updated:** [November 29, 2019, 2:35pm UTC](https://discourse.processing.org/t/can-your-perform-parallel-processing-in-arduino/15949 "2019-11-29T14:35:30Z")

</div>

I need to integrate 4 different types of sensors with different sampling frequencies to Arduino. Is Arduino capable of performing parallel data acquisition in real-time ?

---

## [Is it possible to convert arduino ADC value to wav file?](https://discourse.processing.org/t/is-it-possible-to-convert-arduino-adc-value-to-wav-file/15931)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [November 29, 2019, 2:17pm UTC](https://discourse.processing.org/t/is-it-possible-to-convert-arduino-adc-value-to-wav-file/15931 "2019-11-29T14:17:00Z")

</div>

Is it possible to convert arduino ADC value to wav file? Hi. The flowchart is as follows: Receive the sound signal from the microphone. It is delivered to Arduino analog pins through the amplifier. Get the ADC value…

---

## [Checkboxes Processing for Android (multiple choices)](https://discourse.processing.org/t/checkboxes-processing-for-android-multiple-choices/15828)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 2\
**Last updated:** [November 29, 2019, 11:57am UTC](https://discourse.processing.org/t/checkboxes-processing-for-android-multiple-choices/15828 "2019-11-29T11:57:09Z")

</div>

Short function code below, can be very handy to change items in your Android’s Processing sketch. Again build on Alert Dialog Interface. Please, comment if any error. Tested on KitKat 4.4 and Lollipop 5.1 import andr…

---

## [Radio buttons Processing for Android (single choice)](https://discourse.processing.org/t/radio-buttons-processing-for-android-single-choice/15829)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 2\
**Last updated:** [November 29, 2019, 11:51am UTC](https://discourse.processing.org/t/radio-buttons-processing-for-android-single-choice/15829 "2019-11-29T11:51:23Z")

</div>

Following short code, can be useful in your Android’s Processing sketch. Please comment if any error. import android.content.DialogInterface; import android.app.Activity; import android.app.AlertDialog; CharSequence\[\]…

---

## [map.getScreenPosition does not work as expected with unfolding maps](https://discourse.processing.org/t/map-getscreenposition-does-not-work-as-expected-with-unfolding-maps/15864)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 6\
**Last updated:** [November 29, 2019, 10:41am UTC](https://discourse.processing.org/t/map-getscreenposition-does-not-work-as-expected-with-unfolding-maps/15864 "2019-11-29T10:41:40Z")

</div>

Hi. The following is the code: // Import Unfolding Maps import de.fhpotsdam.unfolding.\*; import de.fhpotsdam.unfolding.core.\*; import de.fhpotsdam.unfolding.data.\*; import de.fhpotsdam.unfolding.events.\*; import de.fhpo…

---

## [How to append to a 2 dimensional array?](https://discourse.processing.org/t/how-to-append-to-a-2-dimensional-array/15936)

<div class="topic-metadata">

**Author:** [@JoeyPeluka](https://discourse.processing.org/u/JoeyPeluka)\
**Replies:** 5\
**Last updated:** [November 29, 2019, 9:28am UTC](https://discourse.processing.org/t/how-to-append-to-a-2-dimensional-array/15936 "2019-11-29T09:28:05Z")

</div>

Hello, I’m having trouble finding an answer to this problem. How would you append an array to an array. One of the ways I have tried doing this: int\[\]\[\] array; for (int i=1; i\<=20; i++) { append(array,{0,0,…

---

## [Save image created via createGraphics to server](https://discourse.processing.org/t/save-image-created-via-creategraphics-to-server/15940)

<div class="topic-metadata">

**Author:** [@rashuan](https://discourse.processing.org/u/rashuan)\
**Replies:** 1\
**Last updated:** [November 29, 2019, 7:59am UTC](https://discourse.processing.org/t/save-image-created-via-creategraphics-to-server/15940 "2019-11-29T07:59:29Z")

</div>

Hello, I’ve got a simple (probably not so simple) problem - sending an image generated via createGraphics function to an e-mail. So what I thought is - use a php script on the server to send an e-mail. So far so good, bu…

---

## [Sound won't work, AudioContext was not allowed to start?](https://discourse.processing.org/t/sound-wont-work-audiocontext-was-not-allowed-to-start/15921)

<div class="topic-metadata">

**Author:** [@coledeushane](https://discourse.processing.org/u/coledeushane)\
**Replies:** 3\
**Last updated:** [November 29, 2019, 3:58am UTC](https://discourse.processing.org/t/sound-wont-work-audiocontext-was-not-allowed-to-start/15921 "2019-11-29T03:58:36Z")

</div>

I can’t seem to get the p5.sound.js to work correctly. The console error I keep getting is: p5.sound.js:819 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. ht…

---

## [Issue with deciding to place background in draw() or set()](https://discourse.processing.org/t/issue-with-deciding-to-place-background-in-draw-or-set/15933)

<div class="topic-metadata">

**Author:** [@Miaomelette](https://discourse.processing.org/u/Miaomelette)\
**Replies:** 1\
**Last updated:** [November 29, 2019, 2:16am UTC](https://discourse.processing.org/t/issue-with-deciding-to-place-background-in-draw-or-set/15933 "2019-11-29T02:16:24Z")

</div>

Hi, I’m currently making a “sandwich creator” minigame, where the programs start with an intro of one slice of bread dropping down, and the user can click to put shapes on it as “toppings”. The issue I’m running into is …

---

## [Visualize cannon firing (launch vehicle) simulation](https://discourse.processing.org/t/visualize-cannon-firing-launch-vehicle-simulation/15521)

<div class="topic-metadata">

**Author:** [@O-O](https://discourse.processing.org/u/O-O)\
**Replies:** 4\
**Last updated:** [November 28, 2019, 10:13pm UTC](https://discourse.processing.org/t/visualize-cannon-firing-launch-vehicle-simulation/15521 "2019-11-28T22:13:48Z")

</div>

As I said before, I have to use processing to create project that visualizes and introduces concepts and various examples of math and science. The idea that I’m thinking about is that if you shoot a cannon from a cannon …

---

## [Increasement with ONE on keypress](https://discourse.processing.org/t/increasement-with-one-on-keypress/15906)

<div class="topic-metadata">

**Author:** [@vanoevelenstef](https://discourse.processing.org/u/vanoevelenstef)\
**Replies:** 6\
**Last updated:** [November 28, 2019, 10:13pm UTC](https://discourse.processing.org/t/increasement-with-one-on-keypress/15906 "2019-11-28T22:13:45Z")

</div>

Hey everyone. I’ve founded this code online I’m reworking it, so I come to my needs but now I’ve hit a bump. This is only a section of my code, so I don’t know if this enough to have this work. In the original code int …

---

## [Moving object with noLoop()](https://discourse.processing.org/t/moving-object-with-noloop/15841)

<div class="topic-metadata">

**Author:** [@San](https://discourse.processing.org/u/San)\
**Replies:** 15\
**Last updated:** [November 28, 2019, 9:07pm UTC](https://discourse.processing.org/t/moving-object-with-noloop/15841 "2019-11-28T21:07:52Z")

</div>

Hey! I made this code: Grid 40x60 with 10 red blocks and 1 yellow block. And I can move the yellow block with the w-a-s-d keys. But the red blocks keep getting a new position. That problem is fixed when I add the noLoo…

---

## [Adding text field to my calculator homework](https://discourse.processing.org/t/adding-text-field-to-my-calculator-homework/15916)

<div class="topic-metadata">

**Author:** [@bcas](https://discourse.processing.org/u/bcas)\
**Replies:** 1\
**Last updated:** [November 28, 2019, 7:54pm UTC](https://discourse.processing.org/t/adding-text-field-to-my-calculator-homework/15916 "2019-11-28T19:54:06Z")

</div>

Hi all. First post here. I have to make a calculator as a homework assignment. What I have so far is working buttons with results displayed in the terminal using a println. What I am trying to achieve is to display the r…

---

## [Movement script continues moving diagonally](https://discourse.processing.org/t/movement-script-continues-moving-diagonally/15854)

<div class="topic-metadata">

**Author:** [@madbrine](https://discourse.processing.org/u/madbrine)\
**Replies:** 5\
**Last updated:** [November 28, 2019, 7:26pm UTC](https://discourse.processing.org/t/movement-script-continues-moving-diagonally/15854 "2019-11-28T19:26:27Z")

</div>

So I’m working on a movement script for a game, but when I go from diagonal to just one direction, it continues moving diagonally. PImage pS\[\]; //Allocating a spot for Player sprites Player p; //Creates the player //Ke…

---

## [Random() firsts random](https://discourse.processing.org/t/random-firsts-random/15914)

<div class="topic-metadata">

**Author:** [@vanoevelenstef](https://discourse.processing.org/u/vanoevelenstef)\
**Replies:** 1\
**Last updated:** [November 28, 2019, 6:39pm UTC](https://discourse.processing.org/t/random-firsts-random/15914 "2019-11-28T18:39:51Z")

</div>

I’m using 3 floats for R G B color and if I run my code. The first variable is always black and once I press the button to randomize the colors again it will change. Can I make it that by running to program its start wi…

---

## [Can I make a small windows app for taking time and log production times?](https://discourse.processing.org/t/can-i-make-a-small-windows-app-for-taking-time-and-log-production-times/15484)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 19\
**Last updated:** [November 28, 2019, 5:18pm UTC](https://discourse.processing.org/t/can-i-make-a-small-windows-app-for-taking-time-and-log-production-times/15484 "2019-11-28T17:18:41Z")

</div>

Hi! First of all. Is it possible to export/save a finished program to open in windows without processing? What I would like is a windows app for logging times for different articles. So. I need the option to add a num…

---

## [Learning in neuronal Networks needs seems to get stuck](https://discourse.processing.org/t/learning-in-neuronal-networks-needs-seems-to-get-stuck/15891)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [November 28, 2019, 5:06pm UTC](https://discourse.processing.org/t/learning-in-neuronal-networks-needs-seems-to-get-stuck/15891 "2019-11-28T17:06:28Z")

</div>

Hi I’m using the Neuroph library from Java and I’m programming something to detect single numbers. But using even 2 samples the learning-process seems to get stuck here is the link where I got the jars. http://neuroph.s…

---

## [Using peasycam within a class?](https://discourse.processing.org/t/using-peasycam-within-a-class/15900)

<div class="topic-metadata">

**Author:** [@mjt](https://discourse.processing.org/u/mjt)\
**Replies:** 1\
**Last updated:** [November 28, 2019, 12:22pm UTC](https://discourse.processing.org/t/using-peasycam-within-a-class/15900 "2019-11-28T12:22:58Z")

</div>

Hi! I’m coding some projections that need to be switched between using keypresses. Each projection is its own class and one of them, “Stars”, which just displays a bunch of stars, is 3d. I’m using peasycam for this, but …

---

## [Error when zoom in and out](https://discourse.processing.org/t/error-when-zoom-in-and-out/15856)

<div class="topic-metadata">

**Author:** [@thefso](https://discourse.processing.org/u/thefso)\
**Replies:** 3\
**Last updated:** [November 28, 2019, 11:05am UTC](https://discourse.processing.org/t/error-when-zoom-in-and-out/15856 "2019-11-28T11:05:29Z")

</div>

I want to only use the wheel to zoom in and out and the center of our view is where the new dot is draw, but I fail to do so, anybody an idea how to solve that? float sFactor = 1.0; float transX = 0.0; float transY = 0.…

---

## [Vertical Text Align Question](https://discourse.processing.org/t/vertical-text-align-question/15892)

<div class="topic-metadata">

**Author:** [@Ladan](https://discourse.processing.org/u/Ladan)\
**Replies:** 2\
**Last updated:** [November 28, 2019, 6:26am UTC](https://discourse.processing.org/t/vertical-text-align-question/15892 "2019-11-28T06:26:28Z")

</div>

Hello! I am trying to Align my text: “QUIZ”, vertically, but the “I” and the text in general just looks bad, can somebody help me, to make it better? void draw\_quiz\_text() { fill(184, 18, 18); textSize(150); s…

---

## [Animación en Loop infinito](https://discourse.processing.org/t/animacion-en-loop-infinito/15882)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 6\
**Last updated:** [November 27, 2019, 11:26pm UTC](https://discourse.processing.org/t/animacion-en-loop-infinito/15882 "2019-11-27T23:26:20Z")

</div>

Hola, Quiero programar que la siguiente animación se repita indefinidamente cada segundo o segundo y medio, de forma que siempre estén saliendo circunferencias nuevas. ¿Podéis ayudarme? Gracias por adelantado. void se…

---

## [My rect() is not working](https://discourse.processing.org/t/my-rect-is-not-working/15894)

<div class="topic-metadata">

**Author:** [@Andererlets\_play](https://discourse.processing.org/u/Andererlets_play)\
**Replies:** 1\
**Last updated:** [November 27, 2019, 9:05pm UTC](https://discourse.processing.org/t/my-rect-is-not-working/15894 "2019-11-27T21:05:41Z")

</div>

At the bottom, the rect is not working. String display\[\]\[\]; int dificulty; int size; int position; int ammount; int margin; float randomcol1 \[\]; float randomcol2 \[\]; float randomcol3 \[\]; float displaycol1 \[\]\[\]; float di…

---

## [Particles on webcam pixels (and phone cam)](https://discourse.processing.org/t/particles-on-webcam-pixels-and-phone-cam/15868)

<div class="topic-metadata">

**Author:** [@joana](https://discourse.processing.org/u/joana)\
**Replies:** 3\
**Last updated:** [November 27, 2019, 5:28pm UTC](https://discourse.processing.org/t/particles-on-webcam-pixels-and-phone-cam/15868 "2019-11-27T17:28:11Z")

</div>

Hi there. Based on the frame differencing Processing example, how can I include particle systems to represent the pixels on the webcam? I mean, how can I represent the webcam’s movement through particles? Here’s an exam…

---

## [Help with grid game](https://discourse.processing.org/t/help-with-grid-game/15888)

<div class="topic-metadata">

**Author:** [@ihatearrays](https://discourse.processing.org/u/ihatearrays)\
**Replies:** 2\
**Last updated:** [November 27, 2019, 6:12pm UTC](https://discourse.processing.org/t/help-with-grid-game/15888 "2019-11-27T18:12:32Z")

</div>

I’m involved in a team project in college. the objective is to make a game for kids and the foundation is there. but when the mouse hover code works i have the other 8 squares in my 3x3 grid set to white. i want it to be…

---

## [Pinball Poker box2d help please](https://discourse.processing.org/t/pinball-poker-box2d-help-please/15871)

<div class="topic-metadata">

**Author:** [@nathanchun](https://discourse.processing.org/u/nathanchun)\
**Replies:** 1\
**Last updated:** [November 27, 2019, 4:51pm UTC](https://discourse.processing.org/t/pinball-poker-box2d-help-please/15871 "2019-11-27T16:51:26Z")

</div>

Hello my group is creating a pinball combined with poker game within processing using the box2d library as our main physics library. The idea of the game is to create obstacles that represent different card values (A,K,Q…

---

## [Receiving int data as IntList](https://discourse.processing.org/t/receiving-int-data-as-intlist/15826)

<div class="topic-metadata">

**Author:** [@24stevek](https://discourse.processing.org/u/24stevek)\
**Replies:** 9\
**Last updated:** [November 27, 2019, 2:03pm UTC](https://discourse.processing.org/t/receiving-int-data-as-intlist/15826 "2019-11-27T14:03:41Z")

</div>

Hi! I am making a code for drawing a graph. I am receiving data(int) in an IntList form, and something is not going right. It is supposed to get data like First, enter the title. Enter the number of rows. Then enter a…

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

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