# Processing

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

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

**Page:** 310

---

## [I need help with a table of dots](https://discourse.processing.org/t/i-need-help-with-a-table-of-dots/10063)

<div class="topic-metadata">

**Author:** [@chaps421](https://discourse.processing.org/u/chaps421)\
**Replies:** 1\
**Last updated:** [April 8, 2019, 4:18am UTC](https://discourse.processing.org/t/i-need-help-with-a-table-of-dots/10063 "2019-04-08T04:18:16Z")

</div>

i want to make a chart of dots with PGraphics but the last colum and row always disapear. i want it to be dinamic and varieate the ise of the grid depending on the size of the window but it always seem to eat the last…

---

## [Question about RuntimeException: Error opening serial port /dev/tty1: Permission denied](https://discourse.processing.org/t/question-about-runtimeexception-error-opening-serial-port-dev-tty1-permission-denied/10027)

<div class="topic-metadata">

**Author:** [@nanonatron](https://discourse.processing.org/u/nanonatron)\
**Replies:** 1\
**Last updated:** [April 8, 2019, 1:40am UTC](https://discourse.processing.org/t/question-about-runtimeexception-error-opening-serial-port-dev-tty1-permission-denied/10027 "2019-04-08T01:40:07Z")

</div>

hello, i’m new here and dont know how to fix this problem… RuntimeException: Error opening serial port /dev/tty1: Permission denied I’m using ubuntu 18.04

---

## [clientEvent() is slow. How to get real-time data using TCP/IP?](https://discourse.processing.org/t/clientevent-is-slow-how-to-get-real-time-data-using-tcp-ip/4735)

<div class="topic-metadata">

**Author:** [@Tanvi](https://discourse.processing.org/u/Tanvi)\
**Replies:** 4\
**Last updated:** [April 7, 2019, 11:26pm UTC](https://discourse.processing.org/t/clientevent-is-slow-how-to-get-real-time-data-using-tcp-ip/4735 "2019-04-07T23:26:34Z")

</div>

Hi, I am trying to get real-time data from pocket beaglebone \[server\] (sample rate @ 250 Hz) using TCP/IP in Processing 3.4 \[client\]. Library imported: Network I used clienEvent() which as per reference (https://proces…

---

## [How to locate colored pixel](https://discourse.processing.org/t/how-to-locate-colored-pixel/9902)

<div class="topic-metadata">

**Author:** [@bobson](https://discourse.processing.org/u/bobson)\
**Replies:** 8\
**Last updated:** [April 7, 2019, 8:54pm UTC](https://discourse.processing.org/t/how-to-locate-colored-pixel/9902 "2019-04-07T20:54:52Z")

</div>

Hi, im working with .png types and need help how to find the x,y location of certain colored pixels. my png has two green pixels (0,255,0) that i need to locate, so i can set the connection points for the next png to it…

---

## [Process text as shapes?](https://discourse.processing.org/t/process-text-as-shapes/10006)

<div class="topic-metadata">

**Author:** [@Daniela.gutierrezr](https://discourse.processing.org/u/Daniela.gutierrezr)\
**Replies:** 4\
**Last updated:** [April 7, 2019, 6:26pm UTC](https://discourse.processing.org/t/process-text-as-shapes/10006 "2019-04-07T18:26:30Z")

</div>

Hi guys, Is there a way to code a program that proceses text and displays them as specific shapes in processing? An example of this is the work of Leslie Roberts https://leslierobertsart.com/section/425019-Recent-work…

---

## [Processing stereo volume control using sound library](https://discourse.processing.org/t/processing-stereo-volume-control-using-sound-library/9950)

<div class="topic-metadata">

**Author:** [@sujoymisc](https://discourse.processing.org/u/sujoymisc)\
**Replies:** 4\
**Last updated:** [April 7, 2019, 4:19pm UTC](https://discourse.processing.org/t/processing-stereo-volume-control-using-sound-library/9950 "2019-04-07T16:19:51Z")

</div>

I want to control PC stereo volume control, the following code is doing the same but both the channels are taking the save volume gain. Q: How do I change the volume of individual channels? Processing Code: import pro…

---

## [How mask SVG in Processing](https://discourse.processing.org/t/how-mask-svg-in-processing/9888)

<div class="topic-metadata">

**Author:** [@Misha](https://discourse.processing.org/u/Misha)\
**Replies:** 3\
**Last updated:** [April 7, 2019, 3:17pm UTC](https://discourse.processing.org/t/how-mask-svg-in-processing/9888 "2019-04-07T15:17:03Z")

</div>

Hi! I’m trying to make a SVG cutter. The goal is to upload SVG, cut it to specific shape and export back. Logic is → upload SVG → convert it → cut it → export it. I’m stuck. I upload SVG, rebuild it with vectors in Pr…

---

## [Pass a non-final like a final arg?](https://discourse.processing.org/t/pass-a-non-final-like-a-final-arg/10029)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 6\
**Last updated:** [April 7, 2019, 10:08am UTC](https://discourse.processing.org/t/pass-a-non-final-like-a-final-arg/10029 "2019-04-07T10:08:41Z")

</div>

I try to build a menu where some item can be change during the session or with data from outside unknow before the coding session. So I try to pass a non-final data but that’s don’t work obviously. I try to find a way t…

---

## [\[Project ended\] game problem moving character with mouse, ball going through the character](https://discourse.processing.org/t/project-ended-game-problem-moving-character-with-mouse-ball-going-through-the-character/9808)

<div class="topic-metadata">

**Author:** [@anon26872549](https://discourse.processing.org/u/anon26872549)\
**Replies:** 16\
**Last updated:** [April 7, 2019, 8:52am UTC](https://discourse.processing.org/t/project-ended-game-problem-moving-character-with-mouse-ball-going-through-the-character/9808 "2019-04-07T08:52:24Z")

</div>

//A problem with the character movement as it relied with the mouse. Also trouble with the ball script of which my character meant to bounce back up, as the ball went through the character. float circleX=1; float circle…

---

## [ArrayIndexOutOfBoundsException on FFT analyze when bands above 2^14](https://discourse.processing.org/t/arrayindexoutofboundsexception-on-fft-analyze-when-bands-above-2-14/9980)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 10\
**Last updated:** [April 7, 2019, 7:00am UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-on-fft-analyze-when-bands-above-2-14/9980 "2019-04-07T07:00:44Z")

</div>

So I know that the amount of bands you assign to an FFT needs to be a power of 2, but when I go over 2^14 (16384) to 2^15 (32768) bands, I get the fft.analyze(spectrum) code highlighted and the error code - ArrayIndexOut…

---

## [Can I acquire the largest FFT magnitude value without playing through the whole file?](https://discourse.processing.org/t/can-i-acquire-the-largest-fft-magnitude-value-without-playing-through-the-whole-file/9939)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 2\
**Last updated:** [April 7, 2019, 5:16am UTC](https://discourse.processing.org/t/can-i-acquire-the-largest-fft-magnitude-value-without-playing-through-the-whole-file/9939 "2019-04-07T05:16:16Z")

</div>

Trying to figure out how to convert the FFT units to an Amp value in processing proved to be very confusing and complex, but when I play through the whole file, I can find the maximum FFT output and just use that to calc…

---

## [\[Eclipse\] Could not find or load main class at home, but works flawlessly elsewhere](https://discourse.processing.org/t/eclipse-could-not-find-or-load-main-class-at-home-but-works-flawlessly-elsewhere/9909)

<div class="topic-metadata">

**Author:** [@TechEpic](https://discourse.processing.org/u/TechEpic)\
**Replies:** 2\
**Last updated:** [April 6, 2019, 5:24pm UTC](https://discourse.processing.org/t/eclipse-could-not-find-or-load-main-class-at-home-but-works-flawlessly-elsewhere/9909 "2019-04-06T17:24:20Z")

</div>

I’m using Eclipse with the Processing library, I made the project on a different computer and tried to move it to my home computer. When I try to run it, I get the error: Error: Could not find or load main class Contro…

---

## [Subscribe - pvm](https://discourse.processing.org/t/subscribe-pvm/9964)

<div class="topic-metadata">

**Author:** [@Solsticio](https://discourse.processing.org/u/Solsticio)\
**Replies:** 2\
**Last updated:** [April 6, 2019, 5:19pm UTC](https://discourse.processing.org/t/subscribe-pvm/9964 "2019-04-06T17:19:40Z")

</div>

2- void setup(){ size(400,400); frameRate(20); } void draw(){ int i; for(i=0;i\<height;i++){ if(random(0,1)\<0.5) stroke(0); else stroke(255); line(0,i,width,i); } } 3- void desenhaIFSP(float x, f…

---

## [Console-based Input -- Counter Implementation](https://discourse.processing.org/t/console-based-input-counter-implementation/9948)

<div class="topic-metadata">

**Author:** [@clevelandbrowns](https://discourse.processing.org/u/clevelandbrowns)\
**Replies:** 4\
**Last updated:** [April 4, 2019, 12:46pm UTC](https://discourse.processing.org/t/console-based-input-counter-implementation/9948 "2019-04-04T12:46:09Z")

</div>

I’m attempting to write a program in which the user must input three variables. The first is a string which simply stores a name. The second is a string which gets converted to an integer using parseInt. The third is a s…

---

## [Zoom in a specific letter](https://discourse.processing.org/t/zoom-in-a-specific-letter/9835)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 7\
**Last updated:** [April 6, 2019, 4:09pm UTC](https://discourse.processing.org/t/zoom-in-a-specific-letter/9835 "2019-04-06T16:09:48Z")

</div>

Hi Guys I want in the following code to zoom in a specific letter “3” and after to return back. Can I do it? int w; PFont myFont; float x = 70; float y = 6; float theta = 0.0; float amplitude = 1000.0; float period =…

---

## [Ä and RIGHT share the same keyCode. Is that a bug?](https://discourse.processing.org/t/a-and-right-share-the-same-keycode-is-that-a-bug/9926)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 5\
**Last updated:** [April 6, 2019, 9:58am UTC](https://discourse.processing.org/t/a-and-right-share-the-same-keycode-is-that-a-bug/9926 "2019-04-06T09:58:58Z")

</div>

Hi! So I am currently working on a programm with an Excel-table based structure, and I am using Tab, the mouse and the arrow keys for moving. There was this one problem that wasn’t that big of a deal, but always annoyed…

---

## [For loop not working](https://discourse.processing.org/t/for-loop-not-working/9935)

<div class="topic-metadata">

**Author:** [@Im\_not\_a\_robot](https://discourse.processing.org/u/Im_not_a_robot)\
**Replies:** 3\
**Last updated:** [April 6, 2019, 9:36am UTC](https://discourse.processing.org/t/for-loop-not-working/9935 "2019-04-06T09:36:07Z")

</div>

Hi! So I have been working on a project that requires me to use a 2D array. I have been trying to loop over this with the for loop, but it doesn’t seem to be working. Here’s my code. //World Variables int seed; // The s…

---

## [Creating Snake Code](https://discourse.processing.org/t/creating-snake-code/9947)

<div class="topic-metadata">

**Author:** [@02chaines](https://discourse.processing.org/u/02chaines)\
**Replies:** 5\
**Last updated:** [April 6, 2019, 9:03am UTC](https://discourse.processing.org/t/creating-snake-code/9947 "2019-04-06T09:03:58Z")

</div>

Hi, I’m new when it comes to processing so I’ve been having quite a hard time with coming up with codes and making them work properly. I’m trying to create a snake(similar to the snake game except there’s no food, scorin…

---

## [\[queasycam\] controlling functions with CP5](https://discourse.processing.org/t/queasycam-controlling-functions-with-cp5/9944)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 3\
**Last updated:** [April 6, 2019, 2:23am UTC](https://discourse.processing.org/t/queasycam-controlling-functions-with-cp5/9944 "2019-04-06T02:23:39Z")

</div>

Hi, I wanna know if there’s a way to numerically control queasycam features, like position, pan and tilt. what i really need is to have a virtual camera on a 3D environment, controlled by cp5 sliders instead of the mou…

---

## [Help with text file to single letters needed](https://discourse.processing.org/t/help-with-text-file-to-single-letters-needed/9996)

<div class="topic-metadata">

**Author:** [@tobor](https://discourse.processing.org/u/tobor)\
**Replies:** 7\
**Last updated:** [April 6, 2019, 12:28am UTC](https://discourse.processing.org/t/help-with-text-file-to-single-letters-needed/9996 "2019-04-06T00:28:59Z")

</div>

Hi, I need some help from experienced users… I have 3 txt files: test1.txt, test2.txt and test3.txt every txt file is made of 200 random letters with no spaces like: AAIOEELLEEIIAAOOWECERT etc… I need to chose rando…

---

## [Notes in Tables](https://discourse.processing.org/t/notes-in-tables/9712)

<div class="topic-metadata">

**Author:** [@poppanona](https://discourse.processing.org/u/poppanona)\
**Replies:** 14\
**Last updated:** [April 5, 2019, 11:58pm UTC](https://discourse.processing.org/t/notes-in-tables/9712 "2019-04-05T23:58:41Z")

</div>

I am looking for the best way to format a table that contains general notes on the data as well as the data itself. for example, the data could have typical column headers and each row would have corresponding entries. H…

---

## [Processing-java and G4P on Mac](https://discourse.processing.org/t/processing-java-and-g4p-on-mac/9905)

<div class="topic-metadata">

**Author:** [@lao8n](https://discourse.processing.org/u/lao8n)\
**Replies:** 5\
**Last updated:** [April 5, 2019, 10:14pm UTC](https://discourse.processing.org/t/processing-java-and-g4p-on-mac/9905 "2019-04-05T22:14:40Z")

</div>

Question: How do we set sketchPath and dataPath in processing-java? Project context: We are creating a game using processing-java where most of our code is java, with some of those files being essentially processing co…

---

## [Can you manipulate frameRate/Speed of draw()?](https://discourse.processing.org/t/can-you-manipulate-framerate-speed-of-draw/971)

<div class="topic-metadata">

**Author:** [@colleen](https://discourse.processing.org/u/colleen)\
**Replies:** 3\
**Last updated:** [June 14, 2018, 8:45pm UTC](https://discourse.processing.org/t/can-you-manipulate-framerate-speed-of-draw/971 "2018-06-14T20:45:50Z")

</div>

Hello, I am new to Processing (and I learned Java almost 3 years ago so I’m a little rusty). I am trying to make an animation of several bike-riding trips over a 24-hour period. The time lapses at a good speed while the…

---

## [Alternating Bands of two images](https://discourse.processing.org/t/alternating-bands-of-two-images/9857)

<div class="topic-metadata">

**Author:** [@Daspitz3](https://discourse.processing.org/u/Daspitz3)\
**Replies:** 2\
**Last updated:** [April 5, 2019, 7:24pm UTC](https://discourse.processing.org/t/alternating-bands-of-two-images/9857 "2019-04-05T19:24:01Z")

</div>

I am trying to create two alternating bands of two live video streams onto a display window. 10 strips from a live stream and 10 from a delayed stream. The first 10 placed on odd strips and the second on the even strips.…

---

## [Noob need to record mouse when on another window](https://discourse.processing.org/t/noob-need-to-record-mouse-when-on-another-window/10009)

<div class="topic-metadata">

**Author:** [@Coriandre](https://discourse.processing.org/u/Coriandre)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 7:15pm UTC](https://discourse.processing.org/t/noob-need-to-record-mouse-when-on-another-window/10009 "2019-04-05T19:15:10Z")

</div>

Hi! I would like to record the mouse’s mouvement when working on a software like photoshop. The code below is perfect but how to use it when the mouse is on another window ? void setup() { size(640, 360); backgrou…

---

## [HEEELP letters moving with no mouse pressed](https://discourse.processing.org/t/heeelp-letters-moving-with-no-mouse-pressed/9839)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 10\
**Last updated:** [April 5, 2019, 6:51pm UTC](https://discourse.processing.org/t/heeelp-letters-moving-with-no-mouse-pressed/9839 "2019-04-05T18:51:47Z")

</div>

Hi Guys I want to make an animated gif with letters but I want the letters to change forms with no mouse Pressed can I do it? And it’s possible to save this gif into png? Thaaanks import controlP5.\*; boolean record; Co…

---

## [How find the Class of argument when this one is a primitive?](https://discourse.processing.org/t/how-find-the-class-of-argument-when-this-one-is-a-primitive/9970)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 8\
**Last updated:** [April 5, 2019, 5:59pm UTC](https://discourse.processing.org/t/how-find-the-class-of-argument-when-this-one-is-a-primitive/9970 "2019-04-05T17:59:21Z")

</div>

I try to check the class of argument to create a method builder, but when the case the argument is primitive, i don’t find a way to do that ? My code who’s don’t work !!! void setup() { Truc t = new Truc(); println…

---

## [Sound file problem](https://discourse.processing.org/t/sound-file-problem/9875)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 4:49pm UTC](https://discourse.processing.org/t/sound-file-problem/9875 "2019-04-05T16:49:39Z")

</div>

Hi Guys I want to add sound in my code but when I want to run it shows me this java.lang.RuntimeException: Waited 5000ms for: \<6ac2c61e, 64053536\>\[count 2, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>\] - \<main-FPSAWTA…

---

## [How to double the size of the array](https://discourse.processing.org/t/how-to-double-the-size-of-the-array/9849)

<div class="topic-metadata">

**Author:** [@Aryan\_Pandhare](https://discourse.processing.org/u/Aryan_Pandhare)\
**Replies:** 4\
**Last updated:** [April 5, 2019, 4:43pm UTC](https://discourse.processing.org/t/how-to-double-the-size-of-the-array/9849 "2019-04-05T16:43:24Z")

</div>

I have written the following code for simple drawing program and I need to double the size of the partially filled array when it is full of data. Here is my code… final int START\_POINTS = 5; int\[\] x = new int\[START\_POI…

---

## [Text problem with stroke](https://discourse.processing.org/t/text-problem-with-stroke/9998)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 4\
**Last updated:** [April 5, 2019, 3:08pm UTC](https://discourse.processing.org/t/text-problem-with-stroke/9998 "2019-04-05T15:08:58Z")

</div>

Hi Guys can you explain me why the stroke doesn’t work on text? PFont myFont; int x=0; float y; float r =0; String s="test"; float xPosition=500; void setup(){ size(500,500); background(0); myFont=loa…

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

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