# Processing

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

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

**Page:** 210

---

## [Adding a column of an array to a scrollable list with controlp5](https://discourse.processing.org/t/adding-a-column-of-an-array-to-a-scrollable-list-with-controlp5/20791)

<div class="topic-metadata">

**Author:** [@Stokbrood](https://discourse.processing.org/u/Stokbrood)\
**Replies:** 3\
**Last updated:** [May 16, 2020, 4:37am UTC](https://discourse.processing.org/t/adding-a-column-of-an-array-to-a-scrollable-list-with-controlp5/20791 "2020-05-16T04:37:41Z")

</div>

I’m trying to make a program where you can type in a couple of strings, and I want a button to place all these strings in an array, and then add all the strings as a single item in a scrollable list. I just can’t figure …

---

## [Neural network training](https://discourse.processing.org/t/neural-network-training/20714)

<div class="topic-metadata">

**Author:** [@Kport1](https://discourse.processing.org/u/Kport1)\
**Replies:** 5\
**Last updated:** [May 15, 2020, 11:40pm UTC](https://discourse.processing.org/t/neural-network-training/20714 "2020-05-15T23:40:23Z")

</div>

I need help with the training of my neura network. for some reason if i train it all weights always go to 0. Main tab: Network n = new Network(1, 1, 1); float lr = 0.07; float\[\] in = {0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0…

---

## [How to use server for better video quality](https://discourse.processing.org/t/how-to-use-server-for-better-video-quality/20916)

<div class="topic-metadata">

**Author:** [@trubel](https://discourse.processing.org/u/trubel)\
**Replies:** 0\
**Last updated:** [May 15, 2020, 4:23pm UTC](https://discourse.processing.org/t/how-to-use-server-for-better-video-quality/20916 "2020-05-15T16:23:09Z")

</div>

I have a robot with an manipulator (arm), to which a camera is attached . The arm is controlled by an arduino wannabe (arbotix), which in turn is controlled over usb by a processing 3 sketch with G4P GUI. The Processin…

---

## [Webcam sketch "mirror" not working](https://discourse.processing.org/t/webcam-sketch-mirror-not-working/20805)

<div class="topic-metadata">

**Author:** [@sargentpilcher](https://discourse.processing.org/u/sargentpilcher)\
**Replies:** 8\
**Last updated:** [May 15, 2020, 8:09pm UTC](https://discourse.processing.org/t/webcam-sketch-mirror-not-working/20805 "2020-05-15T20:09:01Z")

</div>

I’m just getting started with processing, attempting to learn the ropes, and I was watching a youtube tutorial where he pulls up the built in sketch “mirror” under “libraries \> video \> capture \> mirror” and my webcam lig…

---

## [Problem with Unicode](https://discourse.processing.org/t/problem-with-unicode/20837)

<div class="topic-metadata">

**Author:** [@Arsenii](https://discourse.processing.org/u/Arsenii)\
**Replies:** 3\
**Last updated:** [May 15, 2020, 7:42pm UTC](https://discourse.processing.org/t/problem-with-unicode/20837 "2020-05-15T19:42:46Z")

</div>

I want to use Katakana symbols but i can not understand how to equate it to char variable

---

## [Rosetta Challenge! -- Reverse a String](https://discourse.processing.org/t/rosetta-challenge-reverse-a-string/20644)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 32\
**Last updated:** [May 15, 2020, 5:45pm UTC](https://discourse.processing.org/t/rosetta-challenge-reverse-a-string/20644 "2020-05-15T17:45:10Z")

</div>

This is a Rosetta Challenge. Gratefully accepting answers for Processing, p5.js, processing.js, processing.py, p5py, JRubyArt, Processing.R, et cetera – including multiple approaches in one mode. Answers may be cross-pos…

---

## [Send an audio with server](https://discourse.processing.org/t/send-an-audio-with-server/20513)

<div class="topic-metadata">

**Author:** [@Hydent](https://discourse.processing.org/u/Hydent)\
**Replies:** 1\
**Last updated:** [May 15, 2020, 5:47pm UTC](https://discourse.processing.org/t/send-an-audio-with-server/20513 "2020-05-15T17:47:34Z")

</div>

I want to create a program to send an audio with server and receive like discord but on LAN. Here is the code who is for start import processing.net.\*; import processing.sound.\*; Server server; Client client; String …

---

## [Problem with video portrait](https://discourse.processing.org/t/problem-with-video-portrait/20908)

<div class="topic-metadata">

**Author:** [@dragoneo](https://discourse.processing.org/u/dragoneo)\
**Replies:** 6\
**Last updated:** [May 15, 2020, 1:55pm UTC](https://discourse.processing.org/t/problem-with-video-portrait/20908 "2020-05-15T13:55:11Z")

</div>

For my actual project I have to display on a screen in Portrait mode videos and pictures which are also in portrait mode. The videos and pictures got exactly the same size (they have done by a smartphone). I get no prob…

---

## [Reading files from a folder(s) ...where to start learning?](https://discourse.processing.org/t/reading-files-from-a-folder-s-where-to-start-learning/20761)

<div class="topic-metadata">

**Author:** [@Eyetoof](https://discourse.processing.org/u/Eyetoof)\
**Replies:** 3\
**Last updated:** [May 13, 2020, 7:29am UTC](https://discourse.processing.org/t/reading-files-from-a-folder-s-where-to-start-learning/20761 "2020-05-13T07:29:22Z")

</div>

Where should I start if I want to learn about writing my program to look into a folder, and any/all of it’s subfolders, understanding whats there and then doing stuff with the files? I am working with a program where I …

---

## [I dont want this line! How to remove it?](https://discourse.processing.org/t/i-dont-want-this-line-how-to-remove-it/20865)

<div class="topic-metadata">

**Author:** [@julia1312](https://discourse.processing.org/u/julia1312)\
**Replies:** 3\
**Last updated:** [May 15, 2020, 6:22am UTC](https://discourse.processing.org/t/i-dont-want-this-line-how-to-remove-it/20865 "2020-05-15T06:22:38Z")

</div>

I need to draw an electrical circuit using processing… and I am almost done. I need to draw them using some “vertex” codes. But there is a diagonally line that appeared and I can’t remove it. The lines are changing posit…

---

## [Just a Small Question: Load path](https://discourse.processing.org/t/just-a-small-question-load-path/20814)

<div class="topic-metadata">

**Author:** [@HumanoidX](https://discourse.processing.org/u/HumanoidX)\
**Replies:** 4\
**Last updated:** [May 15, 2020, 5:45am UTC](https://discourse.processing.org/t/just-a-small-question-load-path/20814 "2020-05-15T05:45:36Z")

</div>

Hi everyone, is there a way that I can load a file in a folder? for example: randomString = loadString("somerandomfolder\\anotherrandomfolder\\finallythestringiwant.txt"); Just like Minecraft data files, there is a lo…

---

## [Growing and shrinking ellipse](https://discourse.processing.org/t/growing-and-shrinking-ellipse/20838)

<div class="topic-metadata">

**Author:** [@Filo96ge](https://discourse.processing.org/u/Filo96ge)\
**Replies:** 6\
**Last updated:** [May 15, 2020, 4:38am UTC](https://discourse.processing.org/t/growing-and-shrinking-ellipse/20838 "2020-05-15T04:38:08Z")

</div>

Hello! I’m working on a simple exercise but I am stuck, basically my goal is to have an animation of a ellipse growing untill touch the square’s corner and shrinking in the opposite direction untill its diameter is 0 the…

---

## [Background colour change](https://discourse.processing.org/t/background-colour-change/20855)

<div class="topic-metadata">

**Author:** [@ree311](https://discourse.processing.org/u/ree311)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 4:13am UTC](https://discourse.processing.org/t/background-colour-change/20855 "2020-05-15T04:13:19Z")

</div>

Hello, I am a beginner trying to create a real-time art for an assignment in processing with true or false conditions and a mouse press. So far I have been able to play around and gain understanding with some code I fo…

---

## [Continue rotating a circular image with mouseDragged where it was left off](https://discourse.processing.org/t/continue-rotating-a-circular-image-with-mousedragged-where-it-was-left-off/20759)

<div class="topic-metadata">

**Author:** [@soraiaxb](https://discourse.processing.org/u/soraiaxb)\
**Replies:** 3\
**Last updated:** [May 15, 2020, 2:58am UTC](https://discourse.processing.org/t/continue-rotating-a-circular-image-with-mousedragged-where-it-was-left-off/20759 "2020-05-15T02:58:07Z")

</div>

Hi, I’m trying to rotate a circular image on mouseDragged and I got the image to rotate when dragging the mouse but when I stop dragging and start dragging again from a different position of the image it doesn’t continue…

---

## [How to click on a moving ellipse](https://discourse.processing.org/t/how-to-click-on-a-moving-ellipse/20864)

<div class="topic-metadata">

**Author:** [@jaiy](https://discourse.processing.org/u/jaiy)\
**Replies:** 15\
**Last updated:** [May 14, 2020, 3:00pm UTC](https://discourse.processing.org/t/how-to-click-on-a-moving-ellipse/20864 "2020-05-14T15:00:30Z")

</div>

Urgently need help on finishing my project its called the dropping ball game and everytime the ball drops you would click on it and the score would go up by 1 and vice versa but having a hard time clicking on the ellipse…

---

## [Problem with Scoreboard in game](https://discourse.processing.org/t/problem-with-scoreboard-in-game/20892)

<div class="topic-metadata">

**Author:** [@jaiy](https://discourse.processing.org/u/jaiy)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 2:00am UTC](https://discourse.processing.org/t/problem-with-scoreboard-in-game/20892 "2020-05-15T02:00:11Z")

</div>

Having some issues with my scoreboard I am trying to use missed++ whenever the ellipse hits the line before the scoreboard missed should plus one every time but it does not work. If someone could help me that would be gr…

---

## [Problem with my game](https://discourse.processing.org/t/problem-with-my-game/20888)

<div class="topic-metadata">

**Author:** [@jaiy](https://discourse.processing.org/u/jaiy)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 12:47am UTC](https://discourse.processing.org/t/problem-with-my-game/20888 "2020-05-15T00:47:21Z")

</div>

I am having trouble with my int missed I can’t get it to work like I want it to count as a missed as soon as it touches the line before the scoreboard and every time missed plus one the score would decrease by one. If an…

---

## [Difficulty with mouseX & mouseY](https://discourse.processing.org/t/difficulty-with-mousex-mousey/20641)

<div class="topic-metadata">

**Author:** [@Ted](https://discourse.processing.org/u/Ted)\
**Replies:** 3\
**Last updated:** [May 9, 2020, 6:23am UTC](https://discourse.processing.org/t/difficulty-with-mousex-mousey/20641 "2020-05-09T06:23:14Z")

</div>

I am VERY new to Java programming, (about a week now), and trying to complete a very simple Simon Says type game, (where you click on the colored boxes that randomly flash). My is I can’t get my mouse X & Y coordinates …

---

## [Random function and constrain](https://discourse.processing.org/t/random-function-and-constrain/20505)

<div class="topic-metadata">

**Author:** [@Filo96ge](https://discourse.processing.org/u/Filo96ge)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 10:56pm UTC](https://discourse.processing.org/t/random-function-and-constrain/20505 "2020-05-14T22:56:50Z")

</div>

Hello everybody, I’m working on a small personal exercise and I cannot undestrand how to avoid the born of random ball inside of the small square. The idea is to fill only the white square and leave the pink-center squa…

---

## [Movement question?](https://discourse.processing.org/t/movement-question/20876)

<div class="topic-metadata">

**Author:** [@bscohen06](https://discourse.processing.org/u/bscohen06)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 10:37pm UTC](https://discourse.processing.org/t/movement-question/20876 "2020-05-14T22:37:33Z")

</div>

So I coding movement and it works but I can not move diagonally and only do one input at once how do I fix this?

---

## [Question about loadstrings() function](https://discourse.processing.org/t/question-about-loadstrings-function/20824)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 4:48pm UTC](https://discourse.processing.org/t/question-about-loadstrings-function/20824 "2020-05-14T16:48:24Z")

</div>

Hi! Is it expected behaviour for the ‘loadstrings()’ function to skip blank or empty lines in Processing 3? The documentation doesn’t mention this, but that seems to be the case. I’m loading a small text file which has …

---

## [Sharing Image variables between PApplets](https://discourse.processing.org/t/sharing-image-variables-between-papplets/19877)

<div class="topic-metadata">

**Author:** [@chuchu](https://discourse.processing.org/u/chuchu)\
**Replies:** 8\
**Last updated:** [May 14, 2020, 2:05pm UTC](https://discourse.processing.org/t/sharing-image-variables-between-papplets/19877 "2020-05-14T14:05:04Z")

</div>

Hello Processing Discourse! I am trying to select a portion of video from a video capture by dragging a rectangle and then display that to a second window (a new PApplet). My question is how do I pass the captured cropp…

---

## [Issue with using keyReleased() to pause row of moving ellipses](https://discourse.processing.org/t/issue-with-using-keyreleased-to-pause-row-of-moving-ellipses/20816)

<div class="topic-metadata">

**Author:** [@user6886](https://discourse.processing.org/u/user6886)\
**Replies:** 11\
**Last updated:** [May 14, 2020, 1:53pm UTC](https://discourse.processing.org/t/issue-with-using-keyreleased-to-pause-row-of-moving-ellipses/20816 "2020-05-14T13:53:55Z")

</div>

Hello! I posted this on StackOverflow, but don’t seem to be having any luck with answers, and would really appreciate some help please. I’m having some trouble with a program I’m altering in Processing. This is the link…

---

## [Reset grid back to white](https://discourse.processing.org/t/reset-grid-back-to-white/20782)

<div class="topic-metadata">

**Author:** [@alex](https://discourse.processing.org/u/alex)\
**Replies:** 12\
**Last updated:** [May 14, 2020, 11:34am UTC](https://discourse.processing.org/t/reset-grid-back-to-white/20782 "2020-05-14T11:34:54Z")

</div>

Hi all. I’m new to Processing. I have managed to make this grid of squares which is assigned a random colour after each mouse click. After all the squares have been filled, I want to reset the squares back to white one …

---

## [Constructor to create a new class instance by assignment](https://discourse.processing.org/t/constructor-to-create-a-new-class-instance-by-assignment/20803)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 15\
**Last updated:** [May 14, 2020, 12:43pm UTC](https://discourse.processing.org/t/constructor-to-create-a-new-class-instance-by-assignment/20803 "2020-05-14T12:43:12Z")

</div>

I was hoping I could create a new class instance by assignment like this: innerRect = new Rect(outside.insetBy(m2, m2)); Is there any way to let a class have an constructor that can take an instance of the same type? O…

---

## [Question about GTextArea.setText() in G4P](https://discourse.processing.org/t/question-about-gtextarea-settext-in-g4p/20856)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 3\
**Last updated:** [May 14, 2020, 10:55am UTC](https://discourse.processing.org/t/question-about-gtextarea-settext-in-g4p/20856 "2020-05-14T10:55:57Z")

</div>

I have a question about GTextArea.setText(). I wrote a function that loads some lines from a text file and then uses GTextArea.setText() to load the lines into a text area. It seemed to be skipping empty lines, and at fi…

---

## [Problem looping through a 4D array](https://discourse.processing.org/t/problem-looping-through-a-4d-array/20444)

<div class="topic-metadata">

**Author:** [@timAllan](https://discourse.processing.org/u/timAllan)\
**Replies:** 34\
**Last updated:** [May 12, 2020, 4:39pm UTC](https://discourse.processing.org/t/problem-looping-through-a-4d-array/20444 "2020-05-12T16:39:42Z")

</div>

Hello! I want to create an animation based on the greyscale values (0-255) of each pixel in an image. Each pixel in the image would be represented by drawing a ‘grid’ (say, 4 rows \* 3 columns) of squares (rects), with…

---

## [Flashlight example, Image and Pixels tut](https://discourse.processing.org/t/flashlight-example-image-and-pixels-tut/20683)

<div class="topic-metadata">

**Author:** [@Fibonacci](https://discourse.processing.org/u/Fibonacci)\
**Replies:** 2\
**Last updated:** [May 14, 2020, 8:03am UTC](https://discourse.processing.org/t/flashlight-example-image-and-pixels-tut/20683 "2020-05-14T08:03:00Z")

</div>

Hi, This is my first post, so please be kind if I missed something regarding rules/etiquette. So, working through all the tuts so far and everything is fine, except I’m really trying to conceptualize what two lines are…

---

## [Running really slow for a relatively simple program](https://discourse.processing.org/t/running-really-slow-for-a-relatively-simple-program/20762)

<div class="topic-metadata">

**Author:** [@Xabdro](https://discourse.processing.org/u/Xabdro)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 6:23am UTC](https://discourse.processing.org/t/running-really-slow-for-a-relatively-simple-program/20762 "2020-05-14T06:23:54Z")

</div>

I’ve made much more complicated programs than this yet its running at 30fps when at low resolution. If I go fullscreen it drops to less than ten fps. I think I must be missing something really obvious that is causing thi…

---

## [Mapping a specified number to an argument in Perlin Noise space](https://discourse.processing.org/t/mapping-a-specified-number-to-an-argument-in-perlin-noise-space/20747)

<div class="topic-metadata">

**Author:** [@yajnya](https://discourse.processing.org/u/yajnya)\
**Replies:** 1\
**Last updated:** [May 14, 2020, 5:47am UTC](https://discourse.processing.org/t/mapping-a-specified-number-to-an-argument-in-perlin-noise-space/20747 "2020-05-14T05:47:12Z")

</div>

Hello everyone, I am very new to processing. recently, I watched The coding train’s 3d terrain generation using Pelrin noise tutorial. I am also trying to create a terrain consisting of mountains. However, I want my mo…

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

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