# Processing

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

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

**Page:** 198

---

## [Sudden OpenGL Problems on Ubuntu 20 with P2D and P3D](https://discourse.processing.org/t/sudden-opengl-problems-on-ubuntu-20-with-p2d-and-p3d/22183)

<div class="topic-metadata">

**Author:** [@johnbentcope](https://discourse.processing.org/u/johnbentcope)\
**Replies:** 1\
**Last updated:** [June 26, 2020, 11:12pm UTC](https://discourse.processing.org/t/sudden-opengl-problems-on-ubuntu-20-with-p2d-and-p3d/22183 "2020-06-26T23:12:04Z")

</div>

I’m running Ubuntu 20.04 on a Dell T5500 with an NVIDIA Quadro K4000, and the nvidia-drivers-440 driver. I’ve been toying with a lot of settings over the last few days, working on a few projects, and suddently I can’t r…

---

## [Specific position of squares](https://discourse.processing.org/t/specific-position-of-squares/21669)

<div class="topic-metadata">

**Author:** [@aylen2000](https://discourse.processing.org/u/aylen2000)\
**Replies:** 1\
**Last updated:** [June 8, 2020, 3:26am UTC](https://discourse.processing.org/t/specific-position-of-squares/21669 "2020-06-08T03:26:37Z")

</div>

Hi, I need help with a college job. It consists of generating with the movement and speed of the mouse, different abstract works of art, in my case select some that contain different squares each one in a specific positi…

---

## [Problem with inserting an image array](https://discourse.processing.org/t/problem-with-inserting-an-image-array/22164)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 3\
**Last updated:** [June 26, 2020, 8:50am UTC](https://discourse.processing.org/t/problem-with-inserting-an-image-array/22164 "2020-06-26T08:50:40Z")

</div>

Hi everyone, one question: if I have an array of images, for example PImage \[\] dogs = new PImage \[4\] then inserting each image: dogsOne = loadImage (""); then when I have to insert my images in image (… 0,0,100,100)…

---

## [Processing , second user interface via chrome](https://discourse.processing.org/t/processing-second-user-interface-via-chrome/21771)

<div class="topic-metadata">

**Author:** [@Theo68](https://discourse.processing.org/u/Theo68)\
**Replies:** 11\
**Last updated:** [June 26, 2020, 8:34am UTC](https://discourse.processing.org/t/processing-second-user-interface-via-chrome/21771 "2020-06-26T08:34:48Z")

</div>

I have written a scetch for processing. I’m reading a circuit of sensors via usb and I’ve created a graphical environment. Is it possible to create a server within the same scetch and display a second user interface so t…

---

## [Overloading functions: is there anyway to overload functions if they take arraylists?](https://discourse.processing.org/t/overloading-functions-is-there-anyway-to-overload-functions-if-they-take-arraylists/22169)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [June 26, 2020, 2:16am UTC](https://discourse.processing.org/t/overloading-functions-is-there-anyway-to-overload-functions-if-they-take-arraylists/22169 "2020-06-26T02:16:17Z")

</div>

the following fails at compile time and says they’res a duplicate function, void saveData(ArrayList\<String\> a){ if(click){ for(int i=0;i\<a.size();i++) output.println(a.get(i)); saveTo(); } …

---

## [(drawbot image to gcode v2) error when running](https://discourse.processing.org/t/drawbot-image-to-gcode-v2-error-when-running/18273)

<div class="topic-metadata">

**Author:** [@motorimicro](https://discourse.processing.org/u/motorimicro)\
**Replies:** 8\
**Last updated:** [June 25, 2020, 5:50pm UTC](https://discourse.processing.org/t/drawbot-image-to-gcode-v2-error-when-running/18273 "2020-06-25T17:50:56Z")

</div>

Hi everyone I am trying to run this sketch, theoretically it should work as written and tested by many other users but in my case it gives me this error. do you know how to fix the situation? the file can be downloaded…

---

## [Dependency Management for Libraries](https://discourse.processing.org/t/dependency-management-for-libraries/18940)

<div class="topic-metadata">

**Author:** [@cansik](https://discourse.processing.org/u/cansik)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 6:41pm UTC](https://discourse.processing.org/t/dependency-management-for-libraries/18940 "2020-06-25T18:41:04Z")

</div>

At the moment I am working on a new library for Processing which is based on OpenCV. The binary files of OpenCV are about ~400 MB, with all contribution libraries, we are talking about ~700 MB to download. As this maybe …

---

## [G4P button properties and methods](https://discourse.processing.org/t/g4p-button-properties-and-methods/22068)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 8\
**Last updated:** [June 25, 2020, 3:26pm UTC](https://discourse.processing.org/t/g4p-button-properties-and-methods/22068 "2020-06-25T15:26:33Z")

</div>

I consider myself a beginner with processing. Recently I wrote a program to test ignition coils using an Arduino. The program works fine, but uses the serial monitor to control it. I have downloaded the G4P GUI tool and …

---

## [controlP5 "bang" being pressed by using hardware (Arduino)](https://discourse.processing.org/t/controlp5-bang-being-pressed-by-using-hardware-arduino/22156)

<div class="topic-metadata">

**Author:** [@Ardubora](https://discourse.processing.org/u/Ardubora)\
**Replies:** 0\
**Last updated:** [June 25, 2020, 11:41am UTC](https://discourse.processing.org/t/controlp5-bang-being-pressed-by-using-hardware-arduino/22156 "2020-06-25T11:41:18Z")

</div>

Is it possible to make a button (f.e bang) from the controlP5 to be pressed without klicking the button? But lets say instead usea button on an arduino?

---

## [The JOptionPane dialog window appears when pressing the "wrong" button on the controlP5 GUI](https://discourse.processing.org/t/the-joptionpane-dialog-window-appears-when-pressing-the-wrong-button-on-the-controlp5-gui/22124)

<div class="topic-metadata">

**Author:** [@Ardubora](https://discourse.processing.org/u/Ardubora)\
**Replies:** 9\
**Last updated:** [June 25, 2020, 11:22am UTC](https://discourse.processing.org/t/the-joptionpane-dialog-window-appears-when-pressing-the-wrong-button-on-the-controlp5-gui/22124 "2020-06-25T11:22:49Z")

</div>

I made a dialog window appear when one is pressing the button “red1”. The first attempt at compiling after restart is normal. When I press “ok” in that pop-up or I close it the button “red1” still stays pressed/active. A…

---

## [How to get coordinates of where two shapes touch](https://discourse.processing.org/t/how-to-get-coordinates-of-where-two-shapes-touch/22136)

<div class="topic-metadata">

**Author:** [@aaronjmcd2](https://discourse.processing.org/u/aaronjmcd2)\
**Replies:** 3\
**Last updated:** [June 25, 2020, 2:55am UTC](https://discourse.processing.org/t/how-to-get-coordinates-of-where-two-shapes-touch/22136 "2020-06-25T02:55:30Z")

</div>

Hi! I’m trying to figure out if there’s a way to get the x and y coordinates of where two separate shapes (any shapes) touch. Any idea how I might obtain that information? Thanks!

---

## [Academic exercise HELP](https://discourse.processing.org/t/academic-exercise-help/22130)

<div class="topic-metadata">

**Author:** [@Nikos](https://discourse.processing.org/u/Nikos)\
**Replies:** 5\
**Last updated:** [June 25, 2020, 12:23am UTC](https://discourse.processing.org/t/academic-exercise-help/22130 "2020-06-25T00:23:00Z")

</div>

Hello! I’m a newbie on processing and I have a question about an academic exercise. I want to make diagonal points with degrading strokeWeight(starting at point 0,0 with the bigger point). I must use this semi completed…

---

## [Wait for selectFolder()](https://discourse.processing.org/t/wait-for-selectfolder/22122)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 4\
**Last updated:** [June 25, 2020, 12:02am UTC](https://discourse.processing.org/t/wait-for-selectfolder/22122 "2020-06-25T00:02:48Z")

</div>

I am writing a program to do mass image editing and would like to have the end user select an input and output folder when the program starts. I tried using selectFolder("Select a input folder:", "inputFolder"); and it …

---

## [Neural network help: AI doesn't improve](https://discourse.processing.org/t/neural-network-help-ai-doesnt-improve/5880)

<div class="topic-metadata">

**Author:** [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 11:54pm UTC](https://discourse.processing.org/t/neural-network-help-ai-doesnt-improve/5880 "2020-06-24T23:54:42Z")

</div>

Hi, i made a very simple and basic (i thought, but might as well be skynet…) Neural Network. I am quite familiar with how it should work, although i never made one myself (though i copied a machine learning system, which…

---

## [Decrypt caesar cipher](https://discourse.processing.org/t/decrypt-caesar-cipher/22131)

<div class="topic-metadata">

**Author:** [@homeCoder](https://discourse.processing.org/u/homeCoder)\
**Replies:** 1\
**Last updated:** [June 24, 2020, 8:24pm UTC](https://discourse.processing.org/t/decrypt-caesar-cipher/22131 "2020-06-24T20:24:35Z")

</div>

thank you thank you very much

---

## [Shiffman Learning Processing EXERCISE Answers?](https://discourse.processing.org/t/shiffman-learning-processing-exercise-answers/19395)

<div class="topic-metadata">

**Author:** [@Eyetoof](https://discourse.processing.org/u/Eyetoof)\
**Replies:** 7\
**Last updated:** [June 24, 2020, 8:13pm UTC](https://discourse.processing.org/t/shiffman-learning-processing-exercise-answers/19395 "2020-06-24T20:13:10Z")

</div>

Hello I am using D Shifmans Learning Processing text. I know I can find all the sketches on line, but I wonder if anyone has posted answers to the exersizes throughout the book? I suppose if it works, its the right an…

---

## [Pshape ... not in shape](https://discourse.processing.org/t/pshape-not-in-shape/22125)

<div class="topic-metadata">

**Author:** [@klap](https://discourse.processing.org/u/klap)\
**Replies:** 1\
**Last updated:** [June 24, 2020, 7:59pm UTC](https://discourse.processing.org/t/pshape-not-in-shape/22125 "2020-06-24T19:59:49Z")

</div>

Why is the droplet working with the code which is commented out and not in the Pshape version? //fill(0, 0, 255); //beginShape(); //vertex(50, 10); //bezierVertex(50, 10, 5, 50, 50, 60); //bezierVertex(70, 50, 70, 30, …

---

## [Network library: Is there a limit on the size of a byte array sent to a Client via the write() function?](https://discourse.processing.org/t/network-library-is-there-a-limit-on-the-size-of-a-byte-array-sent-to-a-client-via-the-write-function/21506)

<div class="topic-metadata">

**Author:** [@giulio](https://discourse.processing.org/u/giulio)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 2:11pm UTC](https://discourse.processing.org/t/network-library-is-there-a-limit-on-the-size-of-a-byte-array-sent-to-a-client-via-the-write-function/21506 "2020-06-24T14:11:03Z")

</div>

Scenario: I have three programs: a TCP Server (written in Processing), and Producer and Consumer (they are not Processing sketches). Producer produces an array of bytes. Producer and Consumer connect to the TCP Server, a…

---

## [Studio Dumbar's works. (Amsterdam Sinfonietta )](https://discourse.processing.org/t/studio-dumbars-works-amsterdam-sinfonietta/21992)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 5\
**Last updated:** [June 24, 2020, 12:47pm UTC](https://discourse.processing.org/t/studio-dumbars-works-amsterdam-sinfonietta/21992 "2020-06-24T12:47:18Z")

</div>

Who knows how to do works like Studio Dumbar do ? They are coding and their code reacting to the music. Some examples: https://youtu.be/0C9\_nYeVxa0

---

## [Question about GCheckbox in G4P library](https://discourse.processing.org/t/question-about-gcheckbox-in-g4p-library/22119)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 11:49am UTC](https://discourse.processing.org/t/question-about-gcheckbox-in-g4p-library/22119 "2020-06-24T11:49:51Z")

</div>

I have a question about GCheckbox objects. Depending on the control mode, the 4th & 5th parameters in the creation methods are supposed to specify either the X/Y positions (of the bottom right corner, I think) or the wid…

---

## [Game wont resume](https://discourse.processing.org/t/game-wont-resume/22112)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 7\
**Last updated:** [June 24, 2020, 8:42am UTC](https://discourse.processing.org/t/game-wont-resume/22112 "2020-06-24T08:42:27Z")

</div>

So I have a somewhat simple snake game code here: ArrayList\<Integer\> x = new ArrayList\<Integer\>(), y = new ArrayList\<Integer\>(); int w=30, h=30, blocks=20, direction = 2, foodx =15, foody = 15, fcl1=255, fcl2=255, fcl3=…

---

## [Pong game menu with stages](https://discourse.processing.org/t/pong-game-menu-with-stages/21893)

<div class="topic-metadata">

**Author:** [@mrporcessing](https://discourse.processing.org/u/mrporcessing)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 1:55am UTC](https://discourse.processing.org/t/pong-game-menu-with-stages/21893 "2020-06-24T01:55:12Z")

</div>

Hi, I need help creating the menus with stages. Whenever I do it, voidKeypressed keeps getting highlighted. I’m not sure why. Also you can suggest any other changes. //all major variables int x,y,w,h,speedX,speedY;//cir…

---

## [Change Size of menu bar](https://discourse.processing.org/t/change-size-of-menu-bar/22086)

<div class="topic-metadata">

**Author:** [@Bobby54](https://discourse.processing.org/u/Bobby54)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 10:30pm UTC](https://discourse.processing.org/t/change-size-of-menu-bar/22086 "2020-06-23T22:30:24Z")

</div>

Hi, I saw this issue on github(https://github.com/processing/processing/issues/6059#issue-642745442) an wanted to ask if anyone has an idea on how to change the menu Size apart from making a Processing Repository clone …

---

## [Loop draw with rotating image](https://discourse.processing.org/t/loop-draw-with-rotating-image/22118)

<div class="topic-metadata">

**Author:** [@aerob](https://discourse.processing.org/u/aerob)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 10:16pm UTC](https://discourse.processing.org/t/loop-draw-with-rotating-image/22118 "2020-06-23T22:16:29Z")

</div>

Hello guys, I am new to processing… but im having a lot of fun learning new ways of programming. In this particular code i have a png which rotates in a 90 degrees angle. what im missing is that the png starts in the to…

---

## [Image size formating: What is the best way to do it?](https://discourse.processing.org/t/image-size-formating-what-is-the-best-way-to-do-it/22104)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 10:02pm UTC](https://discourse.processing.org/t/image-size-formating-what-is-the-best-way-to-do-it/22104 "2020-06-23T22:02:53Z")

</div>

This is not an AI question, but what I want to do is to take an image containing a character and format it to the size that my AI will accept which is 32,32. the problem is that when I use this: for (int i=0;i\<32;i++){ …

---

## [How to repeat 5 sec?](https://discourse.processing.org/t/how-to-repeat-5-sec/22113)

<div class="topic-metadata">

**Author:** [@lee1](https://discourse.processing.org/u/lee1)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 9:47pm UTC](https://discourse.processing.org/t/how-to-repeat-5-sec/22113 "2020-06-23T21:47:57Z")

</div>

how can repeat every code 5 sec forver? i try to find about that, i cant find “repeat using time”

---

## [XML string with return sign](https://discourse.processing.org/t/xml-string-with-return-sign/22102)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 5\
**Last updated:** [June 23, 2020, 9:33pm UTC](https://discourse.processing.org/t/xml-string-with-return-sign/22102 "2020-06-23T21:33:53Z")

</div>

Hi, I put back in a XML file a string with many lines. But after record it I have only one lines. txt.setContent(t.getTxt()); //txt is my xml node What is missing ?

---

## [Game or Animation with my char](https://discourse.processing.org/t/game-or-animation-with-my-char/22109)

<div class="topic-metadata">

**Author:** [@Helix1221](https://discourse.processing.org/u/Helix1221)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 8:50pm UTC](https://discourse.processing.org/t/game-or-animation-with-my-char/22109 "2020-06-23T20:50:20Z")

</div>

Hey guys can you help me make a game or a animation with my char, i just need a simple game and small in termes of coding. tks a lot my char code ; float DarkzeroX = 300; float DarkzeroY = 300; //start size(900, 80…

---

## [Mouse inside custome shape](https://discourse.processing.org/t/mouse-inside-custome-shape/22110)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 6:05pm UTC](https://discourse.processing.org/t/mouse-inside-custome-shape/22110 "2020-06-23T18:05:03Z")

</div>

Hi, i’m trying to get into programming again and a stubbled upon a little problem. I was trying to create a hexagon but I can’t figure out a smart way to detect when my mouse is inside of the shape. Any good ideas? voi…

---

## [Accuracy of float numbers](https://discourse.processing.org/t/accuracy-of-float-numbers/22096)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 3\
**Last updated:** [June 23, 2020, 5:12pm UTC](https://discourse.processing.org/t/accuracy-of-float-numbers/22096 "2020-06-23T17:12:44Z")

</div>

The map function should produce a float (see code below). If one looks at the first 10 results, with i first and then i mapped between 85.0 and 170.0, we have: 85 85.0 86 87.0 87 89.0 88 91.0 89 93.0 90 95.0 91 97…

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

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