# Processing

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

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

**Page:** 256

---

## [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…

---

## [Processing Kinect Tracking - Change .jpg file to .gif -](https://discourse.processing.org/t/processing-kinect-tracking-change-jpg-file-to-gif/15865)

<div class="topic-metadata">

**Author:** [@12345](https://discourse.processing.org/u/12345)\
**Replies:** 1\
**Last updated:** [November 27, 2019, 1:26pm UTC](https://discourse.processing.org/t/processing-kinect-tracking-change-jpg-file-to-gif/15865 "2019-11-27T13:26:44Z")

</div>

Hi, I’m currently having trouble trying to change a jpg which is moving with the tracker into a gif file - so multiple images can be shown whilst moving around a screen. Alternatively I’m trying to load more than one im…

---

## [On the last flag the text is not visible, why?](https://discourse.processing.org/t/on-the-last-flag-the-text-is-not-visible-why/15834)

<div class="topic-metadata">

**Author:** [@CyberDodo](https://discourse.processing.org/u/CyberDodo)\
**Replies:** 5\
**Last updated:** [November 27, 2019, 12:09pm UTC](https://discourse.processing.org/t/on-the-last-flag-the-text-is-not-visible-why/15834 "2019-11-27T12:09:08Z")

</div>

I tried to put this text (Das war’s Danke für’s mitmachen) on flag 3 but it did not work, why? int flag = 0; // 3 parallel arrays String\[\] text1 = { "1. Aussage:", "2. Aussage:", "3. Aussage:", "4. Auss…

---

## [How to increase Processing's processing power?](https://discourse.processing.org/t/how-to-increase-processings-processing-power/15851)

<div class="topic-metadata">

**Author:** [@mrwizard487](https://discourse.processing.org/u/mrwizard487)\
**Replies:** 2\
**Last updated:** [November 27, 2019, 11:14am UTC](https://discourse.processing.org/t/how-to-increase-processings-processing-power/15851 "2019-11-27T11:14:33Z")

</div>

Hey guys, so I'm currently working on a game in Processing 3 on my 2018 macbook pro. This game involves drawing a lot of rectangles, and despite my best optimization efforts, the game suffers from frame rates dropping t…

---

## [Interactivity, mouseDragged(), two discs](https://discourse.processing.org/t/interactivity-mousedragged-two-discs/15664)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 38\
**Last updated:** [November 26, 2019, 10:23pm UTC](https://discourse.processing.org/t/interactivity-mousedragged-two-discs/15664 "2019-11-26T22:23:21Z")

</div>

The disc (see below) moves when it is dragged. That is fine. How do I have two discs and have them move independently? So if I drag disc1 it moves, and disc2 does not move and if I drag disc2 that moves and disc1 does n…

---

## [What is FFT.analzye() range? I'm only getting tiny tiny values](https://discourse.processing.org/t/what-is-fft-analzye-range-im-only-getting-tiny-tiny-values/10827)

<div class="topic-metadata">

**Author:** [@DerekCresswell](https://discourse.processing.org/u/DerekCresswell)\
**Replies:** 4\
**Last updated:** [November 26, 2019, 10:05pm UTC](https://discourse.processing.org/t/what-is-fft-analzye-range-im-only-getting-tiny-tiny-values/10827 "2019-11-26T22:05:31Z")

</div>

I’ve tried putting in different songs and my values are coming out usually about “0.00XXXe-6” or just tiny. The largest I’ve gotten is “8”. I’ve tried mapping my values but only guessing on the range they either come out…

---

## [Help with Painting Program](https://discourse.processing.org/t/help-with-painting-program/15840)

<div class="topic-metadata">

**Author:** [@keeg23](https://discourse.processing.org/u/keeg23)\
**Replies:** 2\
**Last updated:** [November 26, 2019, 9:18pm UTC](https://discourse.processing.org/t/help-with-painting-program/15840 "2019-11-26T21:18:05Z")

</div>

When I use the save function it changes the background to red and erases what is painted, Wondering how I can save without it going away and background staying orange. Also need help with creating a way to have the other…

---

## [Creating a simple map using a given map provider does not work in unfolding map](https://discourse.processing.org/t/creating-a-simple-map-using-a-given-map-provider-does-not-work-in-unfolding-map/15771)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [November 26, 2019, 6:53am UTC](https://discourse.processing.org/t/creating-a-simple-map-using-a-given-map-provider-does-not-work-in-unfolding-map/15771 "2019-11-26T06:53:22Z")

</div>

/\* An application with a basic map.\*/ import de.fhpotsdam.unfolding.\*; import de.fhpotsdam.unfolding.core.\*; import de.fhpotsdam.unfolding.data.\*; import de.fhpotsdam.unfolding.events.\*; import de.fhpotsdam.unfolding.ge…

---

## [Kinect Typographic MIRROR!](https://discourse.processing.org/t/kinect-typographic-mirror/15825)

<div class="topic-metadata">

**Author:** [@madiMcD](https://discourse.processing.org/u/madiMcD)\
**Replies:** 1\
**Last updated:** [November 26, 2019, 5:16am UTC](https://discourse.processing.org/t/kinect-typographic-mirror/15825 "2019-11-26T05:16:26Z")

</div>

Hello!! I am at a block with my code, and I don’t know where to go from here. I am creating a mirror out of type for a current project, and I managed to do so following the Coding Train’s point cloud tutorial and substi…

---

## [Sometimes key returns capital letter](https://discourse.processing.org/t/sometimes-key-returns-capital-letter/15820)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [November 26, 2019, 2:36am UTC](https://discourse.processing.org/t/sometimes-key-returns-capital-letter/15820 "2019-11-26T02:36:56Z")

</div>

Making a textbox, and using a = char(key); to return a key. Most of the time it works fine but sometimes it will randomly capitalize a letter, any idea what would cause this?

---

## [How to put a marker at a specific position using unfolding map?](https://discourse.processing.org/t/how-to-put-a-marker-at-a-specific-position-using-unfolding-map/15765)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [November 25, 2019, 11:10pm UTC](https://discourse.processing.org/t/how-to-put-a-marker-at-a-specific-position-using-unfolding-map/15765 "2019-11-25T23:10:13Z")

</div>

Location center = new Location(64, 20); Integer zoom\_start = 9; AbstractMapProvider provider5; UnfoldingMap map; String provider5Attrib; String attrib; Float attribWidth; PImage clock; PImage calendar; int totalFrames…

---

## [Why this rectangle disappear?](https://discourse.processing.org/t/why-this-rectangle-disappear/15812)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [November 25, 2019, 10:02pm UTC](https://discourse.processing.org/t/why-this-rectangle-disappear/15812 "2019-11-25T22:02:46Z")

</div>

void setup(){ size(1000,1000,P3D); } void draw(){ noStroke(); fill(0, 20); rect(0, 0, width, height); pushMatrix(); pushStyle(); translate(500, 500); rotate(PI/2 + PI/2); …

---

## [Can I read data from another softwares database?](https://discourse.processing.org/t/can-i-read-data-from-another-softwares-database/15733)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 3\
**Last updated:** [November 25, 2019, 8:40pm UTC](https://discourse.processing.org/t/can-i-read-data-from-another-softwares-database/15733 "2019-11-25T20:40:26Z")

</div>

Hi! I recently found out and have been shown the potential of using processing to create small programs dealing with information like production times :blush: Now I wondered… I have a lot of data in a production planni…

---

## [Mouse inside a triangle checker](https://discourse.processing.org/t/mouse-inside-a-triangle-checker/15727)

<div class="topic-metadata">

**Author:** [@SimoneBatistini](https://discourse.processing.org/u/SimoneBatistini)\
**Replies:** 18\
**Last updated:** [November 25, 2019, 6:51pm UTC](https://discourse.processing.org/t/mouse-inside-a-triangle-checker/15727 "2019-11-25T18:51:40Z")

</div>

I’m trying to make a program that will detect if the mouse is inside a triangle or not. It has to be any type of triangle. My idea is taking a triangle ABC and the mouse point K and calculating the areas Aabc Aabk Aakc A…

---

## [Text input for choosing Colour](https://discourse.processing.org/t/text-input-for-choosing-colour/15772)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 2\
**Last updated:** [November 25, 2019, 7:16am UTC](https://discourse.processing.org/t/text-input-for-choosing-colour/15772 "2019-11-25T07:16:31Z")

</div>

Hi, I want to choose a colour by typing the hex (or the RGB) into a field. Is my rough sketch (see below) the way to go? Later, I will add a value for the Alpha to the string rather than type it into the text field and …

---

## [Println(color) gives strange color number](https://discourse.processing.org/t/println-color-gives-strange-color-number/15654)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 17\
**Last updated:** [November 25, 2019, 5:03pm UTC](https://discourse.processing.org/t/println-color-gives-strange-color-number/15654 "2019-11-25T17:03:19Z")

</div>

color c=color(255,1); println(c); console 33554431 color c=color(200,129); println(c); console -2117547832 color c=color(12,127); println(c); console 2131495948 The negative & positive sign is related to alpha & …

---

## [Trouble on array's \[COMPLICATED\]](https://discourse.processing.org/t/trouble-on-arrays-complicated/15496)

<div class="topic-metadata">

**Author:** [@IsaiahZ](https://discourse.processing.org/u/IsaiahZ)\
**Replies:** 27\
**Last updated:** [November 25, 2019, 3:39pm UTC](https://discourse.processing.org/t/trouble-on-arrays-complicated/15496 "2019-11-25T15:39:03Z")

</div>

I’m making a palette where when I press on a square it will change to whatever color I have selected from the palette. Right now I’m having trouble with two things: Making the array that when I select a circle or multi…

---

## [What does this error mean?](https://discourse.processing.org/t/what-does-this-error-mean/15794)

<div class="topic-metadata">

**Author:** [@24stevek](https://discourse.processing.org/u/24stevek)\
**Replies:** 8\
**Last updated:** [November 25, 2019, 1:19pm UTC](https://discourse.processing.org/t/what-does-this-error-mean/15794 "2019-11-25T13:19:01Z")

</div>

Hello! I am making a bar graph program and I need to get some numbers in an array. But an error pops out and I don’t get what it means. Can anybody tell me what this error is and what I have to do in order to fix it? T…

---

## [How to get a number array in processing\_beginner](https://discourse.processing.org/t/how-to-get-a-number-array-in-processing-beginner/15759)

<div class="topic-metadata">

**Author:** [@24stevek](https://discourse.processing.org/u/24stevek)\
**Replies:** 7\
**Last updated:** [November 25, 2019, 7:00am UTC](https://discourse.processing.org/t/how-to-get-a-number-array-in-processing-beginner/15759 "2019-11-25T07:00:32Z")

</div>

Hi. I gave up on my electrostatic project and started a graph project. I need to receive an array to make a graph, but “ArrayIndexOutOfBoundsException: 1” keeps popping up. Can anyone tell me a way of getting a number a…

---

## [I need help with a problem](https://discourse.processing.org/t/i-need-help-with-a-problem/15687)

<div class="topic-metadata">

**Author:** [@Leyonad](https://discourse.processing.org/u/Leyonad)\
**Replies:** 2\
**Last updated:** [November 24, 2019, 8:09pm UTC](https://discourse.processing.org/t/i-need-help-with-a-problem/15687 "2019-11-24T20:09:15Z")

</div>

Hello, Does anyone know how to solve this problem? “Determine the letter with the largest gap. A gap is the number of letters that is different from the letter that is determined.” If someone could help me, I would b…

---

## [Difference between two times (measuring time)](https://discourse.processing.org/t/difference-between-two-times-measuring-time/15728)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 6\
**Last updated:** [November 25, 2019, 1:30am UTC](https://discourse.processing.org/t/difference-between-two-times-measuring-time/15728 "2019-11-25T01:30:21Z")

</div>

Hello all, \[Edited\] let’s say I have times like 00:36:04 and 03:16:05 as Strings (which is an actual time and not a duration). How can I have the difference (duration) between the two times like “4h, 23min, 13sec” or…

---

## [Help creating simple animation](https://discourse.processing.org/t/help-creating-simple-animation/14089)

<div class="topic-metadata">

**Author:** [@clpeng](https://discourse.processing.org/u/clpeng)\
**Replies:** 23\
**Last updated:** [November 25, 2019, 1:20am UTC](https://discourse.processing.org/t/help-creating-simple-animation/14089 "2019-11-25T01:20:20Z")

</div>

Trying to replicate a simple animation I did years ago in assembler. I want to draw a rectangle, display it for a set time, erase it, then draw another slightly larger rectangle, display for a time, erase, etc. Thanks! …

---

## [Issue with keyPressed](https://discourse.processing.org/t/issue-with-keypressed/15755)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [November 25, 2019, 1:16am UTC](https://discourse.processing.org/t/issue-with-keypressed/15755 "2019-11-25T01:16:38Z")

</div>

I want to add some key functionality to my program, it works fine for arrow keys but not for other keys if(keyPressed && keyCode ==37){ flyingx += 0.1; } if(keyPressed && keyCode ==39){ …

---

## [Processing not writing on a file](https://discourse.processing.org/t/processing-not-writing-on-a-file/9037)

<div class="topic-metadata">

**Author:** [@begosustatx](https://discourse.processing.org/u/begosustatx)\
**Replies:** 10\
**Last updated:** [November 24, 2019, 11:27pm UTC](https://discourse.processing.org/t/processing-not-writing-on-a-file/9037 "2019-11-24T23:27:24Z")

</div>

Good morning, I am trying to save some data that my arduino is getting and save it into a file, the problem is the processing is not writing into the file, the data is correct and the processing is getting the data perfe…

---

## [Arduino To Processing Error For Capactive Sensor](https://discourse.processing.org/t/arduino-to-processing-error-for-capactive-sensor/15781)

<div class="topic-metadata">

**Author:** [@SusanAlyse001](https://discourse.processing.org/u/SusanAlyse001)\
**Replies:** 16\
**Last updated:** [November 25, 2019, 12:42am UTC](https://discourse.processing.org/t/arduino-to-processing-error-for-capactive-sensor/15781 "2019-11-25T00:42:57Z")

</div>

Hello, I have successfully drafted the Ardunio code for capacitive sensing. The serial Monitor shows right values. Also, I have successful drafted the processing code which shows the exact same values from Arduino’s se…

---

## [How to separately animate characters in a string after scaling and centering](https://discourse.processing.org/t/how-to-separately-animate-characters-in-a-string-after-scaling-and-centering/15663)

<div class="topic-metadata">

**Author:** [@jimather](https://discourse.processing.org/u/jimather)\
**Replies:** 3\
**Last updated:** [November 24, 2019, 10:22pm UTC](https://discourse.processing.org/t/how-to-separately-animate-characters-in-a-string-after-scaling-and-centering/15663 "2019-11-24T22:22:20Z")

</div>

Hi, What I’m trying to do is animate the characters in a string independently of one another and have them all “home” into a centred and scaled position as one final string allowing the OS to adjust for different screen…

---

## [Hi I'm new to Processing and struggling](https://discourse.processing.org/t/hi-im-new-to-processing-and-struggling/15774)

<div class="topic-metadata">

**Author:** [@ousmm](https://discourse.processing.org/u/ousmm)\
**Replies:** 9\
**Last updated:** [November 24, 2019, 9:12pm UTC](https://discourse.processing.org/t/hi-im-new-to-processing-and-struggling/15774 "2019-11-24T21:12:46Z")

</div>

Hi i’m new to processing and coding in general , i have a project that is due in 6 hours and i have problems everywhere in my code , i keep looking of them and cant find anything and i’m very desperate.can you guys help…

---

## [Template.pde variables?](https://discourse.processing.org/t/template-pde-variables/15767)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 4\
**Last updated:** [November 24, 2019, 8:24pm UTC](https://discourse.processing.org/t/template-pde-variables/15767 "2019-11-24T20:24:32Z")

</div>

Are there any date/time variables available to use in a sketch.pde template so new files will have the current date inside them when a new sketch is created? I’m referring to the idea of creating a template as shown in h…

---

## [Cascaded function call question](https://discourse.processing.org/t/cascaded-function-call-question/15688)

<div class="topic-metadata">

**Author:** [@meow](https://discourse.processing.org/u/meow)\
**Replies:** 11\
**Last updated:** [November 24, 2019, 6:40pm UTC](https://discourse.processing.org/t/cascaded-function-call-question/15688 "2019-11-24T18:40:46Z")

</div>

int chi(int a) { int b = foo(a); if(b \< 5 ) { return a - b; } else { return a - b + 10; } } 47 283 0 how to do this question?

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

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