# Processing

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

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

**Page:** 152

---

## [Importing java libraries](https://discourse.processing.org/t/importing-java-libraries/18959)

<div class="topic-metadata">

**Author:** [@Pingu](https://discourse.processing.org/u/Pingu)\
**Replies:** 2\
**Last updated:** [February 8, 2021, 12:27am UTC](https://discourse.processing.org/t/importing-java-libraries/18959 "2021-02-08T00:27:32Z")

</div>

I would like to use processing to connect to my Wiimote. To do this I have installed the Wiiremotej jar from their page. On their page they mention that the library has a dependency, it needs a bluetooth library to manag…

---

## [Multiple values for incoming data being printed](https://discourse.processing.org/t/multiple-values-for-incoming-data-being-printed/27591)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 9\
**Last updated:** [February 7, 2021, 4:11pm UTC](https://discourse.processing.org/t/multiple-values-for-incoming-data-being-printed/27591 "2021-02-07T16:11:31Z")

</div>

Hi, I had a problem with my Processing data collection: essentially when my data comes in from the Arduino and to Processing, I save it onto a csv file. However, on the csv file it so happens that a value for one time s…

---

## [Multiple print values from Arduino and Processing](https://discourse.processing.org/t/multiple-print-values-from-arduino-and-processing/27545)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 1\
**Last updated:** [February 7, 2021, 3:20pm UTC](https://discourse.processing.org/t/multiple-print-values-from-arduino-and-processing/27545 "2021-02-07T15:20:47Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I am trying to send multiple print statements from my arduino to processing but I cant seem to obtain it properly in the processing. Could s…

---

## ['Util' bad, but 'Utility' good?!](https://discourse.processing.org/t/util-bad-but-utility-good/27649)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 2\
**Last updated:** [February 7, 2021, 2:16pm UTC](https://discourse.processing.org/t/util-bad-but-utility-good/27649 "2021-02-07T14:16:45Z")

</div>

Can someone please help me understand why the constructor of a class name Util doesn’t work, yet it does for a class named Utility? I’m still wrapping my head around Eclipse. For a simple get to know how to use Eclipse …

---

## [.mov and .mp4 files won't run w/ Video Library](https://discourse.processing.org/t/mov-and-mp4-files-wont-run-w-video-library/27597)

<div class="topic-metadata">

**Author:** [@Hassan0987](https://discourse.processing.org/u/Hassan0987)\
**Replies:** 1\
**Last updated:** [February 6, 2021, 7:46pm UTC](https://discourse.processing.org/t/mov-and-mp4-files-wont-run-w-video-library/27597 "2021-02-06T19:46:27Z")

</div>

Well Hello! I’m beginning in Arduino and Processing which I think is a PERFECT alliance for me. I don’t know about you but for me it’s a dream come true to be able to make our own robot and make our own app to control …

---

## [How do I move a point along a line, starting from (mouseX, mouseY), to a target](https://discourse.processing.org/t/how-do-i-move-a-point-along-a-line-starting-from-mousex-mousey-to-a-target/27637)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 7\
**Last updated:** [February 6, 2021, 7:17pm UTC](https://discourse.processing.org/t/how-do-i-move-a-point-along-a-line-starting-from-mousex-mousey-to-a-target/27637 "2021-02-06T19:17:13Z")

</div>

Hello given the code below, do you see a simple way to modify it as keep the blue ball to move along the line, when the starting point is given by (mouseX, mouseY)? thanks cheers m. float xi=50; float yi=50; float x …

---

## [Curve density over an image](https://discourse.processing.org/t/curve-density-over-an-image/3210)

<div class="topic-metadata">

**Author:** [@stirman](https://discourse.processing.org/u/stirman)\
**Replies:** 27\
**Last updated:** [February 6, 2021, 5:42pm UTC](https://discourse.processing.org/t/curve-density-over-an-image/3210 "2021-02-06T17:42:38Z")

</div>

I’m curious how I might approach loading a high-contrast image and then creating lines/curves to that are more densely overlapped in the dark areas, to recreate something like this… I’m fairly adept at understanding t…

---

## [Bouncing Ball Velocity Problem](https://discourse.processing.org/t/bouncing-ball-velocity-problem/27620)

<div class="topic-metadata">

**Author:** [@Akiraishido](https://discourse.processing.org/u/Akiraishido)\
**Replies:** 2\
**Last updated:** [February 6, 2021, 11:51am UTC](https://discourse.processing.org/t/bouncing-ball-velocity-problem/27620 "2021-02-06T11:51:10Z")

</div>

I’m new to Processing (I programmed in C# before) and I tried to make a bouncing ball with vectors but when I run the program, the ball goes a little bit to the right. This is my code: Ball b; void setup() { size(12…

---

## [Unexpected Error for a macOS application made with Processing](https://discourse.processing.org/t/unexpected-error-for-a-macos-application-made-with-processing/23047)

<div class="topic-metadata">

**Author:** [@graysonh](https://discourse.processing.org/u/graysonh)\
**Replies:** 5\
**Last updated:** [February 6, 2021, 10:10am UTC](https://discourse.processing.org/t/unexpected-error-for-a-macos-application-made-with-processing/23047 "2021-02-06T10:10:19Z")

</div>

I just finished a project I have been working on and exported it to a macOS application. When I tried to run it the app didn’t open and the system threw the following error: Process: DungeonCrawler \[21042…

---

## [Dc motor position control](https://discourse.processing.org/t/dc-motor-position-control/27482)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 22\
**Last updated:** [February 6, 2021, 7:41am UTC](https://discourse.processing.org/t/dc-motor-position-control/27482 "2021-02-06T07:41:41Z")

</div>

Good evening I would need to check the position of an engine via android (mobile phone) everything is managed by arduino uno, with a motor driver, an encoder and dc motor connected, the code should have a text box wher…

---

## [Looking for simple examples of A\* pathfinding algorithm](https://discourse.processing.org/t/looking-for-simple-examples-of-a-pathfinding-algorithm/27616)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 1\
**Last updated:** [February 6, 2021, 12:56am UTC](https://discourse.processing.org/t/looking-for-simple-examples-of-a-pathfinding-algorithm/27616 "2021-02-06T00:56:31Z")

</div>

Hi, as the title says I’m looking for a simple example of the A\* algorithm as shown in the following link down below: I have also looked at the example made by Peter Lager, however it was way to hard for so…

---

## [Problems with cursor()](https://discourse.processing.org/t/problems-with-cursor/27584)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 2\
**Last updated:** [February 6, 2021, 12:27am UTC](https://discourse.processing.org/t/problems-with-cursor/27584 "2021-02-06T00:27:30Z")

</div>

Hi, I have a little project and i am trying to change the normal cursor with an image and it works for a little while, however after 1 minute it stops working (the cursor just changes back to the arrow and won’t change a…

---

## [Combining Multiple SVG Elements](https://discourse.processing.org/t/combining-multiple-svg-elements/27615)

<div class="topic-metadata">

**Author:** [@BeneBeats](https://discourse.processing.org/u/BeneBeats)\
**Replies:** 0\
**Last updated:** [February 5, 2021, 11:59pm UTC](https://discourse.processing.org/t/combining-multiple-svg-elements/27615 "2021-02-05T23:59:59Z")

</div>

I’m creating SVGs in Processing for pen plotting. Everything is going great until I start plotting. The test Truchet tiles I’ve created end up as separate arcs. I’ll attach some example pictures. The output SVG looks so…

---

## [None of the sound libraries working under Linux Mint](https://discourse.processing.org/t/none-of-the-sound-libraries-working-under-linux-mint/27558)

<div class="topic-metadata">

**Author:** [@cartocopia](https://discourse.processing.org/u/cartocopia)\
**Replies:** 5\
**Last updated:** [February 5, 2021, 10:50pm UTC](https://discourse.processing.org/t/none-of-the-sound-libraries-working-under-linux-mint/27558 "2021-02-05T22:50:26Z")

</div>

None of the sound libraries work for me under with Processing 3.5.4 on Linux Mint 20. The basic Sound , Beads and Minim all give the same error when trying to run any of their included demo sketches : javax.sound.samp…

---

## [P2D P3D causing core dump](https://discourse.processing.org/t/p2d-p3d-causing-core-dump/27610)

<div class="topic-metadata">

**Author:** [@cartocopia](https://discourse.processing.org/u/cartocopia)\
**Replies:** 6\
**Last updated:** [February 5, 2021, 10:47pm UTC](https://discourse.processing.org/t/p2d-p3d-causing-core-dump/27610 "2021-02-05T22:47:42Z")

</div>

Running Linux Mint 20.1 with latest proprietary NVIDIA drivers, Processing 3.5.4. I have installed Processing just by unpacking the tgz and running it. Any sketch that tries to use the openGL P2D or P3D modes causes a…

---

## [Noel you are a school](https://discourse.processing.org/t/noel-you-are-a-school/27601)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 0\
**Last updated:** [February 5, 2021, 10:53am UTC](https://discourse.processing.org/t/noel-you-are-a-school/27601 "2021-02-05T10:53:32Z")

</div>

noel You are a complete school person and deserve all the best You have a distinctive style of communicating information, and you add to it many simplifications to provide an excellent way to enter the mind I apprecia…

---

## ['cannot find symbol'](https://discourse.processing.org/t/cannot-find-symbol/27594)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 2\
**Last updated:** [February 5, 2021, 4:23am UTC](https://discourse.processing.org/t/cannot-find-symbol/27594 "2021-02-05T04:23:23Z")

</div>

I figure it’s about time to compile my own libraries. I was able to follow the processing library template instructions for using eclipse to create the example HelloLibrary class. It compiled. The library showed up as …

---

## [G4P - Placing a GView Within a GWindow](https://discourse.processing.org/t/g4p-placing-a-gview-within-a-gwindow/27575)

<div class="topic-metadata">

**Author:** [@MauiMana](https://discourse.processing.org/u/MauiMana)\
**Replies:** 2\
**Last updated:** [February 5, 2021, 1:44am UTC](https://discourse.processing.org/t/g4p-placing-a-gview-within-a-gwindow/27575 "2021-02-05T01:44:40Z")

</div>

Using the latest version of Processing 3 as well as the latest version of G4P, I’m trying to have a rotating box animating within a popup form. To do this I am using a GWindow (for the ‘popup from’) that has a GView with…

---

## [Loop gif n number of times?](https://discourse.processing.org/t/loop-gif-n-number-of-times/27449)

<div class="topic-metadata">

**Author:** [@mweinberg](https://discourse.processing.org/u/mweinberg)\
**Replies:** 2\
**Last updated:** [February 5, 2021, 12:35am UTC](https://discourse.processing.org/t/loop-gif-n-number-of-times/27449 "2021-02-05T00:35:16Z")

</div>

Hi everyone! I’m trying to figure out how to loop a gif a specific number of times, after which it stops at the first frame. I know that I can stop and pause a gif with play() (https://p5js.org/reference/#/p5.Image/play)…

---

## [Running P3D Processing sketch in JAR file, using Netbeans](https://discourse.processing.org/t/running-p3d-processing-sketch-in-jar-file-using-netbeans/22145)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 4\
**Last updated:** [February 4, 2021, 4:56pm UTC](https://discourse.processing.org/t/running-p3d-processing-sketch-in-jar-file-using-netbeans/22145 "2021-02-04T16:56:39Z")

</div>

Hi. I know there is a way to program with Processing P3D in an external IDE. I have successfully been able to run 2D and P3D sketches within NetBeans IDE. But if I build the project to a JAR file with Processing P3D in …

---

## [Processing does not recognize my tool. Please help](https://discourse.processing.org/t/processing-does-not-recognize-my-tool-please-help/27522)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 5\
**Last updated:** [February 4, 2021, 11:15am UTC](https://discourse.processing.org/t/processing-does-not-recognize-my-tool-please-help/27522 "2021-02-04T11:15:02Z")

</div>

Hey I want to create a processing tool. I was able to export it with eclipse via “Ant” (sektchbook / tools) it is also shown to me in the Finder (macOS), but it is not shown to me in Processing. (I did it like this tu…

---

## [Scaled Mapping a Value](https://discourse.processing.org/t/scaled-mapping-a-value/27564)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 9\
**Last updated:** [February 4, 2021, 6:39am UTC](https://discourse.processing.org/t/scaled-mapping-a-value/27564 "2021-02-04T06:39:00Z")

</div>

Hello again, I have this value from -10 to 10 that I want to map to -725 to 725. However, the mapped value should be -600 when the value is -5, or the value is -300 when the mapped value is -2. I would like for this to w…

---

## [AudioIn issue : could not secure an AudioInput](https://discourse.processing.org/t/audioin-issue-could-not-secure-an-audioinput/18099)

<div class="topic-metadata">

**Author:** [@fred](https://discourse.processing.org/u/fred)\
**Replies:** 5\
**Last updated:** [February 4, 2021, 6:16am UTC](https://discourse.processing.org/t/audioin-issue-could-not-secure-an-audioinput/18099 "2021-02-04T06:16:35Z")

</div>

Hi everyone, I have an problem with audioIn. I’m on MacOs I can’t get the Microphone by my sketch : could not secure an AudioInput. I have try both Sound and Minim libraries without success. The microphone works well wi…

---

## [Weird bug in processing or linux?](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 27\
**Last updated:** [February 4, 2021, 2:06am UTC](https://discourse.processing.org/t/weird-bug-in-processing-or-linux/25981 "2021-02-04T02:06:48Z")

</div>

For some time now I have been using Processing for linux on a Chromebook, with linux running in a virtual machine/container. I start a terminal and change directory to processing-3.5.3 and then ./processing and up pops …

---

## [Screenshot and webcam picture at same time every 6 minutes](https://discourse.processing.org/t/screenshot-and-webcam-picture-at-same-time-every-6-minutes/27525)

<div class="topic-metadata">

**Author:** [@saskia\_NL](https://discourse.processing.org/u/saskia_NL)\
**Replies:** 1\
**Last updated:** [February 3, 2021, 11:56pm UTC](https://discourse.processing.org/t/screenshot-and-webcam-picture-at-same-time-every-6-minutes/27525 "2021-02-03T23:56:03Z")

</div>

Hi, I’m looking for a way to take a screenshot of my desktop with all it’s open tabs while at the same time taking a picture with the build-in webcam. I would like to capture these 2 images automatically every 6 minutes…

---

## [Unable to update int from serialReadStringUntil while in draw()](https://discourse.processing.org/t/unable-to-update-int-from-serialreadstringuntil-while-in-draw/27567)

<div class="topic-metadata">

**Author:** [@cutlercollin99](https://discourse.processing.org/u/cutlercollin99)\
**Replies:** 1\
**Last updated:** [February 3, 2021, 8:59pm UTC](https://discourse.processing.org/t/unable-to-update-int-from-serialreadstringuntil-while-in-draw/27567 "2021-02-03T20:59:20Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello! I am having trouble with communication between Processing and Arduino. I’m trying to run specific functions based on readings the Arduin…

---

## [Processing can't find built in camera](https://discourse.processing.org/t/processing-cant-find-built-in-camera/27544)

<div class="topic-metadata">

**Author:** [@ELaN](https://discourse.processing.org/u/ELaN)\
**Replies:** 2\
**Last updated:** [February 3, 2021, 6:41am UTC](https://discourse.processing.org/t/processing-cant-find-built-in-camera/27544 "2021-02-03T06:41:31Z")

</div>

I’ve written the following code \<import processing.video.\*; //PImage unicorn; Capture unicorn; void setup(){ size(640,480); unicorn=new Capture (this,640,480); unicorn.start(); background(0); } void captureEven…

---

## [Dropdownlist from csv file](https://discourse.processing.org/t/dropdownlist-from-csv-file/27321)

<div class="topic-metadata">

**Author:** [@Mate\_PL](https://discourse.processing.org/u/Mate_PL)\
**Replies:** 13\
**Last updated:** [February 2, 2021, 10:31pm UTC](https://discourse.processing.org/t/dropdownlist-from-csv-file/27321 "2021-02-02T22:31:16Z")

</div>

Hello, I am asking for an example of how to complete the dropdownlist from the controlP5 library from a csv file. The csv file looks like Id, slider1, slider2, slider 3 Settings\_1, 10, 12, 20 Settings\_2, 12, 20, 30 … …

---

## [Extract the rule of the sequence](https://discourse.processing.org/t/extract-the-rule-of-the-sequence/27547)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 3\
**Last updated:** [February 2, 2021, 6:24pm UTC](https://discourse.processing.org/t/extract-the-rule-of-the-sequence/27547 "2021-02-02T18:24:37Z")

</div>

Hi! I want to create a program, that given input “1,2,3,4,1,2,3,4,1,2,3,4”, returns 1,2,3,4. It extracts the rule of the sequence. Here is the code to get the sequence ( \[Fibonacci number\] % m) ArrayList\<Integer\> fib…

---

## [Create a game (point and click)](https://discourse.processing.org/t/create-a-game-point-and-click/27530)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 7\
**Last updated:** [February 2, 2021, 1:20pm UTC](https://discourse.processing.org/t/create-a-game-point-and-click/27530 "2021-02-02T13:20:40Z")

</div>

Hello, I am a beginner in processing I would like to create a clicker on processing, to clarify, I would like a square or circle to appear and disappear when we click on it or if we have not clicked after a certain time …

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

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