# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=206

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

**Page:** 207

---

## [How to trigger an animation based on realtime audio](https://discourse.processing.org/t/how-to-trigger-an-animation-based-on-realtime-audio/21066)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 3\
**Last updated:** [May 26, 2020, 8:23am UTC](https://discourse.processing.org/t/how-to-trigger-an-animation-based-on-realtime-audio/21066 "2020-05-26T08:23:52Z")

</div>

Trying to build a face with moving lips as someone speaks realtime, any idea how to use audio as a trigger like if(mousePressed) - instead being if a threshold of amplitude is received, then perform {block of code}?

---

## [Switch the array places in a loop](https://discourse.processing.org/t/switch-the-array-places-in-a-loop/21084)

<div class="topic-metadata">

**Author:** [@gurki](https://discourse.processing.org/u/gurki)\
**Replies:** 12\
**Last updated:** [May 25, 2020, 11:09pm UTC](https://discourse.processing.org/t/switch-the-array-places-in-a-loop/21084 "2020-05-25T23:09:23Z")

</div>

Hello Together, I have an important question. I have a task where I need your help. this is the question. Given! Be! Two! Equal! Long! Arrays:! int\[\] a = {1,2,3,4}; int\[\] b = {10, 20, 30, 40}; Create a new array c th…

---

## [I want to change the size of each class](https://discourse.processing.org/t/i-want-to-change-the-size-of-each-class/21205)

<div class="topic-metadata">

**Author:** [@yeon](https://discourse.processing.org/u/yeon)\
**Replies:** 4\
**Last updated:** [May 25, 2020, 8:39pm UTC](https://discourse.processing.org/t/i-want-to-change-the-size-of-each-class/21205 "2020-05-25T20:39:55Z")

</div>

I’m making a game with processing. I want to change the size of each class. What should I do?

---

## [Creating a temperature simulation](https://discourse.processing.org/t/creating-a-temperature-simulation/21183)

<div class="topic-metadata">

**Author:** [@abc123](https://discourse.processing.org/u/abc123)\
**Replies:** 13\
**Last updated:** [May 25, 2020, 8:06pm UTC](https://discourse.processing.org/t/creating-a-temperature-simulation/21183 "2020-05-25T20:06:34Z")

</div>

I’m trying to creating a temperature simulation. I’m loading a picture of a room, and I want to add an arrow showing the temperature. The temperature should increase when a certain key is pressed. I’m wondering how I can…

---

## [PeasyCam automatic camera movements](https://discourse.processing.org/t/peasycam-automatic-camera-movements/20515)

<div class="topic-metadata">

**Author:** [@alejo\_rgb](https://discourse.processing.org/u/alejo_rgb)\
**Replies:** 5\
**Last updated:** [May 25, 2020, 7:31pm UTC](https://discourse.processing.org/t/peasycam-automatic-camera-movements/20515 "2020-05-25T19:31:48Z")

</div>

hi. Im trying to automate movement with peasy cam. Right now with this code i have to manuale position the camera in 5 diferent places and by pressing the keys from 1 to 5, it sets those positions. Then by pressing the k…

---

## [G4P GUI Builder - how to export](https://discourse.processing.org/t/g4p-gui-builder-how-to-export/21277)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 3\
**Last updated:** [May 25, 2020, 5:06pm UTC](https://discourse.processing.org/t/g4p-gui-builder-how-to-export/21277 "2020-05-25T17:06:04Z")

</div>

Hey, I was initially making a lot of the sliders and buttons myself but this ended up in hundreds of classes as I’m working on a complex project, so I downloaded the GUI builder tool. If anyone’s used this before, my que…

---

## [Matmul function and PVectors](https://discourse.processing.org/t/matmul-function-and-pvectors/21279)

<div class="topic-metadata">

**Author:** [@cyberjaakko](https://discourse.processing.org/u/cyberjaakko)\
**Replies:** 1\
**Last updated:** [May 25, 2020, 2:49pm UTC](https://discourse.processing.org/t/matmul-function-and-pvectors/21279 "2020-05-25T14:49:52Z")

</div>

Hey, I’ve been learning matrix multiplication, but problems started while trying to setup a PVector that utlilzes a matmul function similar to Daniel Schiffman’s example for making 3D projections. I ran into problems wh…

---

## [Best ways to manage a canvas larger than the screen size?](https://discourse.processing.org/t/best-ways-to-manage-a-canvas-larger-than-the-screen-size/21265)

<div class="topic-metadata">

**Author:** [@dtreybig](https://discourse.processing.org/u/dtreybig)\
**Replies:** 2\
**Last updated:** [May 24, 2020, 9:14pm UTC](https://discourse.processing.org/t/best-ways-to-manage-a-canvas-larger-than-the-screen-size/21265 "2020-05-24T21:14:49Z")

</div>

Hi! I am new to Processing and having a lot of fun with it. I have developed a few algorithms I like and that I now want to try printing as a piece of physical art. So far, all of my work has been with a processing reso…

---

## [Using fisica and geomerative to add physics to typography](https://discourse.processing.org/t/using-fisica-and-geomerative-to-add-physics-to-typography/21225)

<div class="topic-metadata">

**Author:** [@hiphophooray](https://discourse.processing.org/u/hiphophooray)\
**Replies:** 5\
**Last updated:** [May 24, 2020, 9:11pm UTC](https://discourse.processing.org/t/using-fisica-and-geomerative-to-add-physics-to-typography/21225 "2020-05-24T21:11:36Z")

</div>

Hi guys. I have this idea for a project but I can’t really figured it out and the documentation for both of these libraries (fisica and geomerative) that I want to use are not that good. Does anyone know how can this be…

---

## [Processing button on/off](https://discourse.processing.org/t/processing-button-on-off/21256)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 2\
**Last updated:** [May 24, 2020, 8:00pm UTC](https://discourse.processing.org/t/processing-button-on-off/21256 "2020-05-24T20:00:15Z")

</div>

If on is true, change the background. But what happens is it flickers - I think it’s because it detects multiple mouseclicks and goes on, off, on, off. How do we avoid this? Do I need a delay term? It works, but I only n…

---

## [Null Pointer Exception on Object Array](https://discourse.processing.org/t/null-pointer-exception-on-object-array/21249)

<div class="topic-metadata">

**Author:** [@koleon03](https://discourse.processing.org/u/koleon03)\
**Replies:** 6\
**Last updated:** [May 24, 2020, 5:37pm UTC](https://discourse.processing.org/t/null-pointer-exception-on-object-array/21249 "2020-05-24T17:37:30Z")

</div>

Hey you guys, I hope you can help me with this. I am creating a little game, for which I need an array of Snowflakes (an object I created), which I create and instantiate. Despite that I am still getting a NPE. Here’s m…

---

## [Sending over Arduino analog values to Processing doesn't work](https://discourse.processing.org/t/sending-over-arduino-analog-values-to-processing-doesnt-work/21241)

<div class="topic-metadata">

**Author:** [@Monfan123](https://discourse.processing.org/u/Monfan123)\
**Replies:** 2\
**Last updated:** [May 24, 2020, 5:13pm UTC](https://discourse.processing.org/t/sending-over-arduino-analog-values-to-processing-doesnt-work/21241 "2020-05-24T17:13:50Z")

</div>

Hi all, For a schoolassignment i’am creating a 3D boxchart from a CSV file which represents COVID-19 cases in the Netherlands. The whole code is working fine for me as it is. At this moment i’ve got three buttons, a LED…

---

## [Simple Button - works sometimes, doesn't work sometimes](https://discourse.processing.org/t/simple-button-works-sometimes-doesnt-work-sometimes/21232)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 2\
**Last updated:** [May 24, 2020, 2:12pm UTC](https://discourse.processing.org/t/simple-button-works-sometimes-doesnt-work-sometimes/21232 "2020-05-24T14:12:07Z")

</div>

I’ve got a class defined for a button. I define this button globally as b1 and in setup define the size and values. Then in draw I have b1.update() and b1.display() and if(b1.press()) {functionon = !functionon}; where fu…

---

## [How do I pass a value from one sketch to another sketch?](https://discourse.processing.org/t/how-do-i-pass-a-value-from-one-sketch-to-another-sketch/21176)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 9\
**Last updated:** [May 24, 2020, 1:45pm UTC](https://discourse.processing.org/t/how-do-i-pass-a-value-from-one-sketch-to-another-sketch/21176 "2020-05-24T13:45:50Z")

</div>

I tried to do it by using saveStrings() in one sketch and loadStrings() in the other. writer.pde String\[\] Pipe = new String\[2\]; // Declare, create void setup() { size(400, 400); noStroke(); } void draw() { back…

---

## [Another question about dropdown lists in G4P](https://discourse.processing.org/t/another-question-about-dropdown-lists-in-g4p/21090)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 5\
**Last updated:** [May 24, 2020, 1:40pm UTC](https://discourse.processing.org/t/another-question-about-dropdown-lists-in-g4p/21090 "2020-05-24T13:40:52Z")

</div>

I’ve noticed that if I click on a dropdown list and select the current selection, no event is triggered. Is this the intended behaviour? In most cases, this is OK because no action needs to be taken, but in some cases I …

---

## [Lerp rate/speed - how to change the number of interpolation steps attached to a slider?](https://discourse.processing.org/t/lerp-rate-speed-how-to-change-the-number-of-interpolation-steps-attached-to-a-slider/21234)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 1\
**Last updated:** [May 24, 2020, 12:49pm UTC](https://discourse.processing.org/t/lerp-rate-speed-how-to-change-the-number-of-interpolation-steps-attached-to-a-slider/21234 "2020-05-24T12:49:11Z")

</div>

Hey guys, I’ve got a slider and I convert the position of it’s x and y coordinates into an amount from 0 to 1 which I then lerp to result in an animation when you slide from left to right. Is there a way to control the s…

---

## [Rotate () like earth around sun](https://discourse.processing.org/t/rotate-like-earth-around-sun/16713)

<div class="topic-metadata">

**Author:** [@Bouls631](https://discourse.processing.org/u/Bouls631)\
**Replies:** 5\
**Last updated:** [May 24, 2020, 7:40am UTC](https://discourse.processing.org/t/rotate-like-earth-around-sun/16713 "2020-05-24T07:40:57Z")

</div>

Hello every one… Is it possible to rotate an object around imself and around a other point on the same time? Thank’s a lot.

---

## [Perlin noise detail](https://discourse.processing.org/t/perlin-noise-detail/21223)

<div class="topic-metadata">

**Author:** [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)\
**Replies:** 5\
**Last updated:** [May 24, 2020, 4:58am UTC](https://discourse.processing.org/t/perlin-noise-detail/21223 "2020-05-24T04:58:18Z")

</div>

Is there any way to make the noise() function more continuous? It seems it only goes down to steps of around 0.003 until it acts discontinuously. For example noise(0.000) = noise(0.002).

---

## [Help Needed: oscP5 sending null:0](https://discourse.processing.org/t/help-needed-oscp5-sending-null-0/21107)

<div class="topic-metadata">

**Author:** [@mattmorris](https://discourse.processing.org/u/mattmorris)\
**Replies:** 1\
**Last updated:** [May 23, 2020, 11:28pm UTC](https://discourse.processing.org/t/help-needed-oscp5-sending-null-0/21107 "2020-05-23T23:28:15Z")

</div>

Hi, I am currently working on a project where Processing and the oscP5 library will be used to send OSC messages to companion. I am sending an OSC string as follows: OscMessage message= new OscMessage("/press/bank/1/2"…

---

## [Converting this code from Celsius to Fahrenheit](https://discourse.processing.org/t/converting-this-code-from-celsius-to-fahrenheit/21221)

<div class="topic-metadata">

**Author:** [@bobcat21976](https://discourse.processing.org/u/bobcat21976)\
**Replies:** 1\
**Last updated:** [May 23, 2020, 9:49pm UTC](https://discourse.processing.org/t/converting-this-code-from-celsius-to-fahrenheit/21221 "2020-05-23T21:49:32Z")

</div>

import javax.swing.JOptionPane; int FREEZE\_F=32; int BOIL\_F=212; int temp ; String scale; String answer= JOptionPane.showInputDialog("Enter the temperature in degrees: "); temp= Integer.parseInt(answer); scale = JOption…

---

## [How to move a figure without selecting others?](https://discourse.processing.org/t/how-to-move-a-figure-without-selecting-others/21145)

<div class="topic-metadata">

**Author:** [@yass](https://discourse.processing.org/u/yass)\
**Replies:** 2\
**Last updated:** [May 23, 2020, 12:40pm UTC](https://discourse.processing.org/t/how-to-move-a-figure-without-selecting-others/21145 "2020-05-23T12:40:48Z")

</div>

Hello, I am trying to create a game. i have a class that draw triangles and i select them through a circle that is inside. The problem is when I have several figures, the circles overlap and I cannot select them one by …

---

## [Problem with box colliders in P3D](https://discourse.processing.org/t/problem-with-box-colliders-in-p3d/21166)

<div class="topic-metadata">

**Author:** [@Astroide](https://discourse.processing.org/u/Astroide)\
**Replies:** 1\
**Last updated:** [May 22, 2020, 11:19pm UTC](https://discourse.processing.org/t/problem-with-box-colliders-in-p3d/21166 "2020-05-22T23:19:43Z")

</div>

I am trying to make a tridimensional game with P3D (a finite world of solid boxes of different colors). I always have the same problem: only the 9 center blocks seem to have a working collider. The code : float x=0; int…

---

## [All the permutations of a given string](https://discourse.processing.org/t/all-the-permutations-of-a-given-string/21172)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 1\
**Last updated:** [May 22, 2020, 11:07pm UTC](https://discourse.processing.org/t/all-the-permutations-of-a-given-string/21172 "2020-05-22T23:07:56Z")

</div>

Is there a way (in Processing) to find all the permutations of a given string? To be worthwhile, I think the string needs to be at least six characters long. This could be a candidate for \<http://www.rosettacode.org/wik…

---

## [Can you save multiple tables in a single csv file?](https://discourse.processing.org/t/can-you-save-multiple-tables-in-a-single-csv-file/21175)

<div class="topic-metadata">

**Author:** [@abdullahmq](https://discourse.processing.org/u/abdullahmq)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 10:52pm UTC](https://discourse.processing.org/t/can-you-save-multiple-tables-in-a-single-csv-file/21175 "2020-05-22T22:52:09Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am trying to add and save multiples tables in a single CSV file, I have a car class and every car class inherits its own table but when I stop…

---

## [Mario game--adding ground and moving screen with player](https://discourse.processing.org/t/mario-game-adding-ground-and-moving-screen-with-player/21184)

<div class="topic-metadata">

**Author:** [@jasmine](https://discourse.processing.org/u/jasmine)\
**Replies:** 3\
**Last updated:** [May 22, 2020, 10:28pm UTC](https://discourse.processing.org/t/mario-game-adding-ground-and-moving-screen-with-player/21184 "2020-05-22T22:28:26Z")

</div>

int gameMode=0;//0 - menu, 1 - play game, 2 - instructions, 3 - character selection int selChar=1;//default character is "character 1" int level=1; color red=color(255, 0, 0); color green=color(0, 255, 0); color blue=col…

---

## [ArrayOutOfBounds in bonified Shiffman tutorial](https://discourse.processing.org/t/arrayoutofbounds-in-bonified-shiffman-tutorial/21144)

<div class="topic-metadata">

**Author:** [@clarbar9](https://discourse.processing.org/u/clarbar9)\
**Replies:** 6\
**Last updated:** [May 22, 2020, 9:55pm UTC](https://discourse.processing.org/t/arrayoutofbounds-in-bonified-shiffman-tutorial/21144 "2020-05-22T21:55:52Z")

</div>

I was following Dan Shiffman’s tutorial on Motion Detection and kept getting an ArrayOutOfBounds error. I couldn’t figure out why so I decided to test the exact same code copied directly from the Coding Train github acc…

---

## [Number box like Pure Data](https://discourse.processing.org/t/number-box-like-pure-data/21064)

<div class="topic-metadata">

**Author:** [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Replies:** 6\
**Last updated:** [May 22, 2020, 8:41pm UTC](https://discourse.processing.org/t/number-box-like-pure-data/21064 "2020-05-22T20:41:36Z")

</div>

Nailed it. Made a number box like Pure Data but it still needs some work, any suggestions? PFont f; // STEP 1 Declare PFont variable int boton1X, boton1Y, boton1Size; // Boton1 boolean boton1Over, boton1Presionado; …

---

## [How to embed processing sketch onto HTML web page?](https://discourse.processing.org/t/how-to-embed-processing-sketch-onto-html-web-page/21151)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 3:42pm UTC](https://discourse.processing.org/t/how-to-embed-processing-sketch-onto-html-web-page/21151 "2020-05-22T15:42:41Z")

</div>

Hi. how to I embed my processing sketch directly onto a web page? My sketch uses P3D. libraries: Sound, Video and other miscellaneous libraries.

---

## [The color tracking program behaves differently when sized up; why?](https://discourse.processing.org/t/the-color-tracking-program-behaves-differently-when-sized-up-why/21162)

<div class="topic-metadata">

**Author:** [@calla\_balanescu](https://discourse.processing.org/u/calla_balanescu)\
**Replies:** 1\
**Last updated:** [May 22, 2020, 1:23pm UTC](https://discourse.processing.org/t/the-color-tracking-program-behaves-differently-when-sized-up-why/21162 "2020-05-22T13:23:08Z")

</div>

Hello fellow processing enthusiasts!! I am currently working on a project for university and I am pretty much at the beginning with the code. In it, I am using color detection to avoid the walls of the maze you’re supp…

---

## [Command Prompt wont take input paths](https://discourse.processing.org/t/command-prompt-wont-take-input-paths/21152)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 1\
**Last updated:** [May 22, 2020, 5:07am UTC](https://discourse.processing.org/t/command-prompt-wont-take-input-paths/21152 "2020-05-22T05:07:28Z")

</div>

I am writing a program to automate an .exe file that takes file paths as arguments. Lets call this file we want to automatically call scale.exe The Strings scalarPath, inputPath, and outputPath are all made using the f…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=205)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=207)
