# Latest

**URL:** https://discourse.processing.org/latest.md?page=111

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

**Page:** 112

---

## [Querry about command line tool](https://discourse.processing.org/t/querry-about-command-line-tool/39101)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 1\
**Last updated:** [October 5, 2022, 3:13pm UTC](https://discourse.processing.org/t/querry-about-command-line-tool/39101 "2022-10-05T15:13:44Z")

</div>

I am using the CLI version: processing-java to build, run and export my project. But I have it working with absolute paths. That is sorta annoying because I work on 2 different PCs and I have to change the paths continou…

---

## [Can't update library - and Processing hangs](https://discourse.processing.org/t/cant-update-library-and-processing-hangs/39100)

<div class="topic-metadata">

**Author:** [@everythingability](https://discourse.processing.org/u/everythingability)\
**Replies:** 0\
**Last updated:** [October 5, 2022, 2:36pm UTC](https://discourse.processing.org/t/cant-update-library-and-processing-hangs/39100 "2022-10-05T14:36:13Z")

</div>

I’m attempting to use the Contribution Manager window to update my OpenCV library and I get this… It sort of stalls… Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException: Cannot invoke “javax.swing.JPr…

---

## [How to copy clipped rect of an image to another filename?](https://discourse.processing.org/t/how-to-copy-clipped-rect-of-an-image-to-another-filename/39054)

<div class="topic-metadata">

**Author:** [@bhaskar1955](https://discourse.processing.org/u/bhaskar1955)\
**Replies:** 8\
**Last updated:** [October 5, 2022, 6:10am UTC](https://discourse.processing.org/t/how-to-copy-clipped-rect-of-an-image-to-another-filename/39054 "2022-10-05T06:10:52Z")

</div>

\</\> button \* homework policy \* asking questions I think the topic name is self-explanatory. Please help me.

---

## [Draw function not working properly](https://discourse.processing.org/t/draw-function-not-working-properly/39086)

<div class="topic-metadata">

**Author:** [@Ben0981](https://discourse.processing.org/u/Ben0981)\
**Replies:** 4\
**Last updated:** [October 4, 2022, 7:36pm UTC](https://discourse.processing.org/t/draw-function-not-working-properly/39086 "2022-10-04T19:36:06Z")

</div>

Hey, so I am new to processing and am currently just trying to move 2 rectangles by a given velocity but whenever I try actually moving them nothing gets drawn at all but if I just keep them stationary they get drawn jus…

---

## [Why my draw() don't drawing continuously?](https://discourse.processing.org/t/why-my-draw-dont-drawing-continuously/39078)

<div class="topic-metadata">

**Author:** [@C2014](https://discourse.processing.org/u/C2014)\
**Replies:** 15\
**Last updated:** [October 4, 2022, 4:21pm UTC](https://discourse.processing.org/t/why-my-draw-dont-drawing-continuously/39078 "2022-10-04T16:21:17Z")

</div>

void setup () { size (842,480);frameRate(20);} float x = random (842); float y = random (480); float r = random (256); float g = random (256); float b = random (256); void draw () {loop ();fill (r,g,b);rect (x,y,x,y);}…

---

## [Responsive p5js - the Gpoint... :)](https://discourse.processing.org/t/responsive-p5js-the-gpoint/39079)

<div class="topic-metadata">

**Author:** [@vkbr](https://discourse.processing.org/u/vkbr)\
**Replies:** 2\
**Last updated:** [October 4, 2022, 3:22pm UTC](https://discourse.processing.org/t/responsive-p5js-the-gpoint/39079 "2022-10-04T15:22:23Z")

</div>

I’m always in big doubt when setting the canvas size in p5.js, what if is a phone or a tablet, what’s viewer screen? We’ll never know… So there is this thing, responsive design, and some other flavors (fluid design and o…

---

## [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…

---

## [Flipping book page effect on text](https://discourse.processing.org/t/flipping-book-page-effect-on-text/39059)

<div class="topic-metadata">

**Author:** [@fijthecreator](https://discourse.processing.org/u/fijthecreator)\
**Replies:** 2\
**Last updated:** [October 4, 2022, 12:25pm UTC](https://discourse.processing.org/t/flipping-book-page-effect-on-text/39059 "2022-10-04T12:25:36Z")

</div>

Hi Community, as I have already opened up a discussion about a separate project I am curious about the possibility to recreate this effect: 3d Shape fill connects to first vertex on P5.js webGL - Stack Overflow in p5.js. …

---

## [How to get the sketch title (or tab title) from within a sketch?](https://discourse.processing.org/t/how-to-get-the-sketch-title-or-tab-title-from-within-a-sketch/39057)

<div class="topic-metadata">

**Author:** [@paulwb](https://discourse.processing.org/u/paulwb)\
**Replies:** 1\
**Last updated:** [October 4, 2022, 8:06am UTC](https://discourse.processing.org/t/how-to-get-the-sketch-title-or-tab-title-from-within-a-sketch/39057 "2022-10-04T08:06:40Z")

</div>

I want to uniquely name the images I save from my sketch, so I can figure out what particular p5js sketch made what image. To do this, I need to determine the sketch name from within the sketch. I don’t want to type the…

---

## [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 …

---

## [Post can be deleted sorry!](https://discourse.processing.org/t/post-can-be-deleted-sorry/39047)

<div class="topic-metadata">

**Author:** [@Tilman](https://discourse.processing.org/u/Tilman)\
**Replies:** 0\
**Last updated:** [October 2, 2022, 5:22pm UTC](https://discourse.processing.org/t/post-can-be-deleted-sorry/39047 "2022-10-02T17:22:40Z")

</div>

please delete this post . thank you!

---

## [Python mode as default in IDE](https://discourse.processing.org/t/python-mode-as-default-in-ide/39009)

<div class="topic-metadata">

**Author:** [@kemelzaidan](https://discourse.processing.org/u/kemelzaidan)\
**Replies:** 2\
**Last updated:** [October 2, 2022, 8:19pm UTC](https://discourse.processing.org/t/python-mode-as-default-in-ide/39009 "2022-10-02T20:19:23Z")

</div>

Is there a way to start processing IDE in python mode as default? I tried changing the option in preference.txt from mode.last=processing.mode.java.JavaMode to mode.last=processing.mode.java.PythonMode but this didn’t wo…

---

## [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.

---

## [Processing + Python community visibility](https://discourse.processing.org/t/processing-python-community-visibility/38981)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 2\
**Last updated:** [October 1, 2022, 8:11pm UTC](https://discourse.processing.org/t/processing-python-community-visibility/38981 "2022-10-01T20:11:23Z")

</div>

Sometimes I feel like we are a bit invisible for the Processing Foundation. If you are into Twitter, check out this informal quiz here:

---

## [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…

[Previous page](https://discourse.processing.org/latest.md?page=110)

[Next page](https://discourse.processing.org/latest.md?page=112)
