# Processing

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

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

**Page:** 248

---

## [Help with rotation in simple animation](https://discourse.processing.org/t/help-with-rotation-in-simple-animation/16620)

<div class="topic-metadata">

**Author:** [@srgochman](https://discourse.processing.org/u/srgochman)\
**Replies:** 2\
**Last updated:** [December 26, 2019, 6:04pm UTC](https://discourse.processing.org/t/help-with-rotation-in-simple-animation/16620 "2019-12-26T18:04:55Z")

</div>

Hi! I’m relatively new to Processing, and I’ve been practicing with some simple visualizations. I feel that I’m 90% of the way there but can use some help to get the last step(s). My goal is to draw a row of dots (Point…

---

## [Just FYI, the movie "Extraction" has lifted code from your website](https://discourse.processing.org/t/just-fyi-the-movie-extraction-has-lifted-code-from-your-website/8486)

<div class="topic-metadata">

**Author:** [@gnif](https://discourse.processing.org/u/gnif)\
**Replies:** 7\
**Last updated:** [December 26, 2019, 10:25am UTC](https://discourse.processing.org/t/just-fyi-the-movie-extraction-has-lifted-code-from-your-website/8486 "2019-12-26T10:25:44Z")

</div>

Was just watching this and the code was clear enough to read at 1:12, a quick google turned it up, its a very slightly modified version of the code found here: https://processing.org/examples/spore1.html Clearly they h…

---

## [What is equivalent to splice in array of vectors?](https://discourse.processing.org/t/what-is-equivalent-to-splice-in-array-of-vectors/16629)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 3\
**Last updated:** [December 26, 2019, 8:59am UTC](https://discourse.processing.org/t/what-is-equivalent-to-splice-in-array-of-vectors/16629 "2019-12-26T08:59:42Z")

</div>

I want to add a pvector at a specific index in arraylist of vectors which already includes few vectors similar to splice function for array. Any idea how to go about this for vectors?

---

## [Plot marker on a map in canvas created by processing](https://discourse.processing.org/t/plot-marker-on-a-map-in-canvas-created-by-processing/16149)

<div class="topic-metadata">

**Author:** [@iamgsshetty](https://discourse.processing.org/u/iamgsshetty)\
**Replies:** 4\
**Last updated:** [December 24, 2019, 2:16pm UTC](https://discourse.processing.org/t/plot-marker-on-a-map-in-canvas-created-by-processing/16149 "2019-12-24T14:16:13Z")

</div>

I am creating a GUI for my airplane which should look like the image So need to add a map showing live location of my airplane How would I do this using processing

---

## [Code for TouchOSC and Arduino doesn't work](https://discourse.processing.org/t/code-for-touchosc-and-arduino-doesnt-work/16627)

<div class="topic-metadata">

**Author:** [@MikeAelbrecht](https://discourse.processing.org/u/MikeAelbrecht)\
**Replies:** 1\
**Last updated:** [December 25, 2019, 11:41am UTC](https://discourse.processing.org/t/code-for-touchosc-and-arduino-doesnt-work/16627 "2019-12-25T11:41:10Z")

</div>

This is my Processing code: import oscP5.; // Load OSC P5 library import netP5.; // Load net P5 library import processing.serial.\*; // Load serial library Serial arduinoPort; // Set arduin…

---

## [Serial write fails on the first write](https://discourse.processing.org/t/serial-write-fails-on-the-first-write/16564)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 4\
**Last updated:** [December 24, 2019, 10:54pm UTC](https://discourse.processing.org/t/serial-write-fails-on-the-first-write/16564 "2019-12-24T22:54:15Z")

</div>

Thank you for reading this. I’ve spent most of the day trying to discover why the serial write function will not send the correct data the first time. If I send the same block of data twice then the correct data is recei…

---

## [Make balls bounce](https://discourse.processing.org/t/make-balls-bounce/16441)

<div class="topic-metadata">

**Author:** [@sahaa1](https://discourse.processing.org/u/sahaa1)\
**Replies:** 4\
**Last updated:** [December 24, 2019, 2:05pm UTC](https://discourse.processing.org/t/make-balls-bounce/16441 "2019-12-24T14:05:17Z")

</div>

I am trying to make a project in which when a ball bounces against the edge of the screen, another ball is produced, and I will loop it. However, due to an error which seems almost impossible to fix, the second ball is n…

---

## [HELP with Processing project (Post 1 of 2)](https://discourse.processing.org/t/help-with-processing-project-post-1-of-2/16434)

<div class="topic-metadata">

**Author:** [@ImConfused](https://discourse.processing.org/u/ImConfused)\
**Replies:** 4\
**Last updated:** [December 24, 2019, 1:56pm UTC](https://discourse.processing.org/t/help-with-processing-project-post-1-of-2/16434 "2019-12-24T13:56:59Z")

</div>

I need a ton of help with projects and one is this one I don’t know got to set it up

---

## [NFC tags and processing](https://discourse.processing.org/t/nfc-tags-and-processing/14353)

<div class="topic-metadata">

**Author:** [@GraceOD](https://discourse.processing.org/u/GraceOD)\
**Replies:** 2\
**Last updated:** [December 24, 2019, 12:07pm UTC](https://discourse.processing.org/t/nfc-tags-and-processing/14353 "2019-12-24T12:07:48Z")

</div>

Hi guys, I am thinking of making an app using Processing, but I want the app to be downloadable from an NFC tag. Is this possible? Has anyone done this that can lead me in the right direction? Thanks in advance, Grace …

---

## [Processing to eclipse or Netbeans](https://discourse.processing.org/t/processing-to-eclipse-or-netbeans/16605)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 0\
**Last updated:** [December 24, 2019, 9:48am UTC](https://discourse.processing.org/t/processing-to-eclipse-or-netbeans/16605 "2019-12-24T09:48:56Z")

</div>

In processing I wrote a code when I click image sounds play and it’s working fine in processing however, when I import it Netbeans and eclipse the image file file displayed but sounds not working? Can you help?

---

## [Live data into processing](https://discourse.processing.org/t/live-data-into-processing/16603)

<div class="topic-metadata">

**Author:** [@bayleft](https://discourse.processing.org/u/bayleft)\
**Replies:** 1\
**Last updated:** [December 24, 2019, 9:45am UTC](https://discourse.processing.org/t/live-data-into-processing/16603 "2019-12-24T09:45:35Z")

</div>

Hello! I am trying to pull live data from the website below and put it into processing. I am basically at a level below beginner… What is the best way for doing this? I am reading about APIs and such and getting lost. …

---

## [Problems with objects updating](https://discourse.processing.org/t/problems-with-objects-updating/16439)

<div class="topic-metadata">

**Author:** [@davidclue](https://discourse.processing.org/u/davidclue)\
**Replies:** 3\
**Last updated:** [December 24, 2019, 5:11am UTC](https://discourse.processing.org/t/problems-with-objects-updating/16439 "2019-12-24T05:11:49Z")

</div>

Hi, I was creating a game and so far everything was going well until I decided to change the way to make trails which I had in my game and ever since theirs been a problem with a few of them rendering at all. int level=…

---

## [Saving data to a .txt file](https://discourse.processing.org/t/saving-data-to-a-txt-file/16600)

<div class="topic-metadata">

**Author:** [@davidclue](https://discourse.processing.org/u/davidclue)\
**Replies:** 1\
**Last updated:** [December 24, 2019, 1:07am UTC](https://discourse.processing.org/t/saving-data-to-a-txt-file/16600 "2019-12-24T01:07:22Z")

</div>

Hi, I am making a level editor for a game and have an idea on how to load level packs into the main game. The idea is to save data in the form of arrays of numbers that builds a level in a text document and then people c…

---

## [Symmetric overlapping sine wave code](https://discourse.processing.org/t/symmetric-overlapping-sine-wave-code/16565)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 4\
**Last updated:** [December 23, 2019, 11:12pm UTC](https://discourse.processing.org/t/symmetric-overlapping-sine-wave-code/16565 "2019-12-23T23:12:03Z")

</div>

int n = 5; // NO. OF STRANDS float\[\] translate;//OFFSET OF INDIVIDUAL STRAND float\[\] amp;// AMPLITUDE OF INDIVIDUAL STRAND float\[\] period;// PERIOD OF INDIVIDUAL STRAND RELATIVE TO STANDARD PERIOD float frequency; float …

---

## [Making a queue manager](https://discourse.processing.org/t/making-a-queue-manager/16593)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 5\
**Last updated:** [December 23, 2019, 9:43pm UTC](https://discourse.processing.org/t/making-a-queue-manager/16593 "2019-12-23T21:43:51Z")

</div>

Hello all. With the help of this forum, I was able to create the first version of my queue manager, One small problem: After 11 names are entered, the names go off screen. I tried to fix it by making another array, makin…

---

## [Randomly distribute objects on grid](https://discourse.processing.org/t/randomly-distribute-objects-on-grid/16590)

<div class="topic-metadata">

**Author:** [@Reynaert98](https://discourse.processing.org/u/Reynaert98)\
**Replies:** 4\
**Last updated:** [December 23, 2019, 4:16pm UTC](https://discourse.processing.org/t/randomly-distribute-objects-on-grid/16590 "2019-12-23T16:16:16Z")

</div>

Hello, I’m working on a game/ assignment where I have to randomly place some objects into a grid. These objects are supposed to be hidden on the grid and pop up when a player clicks on it. I made an attempt by making 2 …

---

## [How to detect which CheckBox was toggled to keep at least one switch 'ON'](https://discourse.processing.org/t/how-to-detect-which-checkbox-was-toggled-to-keep-at-least-one-switch-on/16581)

<div class="topic-metadata">

**Author:** [@JackFC](https://discourse.processing.org/u/JackFC)\
**Replies:** 8\
**Last updated:** [December 23, 2019, 11:59am UTC](https://discourse.processing.org/t/how-to-detect-which-checkbox-was-toggled-to-keep-at-least-one-switch-on/16581 "2019-12-23T11:59:53Z")

</div>

Hello, I am quite new in Processing. I am working on a project where I use a CheckBox from ControlP5 library to control random rotation of a shape. I have 4 switches each for one angle (0/90/180/270 degrees) and I need …

---

## [textStyle Italic bold and others](https://discourse.processing.org/t/textstyle-italic-bold-and-others/16557)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [December 22, 2019, 5:33pm UTC](https://discourse.processing.org/t/textstyle-italic-bold-and-others/16557 "2019-12-22T17:33:45Z")

</div>

How, would I go about setting the text to italic in processing. There is textStyle() in p5.js but I cannot seem to find its equivalent in processing. Thanks.

---

## [How to use text() command to print string array to screen](https://discourse.processing.org/t/how-to-use-text-command-to-print-string-array-to-screen/16574)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 4\
**Last updated:** [December 22, 2019, 5:16pm UTC](https://discourse.processing.org/t/how-to-use-text-command-to-print-string-array-to-screen/16574 "2019-12-22T17:16:18Z")

</div>

Hello Long story short: I’m porting my python program to processing to add a GUI. Here is my code so far: int i = 0; String currentName = ""; int z = i+1; String names\[\] = new String\[100\]; void setup(){ size(700…

---

## [Mouse Is Very Slow](https://discourse.processing.org/t/mouse-is-very-slow/16423)

<div class="topic-metadata">

**Author:** [@fredstout](https://discourse.processing.org/u/fredstout)\
**Replies:** 19\
**Last updated:** [December 22, 2019, 2:40pm UTC](https://discourse.processing.org/t/mouse-is-very-slow/16423 "2019-12-22T14:40:11Z")

</div>

On at least two current projects, the mouse seems unreasonably slow. I am using mouseClicked to select options on the screen. Once clicked, I compute the location of the graphic on the screen that was clicked. Beyond tha…

---

## [Showing words at maxium of 12](https://discourse.processing.org/t/showing-words-at-maxium-of-12/16567)

<div class="topic-metadata">

**Author:** [@vanoevelenstef](https://discourse.processing.org/u/vanoevelenstef)\
**Replies:** 1\
**Last updated:** [December 22, 2019, 1:03pm UTC](https://discourse.processing.org/t/showing-words-at-maxium-of-12/16567 "2019-12-22T13:03:00Z")

</div>

I’ve created this code where every key is a pre formatted word and once it has been pressed it shows the word on screen and pressing another key changes the previous word. Now I’m wondering, can I show more than one word…

---

## [Development of Matrix Operations library](https://discourse.processing.org/t/development-of-matrix-operations-library/16402)

<div class="topic-metadata">

**Author:** [@pallav12](https://discourse.processing.org/u/pallav12)\
**Replies:** 5\
**Last updated:** [December 22, 2019, 10:15am UTC](https://discourse.processing.org/t/development-of-matrix-operations-library/16402 "2019-12-22T10:15:35Z")

</div>

Hello Everyone, I’ve been using processing for almost 2 years, it’s one for first place where I started coding. Now I want to contribute to processing in some way. The idea is since a lot of peoples are trying to make …

---

## [Changing row-size of dynamic grid](https://discourse.processing.org/t/changing-row-size-of-dynamic-grid/16510)

<div class="topic-metadata">

**Author:** [@Namrad](https://discourse.processing.org/u/Namrad)\
**Replies:** 9\
**Last updated:** [December 22, 2019, 7:11am UTC](https://discourse.processing.org/t/changing-row-size-of-dynamic-grid/16510 "2019-12-22T07:11:16Z")

</div>

Hello! I’m encountering a problem with a grid-sketch. The answer seems rather simple, yet I can’t wrap my head around it for several days now. The idea is simple: I wanted to make a grid of rectangles which alter in wi…

---

## [A question about the import of minim files](https://discourse.processing.org/t/a-question-about-the-import-of-minim-files/16542)

<div class="topic-metadata">

**Author:** [@xianyu](https://discourse.processing.org/u/xianyu)\
**Replies:** 6\
**Last updated:** [December 22, 2019, 5:59am UTC](https://discourse.processing.org/t/a-question-about-the-import-of-minim-files/16542 "2019-12-22T05:59:53Z")

</div>

Hi! I am a beginner in processing. I had some problems when importing audio files using minim. The file name and location looks correct. Below is my code. import ddf.minim.\*; import ddf.minim.analysis.\*; import ddf.min…

---

## [How do we add an icon as a marker in unfolding map](https://discourse.processing.org/t/how-do-we-add-an-icon-as-a-marker-in-unfolding-map/16547)

<div class="topic-metadata">

**Author:** [@iamgsshetty](https://discourse.processing.org/u/iamgsshetty)\
**Replies:** 3\
**Last updated:** [December 22, 2019, 5:25am UTC](https://discourse.processing.org/t/how-do-we-add-an-icon-as-a-marker-in-unfolding-map/16547 "2019-12-22T05:25:39Z")

</div>

how do we add an icon as a marker in unfolding map

---

## [Mandelbrot/julia set display problem](https://discourse.processing.org/t/mandelbrot-julia-set-display-problem/16509)

<div class="topic-metadata">

**Author:** [@Zerichy](https://discourse.processing.org/u/Zerichy)\
**Replies:** 5\
**Last updated:** [December 22, 2019, 1:01am UTC](https://discourse.processing.org/t/mandelbrot-julia-set-display-problem/16509 "2019-12-22T01:01:24Z")

</div>

Hello, i am trying to code the mandelbrot/julia set challenge from codingtrain and now i am stuck. I wanted to split the screen into two sides. On the left side it should show the julia set and on the right side it shoul…

---

## [G4P: Duplicate method win\_draw1(PApplet, GWinData) in type](https://discourse.processing.org/t/g4p-duplicate-method-win-draw1-papplet-gwindata-in-type/16545)

<div class="topic-metadata">

**Author:** [@mark\_orion](https://discourse.processing.org/u/mark_orion)\
**Replies:** 2\
**Last updated:** [December 21, 2019, 10:32pm UTC](https://discourse.processing.org/t/g4p-duplicate-method-win-draw1-papplet-gwindata-in-type/16545 "2019-12-21T22:32:40Z")

</div>

I think there is a bug in the G4P designer tool that when you use more than one secondary window a method with a wrong name is created: This is what is created after adding another secondary window. This method is alrea…

---

## [Help needed to replicate a specific generative pattern](https://discourse.processing.org/t/help-needed-to-replicate-a-specific-generative-pattern/15590)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 6\
**Last updated:** [December 21, 2019, 1:16pm UTC](https://discourse.processing.org/t/help-needed-to-replicate-a-specific-generative-pattern/15590 "2019-12-21T13:16:50Z")

</div>

Hi all, I have recently found a Grasshopper “sketch” that I would like to port to Processing but I am having difficulties understanding how it was made. https://scontent-cdt1-1.cdninstagram.com/vp/ae9492801b7ef079acaf9…

---

## [Mapping Camera Coordinates to a 2D Floor Plan](https://discourse.processing.org/t/mapping-camera-coordinates-to-a-2d-floor-plan/16539)

<div class="topic-metadata">

**Author:** [@ql\_tan](https://discourse.processing.org/u/ql_tan)\
**Replies:** 4\
**Last updated:** [December 21, 2019, 12:24pm UTC](https://discourse.processing.org/t/mapping-camera-coordinates-to-a-2d-floor-plan/16539 "2019-12-21T12:24:33Z")

</div>

Hey everyone, I’m using openCV for processing to track human movements in a camera scene and Im struggling to translate the tracked coordinates caught in the camera scene onto a 2D floorplane. I found this link: https:/…

---

## [Determining the period of perlin noise](https://discourse.processing.org/t/determining-the-period-of-perlin-noise/16380)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 8\
**Last updated:** [December 21, 2019, 12:56am UTC](https://discourse.processing.org/t/determining-the-period-of-perlin-noise/16380 "2019-12-21T00:56:09Z")

</div>

I would like to create a grid and am unsure how to go about producing the result I want. I noticed that when creating a terrain using perlin noise, at some point if you keep travelling through the map you’ll notice that…

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

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