# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=138

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

**Page:** 139

---

## [How to manipulate and save data in shaderbuffers](https://discourse.processing.org/t/how-to-manipulate-and-save-data-in-shaderbuffers/36766)

<div class="topic-metadata">

**Author:** [@Amirk](https://discourse.processing.org/u/Amirk)\
**Replies:** 0\
**Last updated:** [May 8, 2022, 5:42am UTC](https://discourse.processing.org/t/how-to-manipulate-and-save-data-in-shaderbuffers/36766 "2022-05-08T05:42:04Z")

</div>

I can access bufferdata with a shader, and use it within the shader code, but how could I save updated data into back the same buffer with the shader? Im trying to buld some Lattice Boltzmann simulations in this manner: …

---

## [Processing not running my Python script and now won't load native code](https://discourse.processing.org/t/processing-not-running-my-python-script-and-now-wont-load-native-code/32323)

<div class="topic-metadata">

**Author:** [@jenniferalmarine](https://discourse.processing.org/u/jenniferalmarine)\
**Replies:** 4\
**Last updated:** [May 7, 2022, 10:15pm UTC](https://discourse.processing.org/t/processing-not-running-my-python-script-and-now-wont-load-native-code/32323 "2022-05-07T22:15:18Z")

</div>

I’m new to Processing (and have limited experience with Python in general). I’m trying to run my Python script and I’m getting this error message in the console: Hmm. Can’t load native code to bring window to front usi…

---

## [Countdown timer is not working](https://discourse.processing.org/t/countdown-timer-is-not-working/36761)

<div class="topic-metadata">

**Author:** [@snakey](https://discourse.processing.org/u/snakey)\
**Replies:** 1\
**Last updated:** [May 7, 2022, 9:31pm UTC](https://discourse.processing.org/t/countdown-timer-is-not-working/36761 "2022-05-07T21:31:55Z")

</div>

\[Original post\] Countdown timer in python I’ve been using this timer in my game for a while, but I’ve just noticed a problem. The timer utilises second(), once the seconds on my clock go past 59 and turn to 0, the time…

---

## [Can Processing Objects/Classes be used in pure Java Graphics2D environment? (with/without extending the Applet)](https://discourse.processing.org/t/can-processing-objects-classes-be-used-in-pure-java-graphics2d-environment-with-without-extending-the-applet/36730)

<div class="topic-metadata">

**Author:** [@istinn](https://discourse.processing.org/u/istinn)\
**Replies:** 4\
**Last updated:** [May 7, 2022, 5:39pm UTC](https://discourse.processing.org/t/can-processing-objects-classes-be-used-in-pure-java-graphics2d-environment-with-without-extending-the-applet/36730 "2022-05-07T17:39:51Z")

</div>

Hi, are there any examples that use (import) processing classes in combination with the classic pure Graphics2D environment outside Processing? I mean not just extending the Processing Applet (the new window), but exten…

---

## [Feedback for utility-library](https://discourse.processing.org/t/feedback-for-utility-library/36762)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 0\
**Last updated:** [May 7, 2022, 5:02pm UTC](https://discourse.processing.org/t/feedback-for-utility-library/36762 "2022-05-07T17:02:17Z")

</div>

I have written a utility library and uploaded it on GitHub. Before I’m making any steps towards publishing it I would try to get some feedback. The library can be downloaded with the link: Just put the folder inside t…

---

## [Processing Python mode skipping error messages and running bad code](https://discourse.processing.org/t/processing-python-mode-skipping-error-messages-and-running-bad-code/36746)

<div class="topic-metadata">

**Author:** [@tdwheeler](https://discourse.processing.org/u/tdwheeler)\
**Replies:** 5\
**Last updated:** [May 7, 2022, 2:37pm UTC](https://discourse.processing.org/t/processing-python-mode-skipping-error-messages-and-running-bad-code/36746 "2022-05-07T14:37:02Z")

</div>

I’m noticing that processing in Python mode is not returning a lot of errors to the console. For instance this: def draw(): number = 12 for i in 10/number: print("this should be an error?") should give…

---

## [FSR pressure matrix](https://discourse.processing.org/t/fsr-pressure-matrix/36582)

<div class="topic-metadata">

**Author:** [@GalA](https://discourse.processing.org/u/GalA)\
**Replies:** 8\
**Last updated:** [May 7, 2022, 11:52am UTC](https://discourse.processing.org/t/fsr-pressure-matrix/36582 "2022-05-07T11:52:24Z")

</div>

Hi all, I have a project that I need to manufacture a chair that prevent pressure sores using fsr sensors The seat will have 9 fsr sensors and the backrest will have 4 more sensors. The sensors are connected to Arduin…

---

## ["the function substring(int) does not exist"](https://discourse.processing.org/t/the-function-substring-int-does-not-exist/36757)

<div class="topic-metadata">

**Author:** [@AmberGoop](https://discourse.processing.org/u/AmberGoop)\
**Replies:** 3\
**Last updated:** [May 7, 2022, 10:50am UTC](https://discourse.processing.org/t/the-function-substring-int-does-not-exist/36757 "2022-05-07T10:50:41Z")

</div>

i’m having a peculiar issue here - and it’s in the title. i’m trying to use substring() to cut the first chunk of a long string off, but processing (4.0b2) is telling me that “The function substring(int) does not exist.…

---

## [Object-oriented theory doubt. sin() function, oscillation](https://discourse.processing.org/t/object-oriented-theory-doubt-sin-function-oscillation/36751)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 8:06pm UTC](https://discourse.processing.org/t/object-oriented-theory-doubt-sin-function-oscillation/36751 "2022-05-06T20:06:14Z")

</div>

Hi all, My understanding of OOP is that in order to create a Class, you need to define 1) variables, 2) constructor and 3) methods. In the example below though, variables x and theta are 1) defined, their values assigne…

---

## [Logic on making a circle disappear when clicked and drawing another circle at the same time](https://discourse.processing.org/t/logic-on-making-a-circle-disappear-when-clicked-and-drawing-another-circle-at-the-same-time/35066)

<div class="topic-metadata">

**Author:** [@Timo](https://discourse.processing.org/u/Timo)\
**Replies:** 45\
**Last updated:** [May 6, 2022, 2:17pm UTC](https://discourse.processing.org/t/logic-on-making-a-circle-disappear-when-clicked-and-drawing-another-circle-at-the-same-time/35066 "2022-05-06T14:17:00Z")

</div>

Hello, I am currently struggling the way forward regarding the following On a mouse click inside a given circle the circle disappears At the same time another is drawn on the canvas .The same process repeats, that …

---

## [Processing 3.5.4 not opening](https://discourse.processing.org/t/processing-3-5-4-not-opening/28742)

<div class="topic-metadata">

**Author:** [@somenumber](https://discourse.processing.org/u/somenumber)\
**Replies:** 9\
**Last updated:** [May 6, 2022, 11:27am UTC](https://discourse.processing.org/t/processing-3-5-4-not-opening/28742 "2022-05-06T11:27:49Z")

</div>

I just downloaded Processing again and wanted to launch some of my old programs I coded together with CodingTrain. Whenever I try to open Processing ,or any file related to it, nothing happens (“processing.exe” shows up …

---

## [Please tell me how to save the Processing file as PNG](https://discourse.processing.org/t/please-tell-me-how-to-save-the-processing-file-as-png/36741)

<div class="topic-metadata">

**Author:** [@alalal](https://discourse.processing.org/u/alalal)\
**Replies:** 1\
**Last updated:** [May 6, 2022, 5:04am UTC](https://discourse.processing.org/t/please-tell-me-how-to-save-the-processing-file-as-png/36741 "2022-05-06T05:04:56Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Sorry, this problem may be a little stupid. I can’t find very detailed steps on the Internet. I tried a code, but I don’t know why it doesn’t wo…

---

## [Map one region to another](https://discourse.processing.org/t/map-one-region-to-another/36720)

<div class="topic-metadata">

**Author:** [@guille](https://discourse.processing.org/u/guille)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 10:37pm UTC](https://discourse.processing.org/t/map-one-region-to-another/36720 "2022-05-05T22:37:26Z")

</div>

I am working on a sketch to get Pythagorean dissections from Pythagorean tilings (here). I am having a hard time trying to rotate the region in the black square so that it appears with vertical/horizontal sides (some of …

---

## [Drawing many image thumbnails in expanding circle](https://discourse.processing.org/t/drawing-many-image-thumbnails-in-expanding-circle/36718)

<div class="topic-metadata">

**Author:** [@sleepythief](https://discourse.processing.org/u/sleepythief)\
**Replies:** 4\
**Last updated:** [May 5, 2022, 7:03pm UTC](https://discourse.processing.org/t/drawing-many-image-thumbnails-in-expanding-circle/36718 "2022-05-05T19:03:57Z")

</div>

I have loaded array of PImages (2,000 20x20 jpgs) PImage\[\] images; That I wish to arrange in a circle manner from the center of the display. I can do this easily in a grid with a column, row nested for loop, however m…

---

## [P5.js or P5 for an interactive audiovisual performance?](https://discourse.processing.org/t/p5-js-or-p5-for-an-interactive-audiovisual-performance/36734)

<div class="topic-metadata">

**Author:** [@nint](https://discourse.processing.org/u/nint)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 5:56pm UTC](https://discourse.processing.org/t/p5-js-or-p5-for-an-interactive-audiovisual-performance/36734 "2022-05-05T17:56:45Z")

</div>

Hi! I’m working for an interactive audiovisual performance in realtime (~70-80 min) where, based from audio analysis (mainly FFT) I will generate movements for metaball rendering. For instance he metaball rendering is …

---

## [PFront results gazillion amount of cache file, how to avoid it?](https://discourse.processing.org/t/pfront-results-gazillion-amount-of-cache-file-how-to-avoid-it/36737)

<div class="topic-metadata">

**Author:** [@psamead](https://discourse.processing.org/u/psamead)\
**Replies:** 2\
**Last updated:** [May 5, 2022, 4:27pm UTC](https://discourse.processing.org/t/pfront-results-gazillion-amount-of-cache-file-how-to-avoid-it/36737 "2022-05-05T16:27:56Z")

</div>

Hi my friends, I am trying to convert the guest tutorial matrix rain from coding train to processing version. But I found that the code will result gazillion amount of cache file to my disk, maybe because I am using PFo…

---

## [Files in data folder not found by IDE](https://discourse.processing.org/t/files-in-data-folder-not-found-by-ide/36736)

<div class="topic-metadata">

**Author:** [@mv511](https://discourse.processing.org/u/mv511)\
**Replies:** 4\
**Last updated:** [May 5, 2022, 3:45pm UTC](https://discourse.processing.org/t/files-in-data-folder-not-found-by-ide/36736 "2022-05-05T15:45:55Z")

</div>

Guys, I currently have three files in my data folder inside the sketch’s own folder. One file, test.db, a file I use with BezierSQL, shows “true” when I run System.out.println(new java.io.File(“test.db”).exists()); Wi…

---

## [P5 sound - connecting filters in series](https://discourse.processing.org/t/p5-sound-connecting-filters-in-series/36728)

<div class="topic-metadata">

**Author:** [@spurge](https://discourse.processing.org/u/spurge)\
**Replies:** 0\
**Last updated:** [May 5, 2022, 11:05am UTC](https://discourse.processing.org/t/p5-sound-connecting-filters-in-series/36728 "2022-05-05T11:05:19Z")

</div>

Hello, I’m a beginner with a question regarding p5 sound. I’m looking for a proper way to cascade filters, that is connecting them in series. For now, I’m using a lowshelf and a highshelf filter. In the example code, r…

---

## [How to prevent lock screen (disable standby button)](https://discourse.processing.org/t/how-to-prevent-lock-screen-disable-standby-button/33570)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 6:22am UTC](https://discourse.processing.org/t/how-to-prevent-lock-screen-disable-standby-button/33570 "2022-05-05T06:22:44Z")

</div>

I’m using Processing 3.5.4 in Android mode. I want the screen always on while my app is running, i.e. disable the phone power button to avoid accidentally locking the screen. How can I do that?

---

## [Rotating player to always face the direction of the cursor (python)](https://discourse.processing.org/t/rotating-player-to-always-face-the-direction-of-the-cursor-python/36675)

<div class="topic-metadata">

**Author:** [@adora](https://discourse.processing.org/u/adora)\
**Replies:** 2\
**Last updated:** [May 4, 2022, 9:32pm UTC](https://discourse.processing.org/t/rotating-player-to-always-face-the-direction-of-the-cursor-python/36675 "2022-05-04T21:32:26Z")

</div>

So in my game, I want the player character to always look in the direction of the cursor. Here is my relevant code: def setup(): size(1440, 780) playerX = width / 2 playerY = height / 2 playerSpeed = 0.05 def…

---

## [How do I slowly layer photos to appear on top of eachother?](https://discourse.processing.org/t/how-do-i-slowly-layer-photos-to-appear-on-top-of-eachother/36698)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 6\
**Last updated:** [May 4, 2022, 4:41pm UTC](https://discourse.processing.org/t/how-do-i-slowly-layer-photos-to-appear-on-top-of-eachother/36698 "2022-05-04T16:41:23Z")

</div>

Hello! I am trying to work out if there is a simple way to gradually fade photos on top of eachother? Basically, to show one image, which slowly fades in to the next, which slowly fades in to the next, etc. I’ve been p…

---

## [Processing 4 crash issue](https://discourse.processing.org/t/processing-4-crash-issue/36706)

<div class="topic-metadata">

**Author:** [@avong](https://discourse.processing.org/u/avong)\
**Replies:** 3\
**Last updated:** [May 4, 2022, 12:09pm UTC](https://discourse.processing.org/t/processing-4-crash-issue/36706 "2022-05-04T12:09:29Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I used Processing 4 in android mode to develop application. I stopped for some time, as at last before I stopped. I application compiling and lo…

---

## [Cannot load .dylib in Processing 4?](https://discourse.processing.org/t/cannot-load-dylib-in-processing-4/36692)

<div class="topic-metadata">

**Author:** [@bananana](https://discourse.processing.org/u/bananana)\
**Replies:** 1\
**Last updated:** [May 4, 2022, 7:01am UTC](https://discourse.processing.org/t/cannot-load-dylib-in-processing-4/36692 "2022-05-04T07:01:00Z")

</div>

I made a library that loads a .dylib file and calls some functions from it. Since the upgrade to Processing 4, the library can’t find the dylib and throws an error when trying to load it: UnsatisfiedLinkError: Unable to…

---

## [Printing a Vector before and after changing it produces unexpected results](https://discourse.processing.org/t/printing-a-vector-before-and-after-changing-it-produces-unexpected-results/32111)

<div class="topic-metadata">

**Author:** [@norm\_krumpe](https://discourse.processing.org/u/norm_krumpe)\
**Replies:** 16\
**Last updated:** [May 4, 2022, 6:33am UTC](https://discourse.processing.org/t/printing-a-vector-before-and-after-changing-it-produces-unexpected-results/32111 "2022-05-04T06:33:36Z")

</div>

I’m putting together a short exercise for my students on p5.Vector and its operations. The output of the code below surprises me, and I was hoping someone could explain what’s going on. I’ve been programming in Processin…

---

## [Ways to convert drawn curve to bezier points?](https://discourse.processing.org/t/ways-to-convert-drawn-curve-to-bezier-points/36695)

<div class="topic-metadata">

**Author:** [@jessica.mingyu](https://discourse.processing.org/u/jessica.mingyu)\
**Replies:** 1\
**Last updated:** [May 3, 2022, 9:36pm UTC](https://discourse.processing.org/t/ways-to-convert-drawn-curve-to-bezier-points/36695 "2022-05-03T21:36:44Z")

</div>

Is there a site/toolkit where I can draw out a bezier curve and it would output the vertices of the control/anchor points for me? Thanks! I tried googling with “convert curve to bezier” “bezier automate”, but none showe…

---

## [Export Application video not working](https://discourse.processing.org/t/export-application-video-not-working/30363)

<div class="topic-metadata">

**Author:** [@abatllei](https://discourse.processing.org/u/abatllei)\
**Replies:** 17\
**Last updated:** [May 3, 2022, 8:49pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363 "2022-05-03T20:49:34Z")

</div>

So I have to play two videos on my sketch and when I run it on Processing it works well, but when I export the application, it doesn’t work at all. Even the program seems not to be running. Grey screen. I’m on OSX 10.14…

---

## [Uploading a file to the P5 Web Editor](https://discourse.processing.org/t/uploading-a-file-to-the-p5-web-editor/36700)

<div class="topic-metadata">

**Author:** [@NationalRex22](https://discourse.processing.org/u/NationalRex22)\
**Replies:** 1\
**Last updated:** [May 3, 2022, 8:16pm UTC](https://discourse.processing.org/t/uploading-a-file-to-the-p5-web-editor/36700 "2022-05-03T20:16:44Z")

</div>

Hello, How do I upload a file or a picture while I’m working in your p5.js Web Editor?

---

## [Including a library?](https://discourse.processing.org/t/including-a-library/36701)

<div class="topic-metadata">

**Author:** [@NationalRex22](https://discourse.processing.org/u/NationalRex22)\
**Replies:** 0\
**Last updated:** [May 3, 2022, 6:49pm UTC](https://discourse.processing.org/t/including-a-library/36701 "2022-05-03T18:49:55Z")

</div>

Hello, How do I add a library with the code I’m working with on the p5.js Web Editor?

---

## [Box just going off screen and then disappears. Please help](https://discourse.processing.org/t/box-just-going-off-screen-and-then-disappears-please-help/36697)

<div class="topic-metadata">

**Author:** [@king\_B99](https://discourse.processing.org/u/king_B99)\
**Replies:** 1\
**Last updated:** [May 3, 2022, 6:46pm UTC](https://discourse.processing.org/t/box-just-going-off-screen-and-then-disappears-please-help/36697 "2022-05-03T18:46:47Z")

</div>

So i have a box that goes across the screen and is is supposed to loop but it just does it once Broken Partif (boxX+10 ==(width)) { boxX=width-width+1; } boxX = boxX+10; rect(boxX, boxY, 50, 50); } Full Codeint car…

---

## [Asking for help from P5 Educators](https://discourse.processing.org/t/asking-for-help-from-p5-educators/36699)

<div class="topic-metadata">

**Author:** [@akshatnema](https://discourse.processing.org/u/akshatnema)\
**Replies:** 0\
**Last updated:** [May 3, 2022, 5:41pm UTC](https://discourse.processing.org/t/asking-for-help-from-p5-educators/36699 "2022-05-03T17:41:20Z")

</div>

Hey readers, I want to contact and communicate with P5 educators in order to seek help and guidance for my GSoC Project idea “Reference Code Improvements”. This Project idea deals with improving the current Reference pa…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=137)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=139)
