# Latest

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

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

**Page:** 409

---

## [Find number in a text and return string from the row below](https://discourse.processing.org/t/find-number-in-a-text-and-return-string-from-the-row-below/16670)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 4\
**Last updated:** [December 28, 2019, 1:03pm UTC](https://discourse.processing.org/t/find-number-in-a-text-and-return-string-from-the-row-below/16670 "2019-12-28T13:03:00Z")

</div>

for example I have a text that contains 2 lines 1- “1000”, “55”, “123” 2- “hello”, “bye”, “good” I want a function that does this foo (“55”) this would have to find me the string “55” and return what is in the row b…

---

## [Search and get position of a word in a comma separated string](https://discourse.processing.org/t/search-and-get-position-of-a-word-in-a-comma-separated-string/16671)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 3\
**Last updated:** [December 28, 2019, 12:58pm UTC](https://discourse.processing.org/t/search-and-get-position-of-a-word-in-a-comma-separated-string/16671 "2019-12-28T12:58:04Z")

</div>

suppose I have String s = "BANANA, APPLE, GRAPE" how to look for the word grape and return me position 2 foo (s, “grape”) // return 2 If I look for the word apple, I should return the position 1 If I look for the wo…

---

## [P5.js contributors zine!](https://discourse.processing.org/t/p5-js-contributors-zine/16669)

<div class="topic-metadata">

**Author:** [@lmccart](https://discourse.processing.org/u/lmccart)\
**Replies:** 0\
**Last updated:** [December 28, 2019, 2:07am UTC](https://discourse.processing.org/t/p5-js-contributors-zine/16669 "2019-12-28T02:07:55Z")

</div>

We are creating a zine for the p5.js 1.0 release! It will celebrate all the contributors to p5.js and the work we’ve done together. If you have contributed to p5.js in any way, we hope you will consider filling out this …

---

## [Error handling for the clipboard](https://discourse.processing.org/t/error-handling-for-the-clipboard/16654)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [December 28, 2019, 2:06am UTC](https://discourse.processing.org/t/error-handling-for-the-clipboard/16654 "2019-12-28T02:06:52Z")

</div>

I am using the following code to capture text from the clipboard, however if I use print screen the clipboard will be filled with image data and return an error. Object getFromClipboard (DataFlavor flavor) { Clipboar…

---

## [PImage - Array reverse](https://discourse.processing.org/t/pimage-array-reverse/16668)

<div class="topic-metadata">

**Author:** [@iheartart](https://discourse.processing.org/u/iheartart)\
**Replies:** 4\
**Last updated:** [December 28, 2019, 1:25am UTC](https://discourse.processing.org/t/pimage-array-reverse/16668 "2019-12-28T01:25:40Z")

</div>

Hi Guys, I have a little troubleshooting with a PImage… The code works but i really wonder how to change the direction of the pictures. Starting mouseY on top with numb 22 going down to 0. ( I just managed to start th…

---

## [How to create animated line graph in Processing?](https://discourse.processing.org/t/how-to-create-animated-line-graph-in-processing/16643)

<div class="topic-metadata">

**Author:** [@bluefern](https://discourse.processing.org/u/bluefern)\
**Replies:** 5\
**Last updated:** [December 28, 2019, 12:30am UTC](https://discourse.processing.org/t/how-to-create-animated-line-graph-in-processing/16643 "2019-12-28T00:30:14Z")

</div>

I´m trying to make an animated line graph using data from .csv I want to animate the lines and add the name of the series to the end of the line like this example: Household debt balances (excluding mortgages) pic.t…

---

## [Processing to single java](https://discourse.processing.org/t/processing-to-single-java/16612)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 3\
**Last updated:** [December 27, 2019, 10:11pm UTC](https://discourse.processing.org/t/processing-to-single-java/16612 "2019-12-27T22:11:56Z")

</div>

How to processing file make single jar file Is it possible

---

## [Legal implications programmers should consider when deploying an application in processing](https://discourse.processing.org/t/legal-implications-programmers-should-consider-when-deploying-an-application-in-processing/16653)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 10:01pm UTC](https://discourse.processing.org/t/legal-implications-programmers-should-consider-when-deploying-an-application-in-processing/16653 "2019-12-27T22:01:20Z")

</div>

Hi all, I just wanted to discuss the do’s and don’ts when deploying a program, I’m sure legal council will always be necessary as most of us will not be trained lawyers and therefore may not be up to date on current leg…

---

## [Processing core library development Issue](https://discourse.processing.org/t/processing-core-library-development-issue/16655)

<div class="topic-metadata">

**Author:** [@pallav12](https://discourse.processing.org/u/pallav12)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 9:48pm UTC](https://discourse.processing.org/t/processing-core-library-development-issue/16655 "2019-12-27T21:48:39Z")

</div>

Hello everyone, I want to contribute in processing core library for android, most of my doubts are now clear from readme but I still have some. Which repository should I clone? if I want to work on core library specif…

---

## [I need your help please :/](https://discourse.processing.org/t/i-need-your-help-please/16658)

<div class="topic-metadata">

**Author:** [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)\
**Replies:** 3\
**Last updated:** [December 27, 2019, 7:11pm UTC](https://discourse.processing.org/t/i-need-your-help-please/16658 "2019-12-27T19:11:32Z")

</div>

if(mousePressed){ cursor(maus2, maus2.width/2, maus2.height/2); } else { cursor(maus, maus.width/2, maus.height/2);} why dont work? pls i need the help

---

## [Using textToPoints() with an already loaded font](https://discourse.processing.org/t/using-texttopoints-with-an-already-loaded-font/16651)

<div class="topic-metadata">

**Author:** [@Seyka](https://discourse.processing.org/u/Seyka)\
**Replies:** 3\
**Last updated:** [December 27, 2019, 2:17pm UTC](https://discourse.processing.org/t/using-texttopoints-with-an-already-loaded-font/16651 "2019-12-27T14:17:02Z")

</div>

Hi, I am using the textToPoints() function in a project, but since textToPoints() is part of the prototype of p5.Font I need to use it with a font loaded with loadFont(). But I can’t find a way to get a reference to an …

---

## [Simple question: draw a gradient line by line](https://discourse.processing.org/t/simple-question-draw-a-gradient-line-by-line/16652)

<div class="topic-metadata">

**Author:** [@littlecat](https://discourse.processing.org/u/littlecat)\
**Replies:** 10\
**Last updated:** [December 27, 2019, 11:24am UTC](https://discourse.processing.org/t/simple-question-draw-a-gradient-line-by-line/16652 "2019-12-27T11:24:50Z")

</div>

Hey everyone I’m a newbie and don’t know how to find a solution for this question: I want to draw gradient where you can see the “loading” or refreshing of the gradient. Like when you see loading a image on a screen li…

---

## [Glitches and crashes appearing on p5.js app in Google Chrome](https://discourse.processing.org/t/glitches-and-crashes-appearing-on-p5-js-app-in-google-chrome/16641)

<div class="topic-metadata">

**Author:** [@Ackados](https://discourse.processing.org/u/Ackados)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 11:16am UTC](https://discourse.processing.org/t/glitches-and-crashes-appearing-on-p5-js-app-in-google-chrome/16641 "2019-12-27T11:16:12Z")

</div>

I am not sure if this a problem from my code or a problem from Google Chrome itself, but I am seeing this “glitch”. Then after a while this tab that I am working on with Processing “crashes” or restarts. I don’t see a…

---

## [Drawing triangle to face toward it's velocity](https://discourse.processing.org/t/drawing-triangle-to-face-toward-its-velocity/16642)

<div class="topic-metadata">

**Author:** [@Ackados](https://discourse.processing.org/u/Ackados)\
**Replies:** 2\
**Last updated:** [December 27, 2019, 2:01am UTC](https://discourse.processing.org/t/drawing-triangle-to-face-toward-its-velocity/16642 "2019-12-27T02:01:21Z")

</div>

I know you can use vector.heading() to get the angle of direction. I have been using this in my code but it’s not working correctly. class Boid { constructor() { this.loc = createVector(); this.vel =…

---

## [Two canvases on the same page + keyboard](https://discourse.processing.org/t/two-canvases-on-the-same-page-keyboard/16645)

<div class="topic-metadata">

**Author:** [@tanzor](https://discourse.processing.org/u/tanzor)\
**Replies:** 3\
**Last updated:** [December 26, 2019, 8:54pm UTC](https://discourse.processing.org/t/two-canvases-on-the-same-page-keyboard/16645 "2019-12-26T20:54:40Z")

</div>

Hello community, I’m trying to have two canvases within the same HTML page, such that both canvases react to key presses. For some reason only the first canvas is reactive, and the second canvas is not. Here’s a minimi…

---

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

---

## [Android mode - shape not working](https://discourse.processing.org/t/android-mode-shape-not-working/16614)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 2\
**Last updated:** [December 25, 2019, 11:16am UTC](https://discourse.processing.org/t/android-mode-shape-not-working/16614 "2019-12-25T11:16:05Z")

</div>

Hi, I made a small program using shape and it failed. So went to the examples, comes open with ‘Android Examples’ selected Topics, Create Shapes. PolygonPShapeOOP3. Ran that but it failed with: OpenGL error 1280 at b…

---

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

---

## [How to run Processing Python Mode in Atom?](https://discourse.processing.org/t/how-to-run-processing-python-mode-in-atom/16225)

<div class="topic-metadata">

**Author:** [@BeastCoder](https://discourse.processing.org/u/BeastCoder)\
**Replies:** 6\
**Last updated:** [December 24, 2019, 3:24pm UTC](https://discourse.processing.org/t/how-to-run-processing-python-mode-in-atom/16225 "2019-12-24T15:24:43Z")

</div>

I have searched for five hours trying to find a good tutorial on how to use processing.py in atom. I’m finally creating this topic so that someone who does know how to do it can help anyone else that has this problem. Sp…

---

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

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

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