# Processing

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

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

**Page:** 66

---

## [How do I change my game map after player reaches a certain tile?](https://discourse.processing.org/t/how-do-i-change-my-game-map-after-player-reaches-a-certain-tile/39067)

<div class="topic-metadata">

**Author:** [@Marfmamow](https://discourse.processing.org/u/Marfmamow)\
**Replies:** 2\
**Last updated:** [October 4, 2022, 2:15pm UTC](https://discourse.processing.org/t/how-do-i-change-my-game-map-after-player-reaches-a-certain-tile/39067 "2022-10-04T14:15:18Z")

</div>

I’m making a 2D game where each level is determined by a config.json file. It contains the level name, and the name of a file called “level1.txt”, “level2.txt” etc. I have a buffered reader that reads the txt file, and p…

---

## [How to create Windows like messagebox in Processing using ControlP5?](https://discourse.processing.org/t/how-to-create-windows-like-messagebox-in-processing-using-controlp5/37593)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 14\
**Last updated:** [October 4, 2022, 7:36am UTC](https://discourse.processing.org/t/how-to-create-windows-like-messagebox-in-processing-using-controlp5/37593 "2022-10-04T07:36:54Z")

</div>

Hello, I am new to processing. I am creating GUI using controlP5 library. I am having difficulty in finding a way to create a pop up message box. (similar to a new dialog box in windows., like error message dialog box …

---

## [Why no error on dividing by zero](https://discourse.processing.org/t/why-no-error-on-dividing-by-zero/39065)

<div class="topic-metadata">

**Author:** [@prathmesh](https://discourse.processing.org/u/prathmesh)\
**Replies:** 4\
**Last updated:** [October 4, 2022, 6:43am UTC](https://discourse.processing.org/t/why-no-error-on-dividing-by-zero/39065 "2022-10-04T06:43:01Z")

</div>

Namaste everyone, Why does “int x = 200/0;” gives an error but int x = 200/20\*0; gives the value as 0.? Thanks.

---

## [Uploading image, and changing a specific color if it is present](https://discourse.processing.org/t/uploading-image-and-changing-a-specific-color-if-it-is-present/39063)

<div class="topic-metadata">

**Author:** [@blackhatProphet](https://discourse.processing.org/u/blackhatProphet)\
**Replies:** 2\
**Last updated:** [October 3, 2022, 9:53pm UTC](https://discourse.processing.org/t/uploading-image-and-changing-a-specific-color-if-it-is-present/39063 "2022-10-03T21:53:38Z")

</div>

Using the image() function in Processing could I upload an image and then scan to see if, for example, the color yellow (or an rgb spectrum of yellow values?) was present somewhere in this given image and if it was chang…

---

## [How to get a snapshot of a PGraphics "paused" frame and use it as a PImage at a predefined condition in time?](https://discourse.processing.org/t/how-to-get-a-snapshot-of-a-pgraphics-paused-frame-and-use-it-as-a-pimage-at-a-predefined-condition-in-time/38839)

<div class="topic-metadata">

**Author:** [@istinn](https://discourse.processing.org/u/istinn)\
**Replies:** 3\
**Last updated:** [October 3, 2022, 1:14pm UTC](https://discourse.processing.org/t/how-to-get-a-snapshot-of-a-pgraphics-paused-frame-and-use-it-as-a-pimage-at-a-predefined-condition-in-time/38839 "2022-10-03T13:14:13Z")

</div>

If I use static sketches I can create a PImage right away and use it in a PGraphics buffer, then use it as a BufferedImage successfully with getNative(). How do I get a snapshot of this PGraphics buffer in time if I ha…

---

## [Modbus TCP library for Java](https://discourse.processing.org/t/modbus-tcp-library-for-java/39017)

<div class="topic-metadata">

**Author:** [@herdal](https://discourse.processing.org/u/herdal)\
**Replies:** 9\
**Last updated:** [October 3, 2022, 10:39am UTC](https://discourse.processing.org/t/modbus-tcp-library-for-java/39017 "2022-10-03T10:39:10Z")

</div>

Hi All, I want to view some variables with processing from a PLC in a LAN network, I came across the modbus library for java while surfing the internet. Is it possible for me to run the code in the link I added below …

---

## [Sketch soft crashes when resizing window](https://discourse.processing.org/t/sketch-soft-crashes-when-resizing-window/39032)

<div class="topic-metadata">

**Author:** [@jSdCool](https://discourse.processing.org/u/jSdCool)\
**Replies:** 4\
**Last updated:** [October 2, 2022, 8:03pm UTC](https://discourse.processing.org/t/sketch-soft-crashes-when-resizing-window/39032 "2022-10-02T20:03:06Z")

</div>

I was trying to play around with the new windowResizable() and other related functions added in processing 4. however I found that sometimes after resizing the window the sketch would stop redrawing, mouse click also did…

---

## [“Serial.list()” - Error: UnsatisfiedLinkError: Could not load the jssc library: Couldn’t load library library jssc](https://discourse.processing.org/t/serial-list-error-unsatisfiedlinkerror-could-not-load-the-jssc-library-couldn-t-load-library-library-jssc/37780)

<div class="topic-metadata">

**Author:** [@adisimone401](https://discourse.processing.org/u/adisimone401)\
**Replies:** 1\
**Last updated:** [October 2, 2022, 6:20pm UTC](https://discourse.processing.org/t/serial-list-error-unsatisfiedlinkerror-could-not-load-the-jssc-library-couldn-t-load-library-library-jssc/37780 "2022-10-02T18:20:44Z")

</div>

OS: Mac OS Monterey V. 12.4 Processing Ide version 4.0b8 Issue: ON Processing 4.0b8 - “Serial.list()” - Error: UnsatisfiedLinkError: Could not load the jssc library: Couldn’t load library library jssc import proces…

---

## [Basic Processing question for beginner (circular rays)](https://discourse.processing.org/t/basic-processing-question-for-beginner-circular-rays/39029)

<div class="topic-metadata">

**Author:** [@ghostmane](https://discourse.processing.org/u/ghostmane)\
**Replies:** 2\
**Last updated:** [October 2, 2022, 3:10pm UTC](https://discourse.processing.org/t/basic-processing-question-for-beginner-circular-rays/39029 "2022-10-02T15:10:33Z")

</div>

please format code with \</\> button \* homework policy \* asking questions 지금 이상태인데 저 선들이 한점에서 뻗어나가도록 모션을 넣고싶은데 어떻게 해야하나요? 그리고 모션이 끝난 다음에 이미지들을 넣고 그 위에 그림을 그릴 수 있도록 만들고싶은데 가능한가요? at this moment on the screenshot i …

---

## [Colours continuously changing based on array values](https://discourse.processing.org/t/colours-continuously-changing-based-on-array-values/39041)

<div class="topic-metadata">

**Author:** [@Ficus](https://discourse.processing.org/u/Ficus)\
**Replies:** 4\
**Last updated:** [October 2, 2022, 1:29pm UTC](https://discourse.processing.org/t/colours-continuously-changing-based-on-array-values/39041 "2022-10-02T13:29:58Z")

</div>

Hey all, I have a data visualisation task for class and need to show how temperature changes over time. My idea is to have the fill react to the temperature values. So, I have an array of float values (length is 1438) …

---

## [Assign undetermined number of variables in method](https://discourse.processing.org/t/assign-undetermined-number-of-variables-in-method/39046)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [October 2, 2022, 12:33pm UTC](https://discourse.processing.org/t/assign-undetermined-number-of-variables-in-method/39046 "2022-10-02T12:33:11Z")

</div>

please format code with \</\> button \* homework policy \* asking questions What is the syntax for adding an undermined amount of variables to a method. ie void method(int a,int b,int c.....){ }

---

## [Brainstorming: Is this even possible?](https://discourse.processing.org/t/brainstorming-is-this-even-possible/39012)

<div class="topic-metadata">

**Author:** [@cottonchipper](https://discourse.processing.org/u/cottonchipper)\
**Replies:** 3\
**Last updated:** [October 1, 2022, 11:48pm UTC](https://discourse.processing.org/t/brainstorming-is-this-even-possible/39012 "2022-10-01T23:48:42Z")

</div>

Just wondering if there is any way to achieve the following: The sketch creates a grid. A design is drawn inside the first square of the grid. The design is one of a group of designs and randomly assigned to each grid …

---

## [How do I make my character only stop on whole tiles?](https://discourse.processing.org/t/how-do-i-make-my-character-only-stop-on-whole-tiles/39031)

<div class="topic-metadata">

**Author:** [@Marfmamow](https://discourse.processing.org/u/Marfmamow)\
**Replies:** 7\
**Last updated:** [October 2, 2022, 9:48am UTC](https://discourse.processing.org/t/how-do-i-make-my-character-only-stop-on-whole-tiles/39031 "2022-10-02T09:48:24Z")

</div>

I’ve managed to make my sprite move, and it currently moves 2 positions each press of the arrow key. My map is made up of grids of 20x20 pixels, and I’d like my character to only stop on whole tiles, to prevent any coll…

---

## [Moving objects using mouse pressed and key pressed](https://discourse.processing.org/t/moving-objects-using-mouse-pressed-and-key-pressed/39035)

<div class="topic-metadata">

**Author:** [@turtle1](https://discourse.processing.org/u/turtle1)\
**Replies:** 2\
**Last updated:** [October 1, 2022, 9:18pm UTC](https://discourse.processing.org/t/moving-objects-using-mouse-pressed-and-key-pressed/39035 "2022-10-01T21:18:17Z")

</div>

Hi, I want to move a square down by 3 pixels using mouse pressed and and 3 pixels up by using key pressed. How would I do this? I’ve already coded the square in the middle of the 100 x 100 canvas.

---

## [Display sprites in sequence](https://discourse.processing.org/t/display-sprites-in-sequence/39016)

<div class="topic-metadata">

**Author:** [@dmlong](https://discourse.processing.org/u/dmlong)\
**Replies:** 7\
**Last updated:** [October 1, 2022, 9:10am UTC](https://discourse.processing.org/t/display-sprites-in-sequence/39016 "2022-10-01T09:10:22Z")

</div>

Hi all, So I have an object in Java with a sprite associated to it. I also have an array of 4 different PImages, and I want to gradually change the sprite of that object into each of the PImages in that array (technical…

---

## [\[JAVA\] 'PDF' library - Is it possible to copy after dragging?](https://discourse.processing.org/t/java-pdf-library-is-it-possible-to-copy-after-dragging/39023)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [October 1, 2022, 1:21am UTC](https://discourse.processing.org/t/java-pdf-library-is-it-possible-to-copy-after-dragging/39023 "2022-10-01T01:21:39Z")

</div>

\[JAVA\] ‘PDF’ library - Is it possible to copy after dragging? hello. The ‘PDF’ library works fine. But I have one question. When output as pdf in ‘Powerpoint’ or ‘Word’ program, the text is touched and dragged. You ca…

---

## [\[deep-vision\] YOLONetwork function question](https://discourse.processing.org/t/deep-vision-yolonetwork-function-question/39013)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [September 29, 2022, 8:48pm UTC](https://discourse.processing.org/t/deep-vision-yolonetwork-function-question/39013 "2022-09-29T20:48:00Z")

</div>

library link : GitHub - cansik/deep-vision-processing: Deep computer-vision algorithms for the Processing framework. weight, cgf link : fire-smoke-detect-yolov4/README\_EN.md at master · gengyanlei/fire-smoke-detect-…

---

## [Web cam capture Win 11 vs Mac OS](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 7\
**Last updated:** [September 29, 2022, 11:09am UTC](https://discourse.processing.org/t/web-cam-capture-win-11-vs-mac-os/33640 "2022-09-29T11:09:12Z")

</div>

Hi on a Win11 machine, to capture a web cam, it seems I need the following line of code: cam = new Capture(this, "pipeline:autovideosrc"); cam.start(); as the following one returns an error that there is not a …

---

## [Process managers - How to run an exported sketch for ever](https://discourse.processing.org/t/process-managers-how-to-run-an-exported-sketch-for-ever/39004)

<div class="topic-metadata">

**Author:** [@renaudfv](https://discourse.processing.org/u/renaudfv)\
**Replies:** 1\
**Last updated:** [September 29, 2022, 7:51am UTC](https://discourse.processing.org/t/process-managers-how-to-run-an-exported-sketch-for-ever/39004 "2022-09-29T07:51:57Z")

</div>

Hello, Processing community! I have been trying to set up process managers for exported Processing sketches on Windows. Since the sketches will be used on permanent installs I have the following requirements for their e…

---

## [Library suggestions for making text look nice](https://discourse.processing.org/t/library-suggestions-for-making-text-look-nice/39007)

<div class="topic-metadata">

**Author:** [@dorad](https://discourse.processing.org/u/dorad)\
**Replies:** 2\
**Last updated:** [September 29, 2022, 1:09am UTC](https://discourse.processing.org/t/library-suggestions-for-making-text-look-nice/39007 "2022-09-29T01:09:00Z")

</div>

I’m making a program that will have lots of images and text embedded, and I was wondering if there are any libraries anyone could suggest to make paragraphs of text display as nicely as possible. I know how to use text w…

---

## [Trying to create a gradient color of orange](https://discourse.processing.org/t/trying-to-create-a-gradient-color-of-orange/38996)

<div class="topic-metadata">

**Author:** [@Shu](https://discourse.processing.org/u/Shu)\
**Replies:** 4\
**Last updated:** [September 28, 2022, 1:04am UTC](https://discourse.processing.org/t/trying-to-create-a-gradient-color-of-orange/38996 "2022-09-28T01:04:52Z")

</div>

color c; void setup() { size(1000, 1000); c = color(237, 115, 12); strokeWeight(4); rectMode(CENTER); noLoop(); } void draw() { background(220); for(int i=0;i\<=20;i++){ circle(500,500,300-i\*15); } f…

---

## [G4P: how to prevent ESC-Key](https://discourse.processing.org/t/g4p-how-to-prevent-esc-key/3240)

<div class="topic-metadata">

**Author:** [@MxFxM](https://discourse.processing.org/u/MxFxM)\
**Replies:** 4\
**Last updated:** [September 28, 2022, 12:23am UTC](https://discourse.processing.org/t/g4p-how-to-prevent-esc-key/3240 "2022-09-28T00:23:55Z")

</div>

Hi, I recently discovered that you can stop the ESC-key from closing your program with this code: void keyPressed() { if (key == ESC) { key = 0; } } However when I open a second window with G4P this only works…

---

## [Translate, Scale, or Random is causing a display hiccup](https://discourse.processing.org/t/translate-scale-or-random-is-causing-a-display-hiccup/38988)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 10\
**Last updated:** [September 27, 2022, 6:35pm UTC](https://discourse.processing.org/t/translate-scale-or-random-is-causing-a-display-hiccup/38988 "2022-09-27T18:35:47Z")

</div>

Hello!! This is probably a simple oversight but I’m trying to flip the orientation of random blocks in a grid. I have put the random number generator in all possible locations – above setup, in setup, in draw, in neste…

---

## [Cp5 library enables and disables textfields](https://discourse.processing.org/t/cp5-library-enables-and-disables-textfields/38979)

<div class="topic-metadata">

**Author:** [@maro](https://discourse.processing.org/u/maro)\
**Replies:** 6\
**Last updated:** [September 27, 2022, 3:45pm UTC](https://discourse.processing.org/t/cp5-library-enables-and-disables-textfields/38979 "2022-09-27T15:45:30Z")

</div>

I am trying to make a textfield with Cp5. I want the user to be able to edit the textfield, only when a button is pressed. If the button is unpressed the user cannot edit the textfield. Is there a method in Textfield th…

---

## [Strange error message with mousePressed() -- Processing 4.0b8, macOS 11.4](https://discourse.processing.org/t/strange-error-message-with-mousepressed-processing-4-0b8-macos-11-4/38984)

<div class="topic-metadata">

**Author:** [@sophist42](https://discourse.processing.org/u/sophist42)\
**Replies:** 0\
**Last updated:** [September 26, 2022, 6:59pm UTC](https://discourse.processing.org/t/strange-error-message-with-mousepressed-processing-4-0b8-macos-11-4/38984 "2022-09-26T18:59:39Z")

</div>

Sorry if this question has already been asked – my programs are working just fine but I get a strange error message like this every time I try to press the mouse button in my sketch window. Currently running Processing 4…

---

## [Heroic Robotics PixelPusher](https://discourse.processing.org/t/heroic-robotics-pixelpusher/17720)

<div class="topic-metadata">

**Author:** [@tmasylum](https://discourse.processing.org/u/tmasylum)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 4:23pm UTC](https://discourse.processing.org/t/heroic-robotics-pixelpusher/17720 "2022-09-26T16:23:49Z")

</div>

Hi all, I understand this is probably a question for a PixelPusher Forum but there doesn’t seem to be one I can access. So I’ve purchased a bunch of PixelPushers for a project but I’m struggling to get them to work with…

---

## [Watchdog timer possibility? serial COM is broken and reconnected](https://discourse.processing.org/t/watchdog-timer-possibility-serial-com-is-broken-and-reconnected/29037)

<div class="topic-metadata">

**Author:** [@zumdar](https://discourse.processing.org/u/zumdar)\
**Replies:** 7\
**Last updated:** [September 26, 2022, 1:27pm UTC](https://discourse.processing.org/t/watchdog-timer-possibility-serial-com-is-broken-and-reconnected/29037 "2022-09-26T13:27:36Z")

</div>

hey yall! is there any kind of watchdog timer kind of thing in processing that will restart your code from the beginning? like rerun setup and everything if the serial communication isnt happening? I am making a kiosk …

---

## [Modbus IEE754 Float convert from Arduino](https://discourse.processing.org/t/modbus-iee754-float-convert-from-arduino/38971)

<div class="topic-metadata">

**Author:** [@Holle](https://discourse.processing.org/u/Holle)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 7:34am UTC](https://discourse.processing.org/t/modbus-iee754-float-convert-from-arduino/38971 "2022-09-26T07:34:40Z")

</div>

Hello, I’m new here. I am trying to read an Eastron smart meter with Modbus IEE754 I sent the modbus string to Smartmeter and received the bytes. But this is the IEE75 with floating point. I found an Arduino code tha…

---

## [Get the current instance of PApplet from a library](https://discourse.processing.org/t/get-the-current-instance-of-papplet-from-a-library/36925)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 27\
**Last updated:** [September 25, 2022, 7:36pm UTC](https://discourse.processing.org/t/get-the-current-instance-of-papplet-from-a-library/36925 "2022-09-25T19:36:04Z")

</div>

In the library I’m currently writing I have to give my classes the current instance of the PApplet to e.g. register Methods. If you use the Library you therefore have to call a lot of methods just with this from the sket…

---

## [Animated gradient blur](https://discourse.processing.org/t/animated-gradient-blur/38956)

<div class="topic-metadata">

**Author:** [@dragodiv](https://discourse.processing.org/u/dragodiv)\
**Replies:** 6\
**Last updated:** [September 24, 2022, 7:00pm UTC](https://discourse.processing.org/t/animated-gradient-blur/38956 "2022-09-24T19:00:43Z")

</div>

Hi How can we do the below animated gradient blur?? how can we get the gradient effect animated. Any pointers will be of great help.

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

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