# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=101

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

**Page:** 102

---

## [Robot down key not working](https://discourse.processing.org/t/robot-down-key-not-working/33838)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 2\
**Last updated:** [November 30, 2021, 7:29pm UTC](https://discourse.processing.org/t/robot-down-key-not-working/33838 "2021-11-30T19:29:21Z")

</div>

why does this robot not pres the down key? import java.awt.AWTException; import java.awt.Robot; import java.awt.event.KeyEvent; Robot robot; void setup() { size(400, 400); //Let's get a Robot... try { robo…

---

## [Processing.net questions using Client / Server](https://discourse.processing.org/t/processing-net-questions-using-client-server/33860)

<div class="topic-metadata">

**Author:** [@yodan](https://discourse.processing.org/u/yodan)\
**Replies:** 1\
**Last updated:** [December 1, 2021, 2:57pm UTC](https://discourse.processing.org/t/processing-net-questions-using-client-server/33860 "2021-12-01T14:57:56Z")

</div>

Two clarifying questions regarding the processing.net library: When I use the Client constructor is there a way to control the timeout variable? The default is about 10-15s before it throws a timed out exception which …

---

## [Webcam capture fails for .exe on win10](https://discourse.processing.org/t/webcam-capture-fails-for-exe-on-win10/33834)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 2\
**Last updated:** [December 1, 2021, 1:44pm UTC](https://discourse.processing.org/t/webcam-capture-fails-for-exe-on-win10/33834 "2021-12-01T13:44:30Z")

</div>

Hi I am trying a simple webcam script on a Win10 machine, which runs fine. Still, the exported .exe fails, I do believe because it fails to upload GStreamer. Note folder structure is created as: script\_win64 – java …

---

## [Trying to draw a shape based on two circles](https://discourse.processing.org/t/trying-to-draw-a-shape-based-on-two-circles/33841)

<div class="topic-metadata">

**Author:** [@LucaP](https://discourse.processing.org/u/LucaP)\
**Replies:** 6\
**Last updated:** [December 1, 2021, 1:13pm UTC](https://discourse.processing.org/t/trying-to-draw-a-shape-based-on-two-circles/33841 "2021-12-01T13:13:55Z")

</div>

Hi, I am trying to draw a shape like this: It is important that the top and bottom of the shape match the radius of a perfect circle. I have tried doing this with shapes and beziérs but I can’t get my head around to…

---

## [Help with dragging images!](https://discourse.processing.org/t/help-with-dragging-images/33661)

<div class="topic-metadata">

**Author:** [@quixotic](https://discourse.processing.org/u/quixotic)\
**Replies:** 3\
**Last updated:** [November 30, 2021, 9:13pm UTC](https://discourse.processing.org/t/help-with-dragging-images/33661 "2021-11-30T21:13:39Z")

</div>

Hello all! I am very very new to coding and am attempting to create a code in which I can click on an image, have it change into a different image, then be able to click and drag the new image. I want this to be able to …

---

## [How to know if certain pixel is red, or blue, or green](https://discourse.processing.org/t/how-to-know-if-certain-pixel-is-red-or-blue-or-green/33802)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 9\
**Last updated:** [November 30, 2021, 8:14pm UTC](https://discourse.processing.org/t/how-to-know-if-certain-pixel-is-red-or-blue-or-green/33802 "2021-11-30T20:14:30Z")

</div>

I want to change colors from of a certain image, so all the reds will be certain blue, and all the blues will be certain blue. in order to do that, I am looking for some logic in the colors numbers, so I can use a simp…

---

## [Difficulty of running code when compacting sketch into a ZIP-file](https://discourse.processing.org/t/difficulty-of-running-code-when-compacting-sketch-into-a-zip-file/33113)

<div class="topic-metadata">

**Author:** [@William](https://discourse.processing.org/u/William)\
**Replies:** 3\
**Last updated:** [November 30, 2021, 7:49pm UTC](https://discourse.processing.org/t/difficulty-of-running-code-when-compacting-sketch-into-a-zip-file/33113 "2021-11-30T19:49:48Z")

</div>

So, I have completed an animation with a custom background picture i.e. a picture of a google search. It runs normal & fine on my laptop but when I compremise it into a ZIP-file to send it to my supervisor, I get constan…

---

## [Switching to P2D causes the video library to error out and crash](https://discourse.processing.org/t/switching-to-p2d-causes-the-video-library-to-error-out-and-crash/33671)

<div class="topic-metadata">

**Author:** [@danhett](https://discourse.processing.org/u/danhett)\
**Replies:** 9\
**Last updated:** [November 30, 2021, 9:49am UTC](https://discourse.processing.org/t/switching-to-p2d-causes-the-video-library-to-error-out-and-crash/33671 "2021-11-30T09:49:28Z")

</div>

Hello! I’m working on a large video installation project, which is basically finished and ready. It loads in dozens of very small videos (500x500 movs), and loops them. The program is designed to run for up to an hour a…

---

## [Screens are not updating](https://discourse.processing.org/t/screens-are-not-updating/33829)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 1\
**Last updated:** [November 30, 2021, 1:56am UTC](https://discourse.processing.org/t/screens-are-not-updating/33829 "2021-11-30T01:56:21Z")

</div>

Hello! I have a problem in which the screens are not updated, I tried several ways but cannot find the error. Can anyone know what it may be? please format code with \</\> button \* homework policy \* asking questions

---

## [Cannot find a class or type named “List” error](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-list-error/33783)

<div class="topic-metadata">

**Author:** [@Ingeneravit](https://discourse.processing.org/u/Ingeneravit)\
**Replies:** 1\
**Last updated:** [November 30, 2021, 1:47am UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-list-error/33783 "2021-11-30T01:47:53Z")

</div>

I’m new to processing, and I’m trying to run this bit of code: import de.fhpotsdam.unfolding.\*; import de.fhpotsdam.unfolding.core.\*; import de.fhpotsdam.unfolding.data.\*; import de.fhpotsdam.unfolding.events.\*; import …

---

## [Why is a frameRate fucntion in setup slower than draw?](https://discourse.processing.org/t/why-is-a-framerate-fucntion-in-setup-slower-than-draw/33827)

<div class="topic-metadata">

**Author:** [@5star\_weapon](https://discourse.processing.org/u/5star_weapon)\
**Replies:** 0\
**Last updated:** [November 30, 2021, 1:03am UTC](https://discourse.processing.org/t/why-is-a-framerate-fucntion-in-setup-slower-than-draw/33827 "2021-11-30T01:03:38Z")

</div>

I wrote a code that moves sphere in 3d. int s=100,m=5;//s is the size of the sphere, m is the position change. void setup() { size(500,500,P3D); noFill();//draw circle with only a stroke } void draw() { backgroun…

---

## [Screen with objects](https://discourse.processing.org/t/screen-with-objects/33683)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 2\
**Last updated:** [November 29, 2021, 1:45pm UTC](https://discourse.processing.org/t/screen-with-objects/33683 "2021-11-29T13:45:30Z")

</div>

Hi, why does the screen not change when I press the button? please format code with \</\> button \* homework policy \* asking questions Class Pantalla { int cant=57; Botoncito bot=new Botoncito\[cant\]; Textos texto; P…

---

## [Add string to file name](https://discourse.processing.org/t/add-string-to-file-name/33774)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 6\
**Last updated:** [November 29, 2021, 1:24pm UTC](https://discourse.processing.org/t/add-string-to-file-name/33774 "2021-11-29T13:24:46Z")

</div>

I have a loop which create graphics and save them into jpg files, and save them as saveFrame(“C:\\process\\test\\colors-###.jpg”); I create the graphics from randomize list of colors, and if the color red was chosen, I …

---

## [Mouse frustration!](https://discourse.processing.org/t/mouse-frustration/33789)

<div class="topic-metadata">

**Author:** [@AudioBabble](https://discourse.processing.org/u/AudioBabble)\
**Replies:** 12\
**Last updated:** [November 28, 2021, 1:52pm UTC](https://discourse.processing.org/t/mouse-frustration/33789 "2021-11-28T13:52:03Z")

</div>

I’m sure this has been asked a million times, so sorry for the repetition. I’m having a hell of a time with mousePressed, mouseClicked, etc To confuse me further I’ve just seen an example in the guidance for beginners …

---

## [MouseX with cursor](https://discourse.processing.org/t/mousex-with-cursor/33630)

<div class="topic-metadata">

**Author:** [@Caseyo](https://discourse.processing.org/u/Caseyo)\
**Replies:** 9\
**Last updated:** [November 29, 2021, 6:29am UTC](https://discourse.processing.org/t/mousex-with-cursor/33630 "2021-11-29T06:29:03Z")

</div>

\<void setup(){ size(600,800); background(0,0,80); } void draw() { float x = mouseX; background(0,0,80); fill(150,100,0); rect(width/2,height/2,150,150); if(x\<300){ fill(0,0,80); rect(x,400,150,150); } else if…

---

## [Export console println as text](https://discourse.processing.org/t/export-console-println-as-text/33810)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 1\
**Last updated:** [November 29, 2021, 1:30am UTC](https://discourse.processing.org/t/export-console-println-as-text/33810 "2021-11-29T01:30:41Z")

</div>

Is there an option to export the console output as a txt or something? I need to println more than 10k lines, but it only shows the last few dozens

---

## [Filling a PShape](https://discourse.processing.org/t/filling-a-pshape/33644)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 5\
**Last updated:** [November 29, 2021, 12:19am UTC](https://discourse.processing.org/t/filling-a-pshape/33644 "2021-11-29T00:19:38Z")

</div>

I’d like to be able to generate an arbitrary shape and fill it with a simple pattern. Drawing the shape is easy - something like this would do: void setup(){ size(650, 650, P3D); smooth(8); translate(200, 200); …

---

## [Connect only every third circle](https://discourse.processing.org/t/connect-only-every-third-circle/33798)

<div class="topic-metadata">

**Author:** [@Kristina](https://discourse.processing.org/u/Kristina)\
**Replies:** 3\
**Last updated:** [November 28, 2021, 7:12pm UTC](https://discourse.processing.org/t/connect-only-every-third-circle/33798 "2021-11-28T19:12:55Z")

</div>

Hey, i would really appreciate some help with an assignement i have to do. I had to create this picture of a row of circles at the top and bottom. Each circle is connected with the others at the Bottom or Top. This is th…

---

## [Movie Maker ffmpeg.exe not found](https://discourse.processing.org/t/movie-maker-ffmpeg-exe-not-found/32178)

<div class="topic-metadata">

**Author:** [@willdrop](https://discourse.processing.org/u/willdrop)\
**Replies:** 12\
**Last updated:** [October 3, 2021, 6:06pm UTC](https://discourse.processing.org/t/movie-maker-ffmpeg-exe-not-found/32178 "2021-10-03T18:06:23Z")

</div>

Hi As I work a lot with Nodebox I checked out Processing. Tried some examples but can’t get the Movie Maker to work to render my projects. I’m on Win10. Tried the old Processing version (3.5) and tried to use video e…

---

## [Disabling color blending of a shape in P3D](https://discourse.processing.org/t/disabling-color-blending-of-a-shape-in-p3d/33779)

<div class="topic-metadata">

**Author:** [@Lurion](https://discourse.processing.org/u/Lurion)\
**Replies:** 3\
**Last updated:** [November 27, 2021, 6:11pm UTC](https://discourse.processing.org/t/disabling-color-blending-of-a-shape-in-p3d/33779 "2021-11-27T18:11:03Z")

</div>

I got a simple TRIANGLE\_STRIP shape with 3 vertexs. I need to have each triangle with only one solid color, but Processing is blending the colors when I’m on P3d (it works fine on P2D). How can I disable it? void setup…

---

## [Write over live stream video](https://discourse.processing.org/t/write-over-live-stream-video/33766)

<div class="topic-metadata">

**Author:** [@Fotis](https://discourse.processing.org/u/Fotis)\
**Replies:** 1\
**Last updated:** [November 27, 2021, 10:03am UTC](https://discourse.processing.org/t/write-over-live-stream-video/33766 "2021-11-27T10:03:08Z")

</div>

How can different users write words or sentences, at the same time, that appear on a live video streaming?

---

## [How do I increase the speed of a rectangle whenever I press a key?](https://discourse.processing.org/t/how-do-i-increase-the-speed-of-a-rectangle-whenever-i-press-a-key/33731)

<div class="topic-metadata">

**Author:** [@FunkyMan](https://discourse.processing.org/u/FunkyMan)\
**Replies:** 3\
**Last updated:** [November 27, 2021, 8:50am UTC](https://discourse.processing.org/t/how-do-i-increase-the-speed-of-a-rectangle-whenever-i-press-a-key/33731 "2021-11-27T08:50:25Z")

</div>

int X=20; int Y=20; int howBig=20; void setup() { size(700, 700); background(196, 196, 196); } void draw() { background(196, 196, 196); rect(X, Y, howBig, howBig); fill(113, 113, 113); } void keyPressed() { …

---

## [Empty folders upon macOS install](https://discourse.processing.org/t/empty-folders-upon-macos-install/33690)

<div class="topic-metadata">

**Author:** [@daFrenchFrog](https://discourse.processing.org/u/daFrenchFrog)\
**Replies:** 1\
**Last updated:** [November 27, 2021, 8:48am UTC](https://discourse.processing.org/t/empty-folders-upon-macos-install/33690 "2021-11-27T08:48:44Z")

</div>

Hello, This feels like a silly question but I looked for a solution and found nothing. I download the processing zip file Uncompress it Move the processing.app file (the only file in the zip file) to the application f…

---

## [Newbie seeking a bit of guidance... vertically falling text manipulation](https://discourse.processing.org/t/newbie-seeking-a-bit-of-guidance-vertically-falling-text-manipulation/33726)

<div class="topic-metadata">

**Author:** [@AudioBabble](https://discourse.processing.org/u/AudioBabble)\
**Replies:** 2\
**Last updated:** [November 27, 2021, 2:52am UTC](https://discourse.processing.org/t/newbie-seeking-a-bit-of-guidance-vertically-falling-text-manipulation/33726 "2021-11-27T02:52:35Z")

</div>

EDIT: I’ve decided this post is asking too much all at once, please see my other post here: Newbie advice... stop a blinking cursor (I’m breaking it down into manageable chunks!) Hi all, new here and new to processing. …

---

## [Game control plus library with presets](https://discourse.processing.org/t/game-control-plus-library-with-presets/33712)

<div class="topic-metadata">

**Author:** [@TimeLex](https://discourse.processing.org/u/TimeLex)\
**Replies:** 11\
**Last updated:** [November 26, 2021, 2:22pm UTC](https://discourse.processing.org/t/game-control-plus-library-with-presets/33712 "2021-11-26T14:22:07Z")

</div>

Hello. I use the game controls plus library and it works very well. But every time I start the program, the configuration window appears. Is there a way to save a preset and let the user switch between these presets wit…

---

## [Jagged text problem Windows](https://discourse.processing.org/t/jagged-text-problem-windows/33768)

<div class="topic-metadata">

**Author:** [@stefanmz7](https://discourse.processing.org/u/stefanmz7)\
**Replies:** 0\
**Last updated:** [November 26, 2021, 12:35pm UTC](https://discourse.processing.org/t/jagged-text-problem-windows/33768 "2021-11-26T12:35:50Z")

</div>

Hello! So recently I tried the minim sound library and I tried their example formula that displays the waveform of the music file that’s playing but even though I used smoothing it’s till jagged even with smoothing(8) ba…

---

## [Java error : read timed out](https://discourse.processing.org/t/java-error-read-timed-out/33762)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 0\
**Last updated:** [November 26, 2021, 1:21am UTC](https://discourse.processing.org/t/java-error-read-timed-out/33762 "2021-11-26T01:21:41Z")

</div>

recently, every time I run play the code I wrote, at the end I get this error in the console, and it keep showing every few seconds… Why is that? I’m working with processing 4.0b2 java.net.SocketTimeoutException: Rea…

---

## [Generate seed while runtime](https://discourse.processing.org/t/generate-seed-while-runtime/33736)

<div class="topic-metadata">

**Author:** [@res56](https://discourse.processing.org/u/res56)\
**Replies:** 1\
**Last updated:** [November 25, 2021, 8:16pm UTC](https://discourse.processing.org/t/generate-seed-while-runtime/33736 "2021-11-25T20:16:37Z")

</div>

Hey guys, how can I create a unique seed while run time to save the script with this seed and use it for random functions. The goal is to have an instance of the script that returns the same result while using random fu…

---

## [Newbie advice... stop a blinking cursor](https://discourse.processing.org/t/newbie-advice-stop-a-blinking-cursor/33734)

<div class="topic-metadata">

**Author:** [@AudioBabble](https://discourse.processing.org/u/AudioBabble)\
**Replies:** 4\
**Last updated:** [November 25, 2021, 8:11pm UTC](https://discourse.processing.org/t/newbie-advice-stop-a-blinking-cursor/33734 "2021-11-25T20:11:24Z")

</div>

I’m totally new to processing and to coding in general. At the moment I’m really not sure if my brain is capable of learning code… have been trying to understand some of the reference section with limited success. I’ve…

---

## [Changing a normal string to camelCase](https://discourse.processing.org/t/changing-a-normal-string-to-camelcase/33744)

<div class="topic-metadata">

**Author:** [@it\_begins](https://discourse.processing.org/u/it_begins)\
**Replies:** 3\
**Last updated:** [November 25, 2021, 12:20pm UTC](https://discourse.processing.org/t/changing-a-normal-string-to-camelcase/33744 "2021-11-25T12:20:38Z")

</div>

Hi, i have to change a set of string to calmelcase i.e removing punctuations and spaces,and capitalizing the first letter of each word… Using only these string functions: charAt(), length(), toUpperCase(), toLowerCase(…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=100)

[Next page](https://discourse.processing.org/c/processing/6.md?page=102)
