# Latest

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

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

**Page:** 218

---

## [How can I continue or separate mousePressed?](https://discourse.processing.org/t/how-can-i-continue-or-separate-mousepressed/30509)

<div class="topic-metadata">

**Author:** [@tzmy](https://discourse.processing.org/u/tzmy)\
**Replies:** 3\
**Last updated:** [June 5, 2021, 1:30pm UTC](https://discourse.processing.org/t/how-can-i-continue-or-separate-mousepressed/30509 "2021-06-05T13:30:30Z")

</div>

I want to make a very simple screen-changing game with processing. I am a beginner in coding and processing, so I use mousePressed for screen changing. But I found that I can’t do some functions. How can I continue …

---

## [Finding the depth of the body with KinectPV2 library](https://discourse.processing.org/t/finding-the-depth-of-the-body-with-kinectpv2-library/30451)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 3\
**Last updated:** [June 5, 2021, 6:21am UTC](https://discourse.processing.org/t/finding-the-depth-of-the-body-with-kinectpv2-library/30451 "2021-06-05T06:21:14Z")

</div>

Can anyone help me with finding the depth of the body with KinectPV2? I mean I can track the body positions and I can track the depth data but I have no idea how to get the depth data of for example just the hands or ev…

---

## [Help with a hangman hangman game](https://discourse.processing.org/t/help-with-a-hangman-hangman-game/6481)

<div class="topic-metadata">

**Author:** [@thatone](https://discourse.processing.org/u/thatone)\
**Replies:** 6\
**Last updated:** [December 10, 2018, 8:51pm UTC](https://discourse.processing.org/t/help-with-a-hangman-hangman-game/6481 "2018-12-10T20:51:15Z")

</div>

Hello, I’m trying to make a hangman game, but I’m new to processing and a bit unsure on how to make it work. I would like to letters the array of words aren’t shown or something but when you press them it appears. I’ve…

---

## [Object-oriented programming, I need a description about how this code works](https://discourse.processing.org/t/object-oriented-programming-i-need-a-description-about-how-this-code-works/30498)

<div class="topic-metadata">

**Author:** [@UnderHok](https://discourse.processing.org/u/UnderHok)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 9:46pm UTC](https://discourse.processing.org/t/object-oriented-programming-i-need-a-description-about-how-this-code-works/30498 "2021-06-04T21:46:17Z")

</div>

please format code with \</\> button \* homework policy \* asking questions help \*\*I need a description about how this code

---

## [Why constrain doesnt work](https://discourse.processing.org/t/why-constrain-doesnt-work/30489)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 8:27pm UTC](https://discourse.processing.org/t/why-constrain-doesnt-work/30489 "2021-06-04T20:27:31Z")

</div>

int cols, rows; int w = 20; ArrayList\<Cell\> grid = new ArrayList\<Cell\>(); ArrayList\<Cell\> stack = new ArrayList\<Cell\>(); Cell current; Ball begain; void setup() { size(820, 820,P3D); camera(width/2+100,height,7…

---

## [Handy library get all lines coordinates of a shape possible?](https://discourse.processing.org/t/handy-library-get-all-lines-coordinates-of-a-shape-possible/30497)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 0\
**Last updated:** [June 4, 2021, 6:55pm UTC](https://discourse.processing.org/t/handy-library-get-all-lines-coordinates-of-a-shape-possible/30497 "2021-06-04T18:55:20Z")

</div>

Hallo guys. Is there any way to get all the hatching lines coordinates from a shape? for example in the following sketch get all the hatching lines of the triangle and the ellipse. I need the coordinates to export as …

---

## [Loop animated .gif in python mode](https://discourse.processing.org/t/loop-animated-gif-in-python-mode/30479)

<div class="topic-metadata">

**Author:** [@JSGauthier](https://discourse.processing.org/u/JSGauthier)\
**Replies:** 2\
**Last updated:** [June 3, 2021, 9:12pm UTC](https://discourse.processing.org/t/loop-animated-gif-in-python-mode/30479 "2021-06-03T21:12:32Z")

</div>

Hello, Is there a way to sequence all frames from an animated .gif (in a loop) in python mode? I would like to run my .gifs without having to load each frame as a seperate file in the /data folder. Thanks. please fo…

---

## [Large windows temp folder due to builds](https://discourse.processing.org/t/large-windows-temp-folder-due-to-builds/30484)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 4:35pm UTC](https://discourse.processing.org/t/large-windows-temp-folder-due-to-builds/30484 "2021-06-04T16:35:25Z")

</div>

I’ve noticed that my temp folder is ballooning in size as I build applications to android, the other day I had no space left on my hdd and had to resort to a fresh install as it was quicker than asking windows to delete …

---

## [Questions about interfaces and PApplet](https://discourse.processing.org/t/questions-about-interfaces-and-papplet/30443)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 10:53am UTC](https://discourse.processing.org/t/questions-about-interfaces-and-papplet/30443 "2021-06-04T10:53:39Z")

</div>

I’m just contemplating using interfaces to help with themes in my library. I’ve never used one before and am unsure what the best way to achieve this. The main issue is that processing colors are implemented using the c…

---

## [Switch between floors in house layout by clicking button](https://discourse.processing.org/t/switch-between-floors-in-house-layout-by-clicking-button/30475)

<div class="topic-metadata">

**Author:** [@lightbombs](https://discourse.processing.org/u/lightbombs)\
**Replies:** 9\
**Last updated:** [June 4, 2021, 9:00am UTC](https://discourse.processing.org/t/switch-between-floors-in-house-layout-by-clicking-button/30475 "2021-06-04T09:00:18Z")

</div>

This is the house layout of ground floor and first floor, the lights, radiators and windows turn on and off by clicking on them. What i want to do is, when i click top left the OG button it will show the first floor and…

---

## [Custom contains method for shapes](https://discourse.processing.org/t/custom-contains-method-for-shapes/30424)

<div class="topic-metadata">

**Author:** [@Frinkel](https://discourse.processing.org/u/Frinkel)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 8:03am UTC](https://discourse.processing.org/t/custom-contains-method-for-shapes/30424 "2021-06-04T08:03:22Z")

</div>

Hi, I’m currently trying to create a “custom” version of the contains method, that is implemented for shapes of the type path. The main reason I’m not using the path shape is, that I would like to map a texture onto my …

---

## [Maze little problem](https://discourse.processing.org/t/maze-little-problem/30463)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 3\
**Last updated:** [June 4, 2021, 5:18am UTC](https://discourse.processing.org/t/maze-little-problem/30463 "2021-06-04T05:18:49Z")

</div>

int cols, rows; int w = 20; ArrayList\<Cell\> grid = new ArrayList\<Cell\>(); ArrayList\<Cell\> stack = new ArrayList\<Cell\>(); Cell current; void setup() { size(820, 820); cols = floor(width/w); rows = floor(heigh…

---

## [Processing + Arduino Force Sensor Visualizing](https://discourse.processing.org/t/processing-arduino-force-sensor-visualizing/30459)

<div class="topic-metadata">

**Author:** [@frzsl](https://discourse.processing.org/u/frzsl)\
**Replies:** 2\
**Last updated:** [June 4, 2021, 2:29am UTC](https://discourse.processing.org/t/processing-arduino-force-sensor-visualizing/30459 "2021-06-04T02:29:16Z")

</div>

Hi everyone! I’m working with a FSR Matrix Array from Sensitronics. I’m trying to make a basic visualizer that displays a black 16x16 grid. When force is detected on the MatrixArray, we’ll shade the corresponding grid ce…

---

## [Using gifAnimation library on Python Mode](https://discourse.processing.org/t/using-gifanimation-library-on-python-mode/24577)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 2:21am UTC](https://discourse.processing.org/t/using-gifanimation-library-on-python-mode/24577 "2021-06-04T02:21:56Z")

</div>

I have answered this today on Stack Overflow and I think it might be useful for someone: Just to be clear about libraries with Processing Python mode: You can use “pure Python” libraries; You can’t use Python librarie…

---

## [Save String to .txt file when the program is a standalone application](https://discourse.processing.org/t/save-string-to-txt-file-when-the-program-is-a-standalone-application/26898)

<div class="topic-metadata">

**Author:** [@THWU0412](https://discourse.processing.org/u/THWU0412)\
**Replies:** 5\
**Last updated:** [June 3, 2021, 11:15pm UTC](https://discourse.processing.org/t/save-string-to-txt-file-when-the-program-is-a-standalone-application/26898 "2021-06-03T23:15:08Z")

</div>

My program loads a .txt file via the loadStrings() command. Then it creates a new String and saves it to the .txt file via the saveStrings() command. My problem is that when i create a standalone application it creates…

---

## [P5 Layout Questions](https://discourse.processing.org/t/p5-layout-questions/30453)

<div class="topic-metadata">

**Author:** [@karenmani](https://discourse.processing.org/u/karenmani)\
**Replies:** 5\
**Last updated:** [June 3, 2021, 7:30pm UTC](https://discourse.processing.org/t/p5-layout-questions/30453 "2021-06-03T19:30:36Z")

</div>

Hi, I’m working with a p5 video player and I’m not too familiar with CSS. I have a layout that’s consistent on Chrome and Firefox, but for some reason, it gets messed up in Safari and does not line up the way my button …

---

## [Blurring when the canvas is resized](https://discourse.processing.org/t/blurring-when-the-canvas-is-resized/30473)

<div class="topic-metadata">

**Author:** [@uniqueNoSpaces](https://discourse.processing.org/u/uniqueNoSpaces)\
**Replies:** 1\
**Last updated:** [June 3, 2021, 4:53pm UTC](https://discourse.processing.org/t/blurring-when-the-canvas-is-resized/30473 "2021-06-03T16:53:02Z")

</div>

Hello i’m working on a project where the canvas would be resized constantly depending on what the user is drawing. but i have a problem where the more i use resizeCanvas function the drawings on the canvas gets more and…

---

## [Processing4 : Exported apps on Mac fail to launch because of Java errors](https://discourse.processing.org/t/processing4-exported-apps-on-mac-fail-to-launch-because-of-java-errors/30476)

<div class="topic-metadata">

**Author:** [@schmittmachine](https://discourse.processing.org/u/schmittmachine)\
**Replies:** 1\
**Last updated:** [June 3, 2021, 4:17pm UTC](https://discourse.processing.org/t/processing4-exported-apps-on-mac-fail-to-launch-because-of-java-errors/30476 "2021-06-03T16:17:46Z")

</div>

Using Processing4 (v4.0a3), I have trouble running exported applications on Mac (Catalina). It worked fine with Processing3. When I launch the exported app, it just exits right away. When I try to launch the app using…

---

## [Suggestions for Randomizing Placement and Colors](https://discourse.processing.org/t/suggestions-for-randomizing-placement-and-colors/30449)

<div class="topic-metadata">

**Author:** [@cottonchipper](https://discourse.processing.org/u/cottonchipper)\
**Replies:** 3\
**Last updated:** [June 3, 2021, 4:14pm UTC](https://discourse.processing.org/t/suggestions-for-randomizing-placement-and-colors/30449 "2021-06-03T16:14:44Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I’m working on a sketch that has 16 ellipses as shown in the image below. Each ellipse is filled with a different color and then various lin…

---

## [A little problem with my code](https://discourse.processing.org/t/a-little-problem-with-my-code/30467)

<div class="topic-metadata">

**Author:** [@ilob](https://discourse.processing.org/u/ilob)\
**Replies:** 2\
**Last updated:** [June 3, 2021, 10:36am UTC](https://discourse.processing.org/t/a-little-problem-with-my-code/30467 "2021-06-03T10:36:17Z")

</div>

I have a little problem with my code, I am trying to make a project of a scara that makes figures, the code seems to be finished, but when starting the program I get the only and simple errors that are these: The file “…

---

## [Locking the document in the safari browser](https://discourse.processing.org/t/locking-the-document-in-the-safari-browser/30122)

<div class="topic-metadata">

**Author:** [@Michal8705](https://discourse.processing.org/u/Michal8705)\
**Replies:** 3\
**Last updated:** [June 3, 2021, 10:02am UTC](https://discourse.processing.org/t/locking-the-document-in-the-safari-browser/30122 "2021-06-03T10:02:56Z")

</div>

Hi I ran into a problem in the simple code below, which I display on my iPhone iOS 13.7 https://editor.p5js.org/Michal8705/sketches/tjf-AEwVs When I open a window in chrome and try to lower the pages with a touch, the…

---

## [Override function from lib](https://discourse.processing.org/t/override-function-from-lib/30465)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [June 3, 2021, 5:48am UTC](https://discourse.processing.org/t/override-function-from-lib/30465 "2021-06-03T05:48:26Z")

</div>

Just finalising some code for the android filewriter/reader. I have implemented a textbox class which registers mouseEvent and keyEvent, to allow functionality by extending the keyboard class. Currently I have hardcode…

---

## [Squares and circles (grid) (recursion vs. nested for-loops)](https://discourse.processing.org/t/squares-and-circles-grid-recursion-vs-nested-for-loops/30433)

<div class="topic-metadata">

**Author:** [@goner88](https://discourse.processing.org/u/goner88)\
**Replies:** 15\
**Last updated:** [June 2, 2021, 10:43pm UTC](https://discourse.processing.org/t/squares-and-circles-grid-recursion-vs-nested-for-loops/30433 "2021-06-02T22:43:52Z")

</div>

Hey I want to create a window with squares that have circles inside of them on the whole window. anyone has done this before ? Should I use a recursive function here? Appreciate the help and thank you

---

## [Problems with Arduino communication and Processing](https://discourse.processing.org/t/problems-with-arduino-communication-and-processing/30448)

<div class="topic-metadata">

**Author:** [@mps96](https://discourse.processing.org/u/mps96)\
**Replies:** 1\
**Last updated:** [June 2, 2021, 6:56pm UTC](https://discourse.processing.org/t/problems-with-arduino-communication-and-processing/30448 "2021-06-02T18:56:12Z")

</div>

Hola, estoy comenzando con Processing y tengo algunos problemas para comunicarme con el puerto serie del Arduino. El proyecto consiste en la comunicación de dos Arduinos mediante la cual se manda una matriz de 3 datos. …

---

## [Processing to Blender to Inkscape to Axidraw: How To Remove Hidden 2D Lines](https://discourse.processing.org/t/processing-to-blender-to-inkscape-to-axidraw-how-to-remove-hidden-2d-lines/30450)

<div class="topic-metadata">

**Author:** [@eclipse](https://discourse.processing.org/u/eclipse)\
**Replies:** 1\
**Last updated:** [June 2, 2021, 8:20pm UTC](https://discourse.processing.org/t/processing-to-blender-to-inkscape-to-axidraw-how-to-remove-hidden-2d-lines/30450 "2021-06-02T20:20:39Z")

</div>

I want to draw in 2D using Processing, export the image as an SVG, and then plot with an Axidraw. The issue I keep running into is that SVGs retain all lines, and therefore any lines that are covered by another shape’s…

---

## [Texture from createGraphics broken at seams](https://discourse.processing.org/t/texture-from-creategraphics-broken-at-seams/30440)

<div class="topic-metadata">

**Author:** [@wuwa](https://discourse.processing.org/u/wuwa)\
**Replies:** 2\
**Last updated:** [June 2, 2021, 5:38pm UTC](https://discourse.processing.org/t/texture-from-creategraphics-broken-at-seams/30440 "2021-06-02T17:38:56Z")

</div>

Hi, trying to put a graphic texture on a 3d object using createGraphics() and some black artefacts are always showing… is there a solution to fix this? or am i doing something wrong? see example here: https://codepen.…

---

## [Breaking a string into separate variables](https://discourse.processing.org/t/breaking-a-string-into-separate-variables/30445)

<div class="topic-metadata">

**Author:** [@xysogram](https://discourse.processing.org/u/xysogram)\
**Replies:** 3\
**Last updated:** [June 2, 2021, 5:31pm UTC](https://discourse.processing.org/t/breaking-a-string-into-separate-variables/30445 "2021-06-02T17:31:13Z")

</div>

Hi. Noob question—what is the best way to break a text string (sourced from an imported .csv) into individual variables (new char variable or similar for each character in the string)? The goal is to input text and conv…

---

## [See if two Strings are the same using recursivity (recursion)](https://discourse.processing.org/t/see-if-two-strings-are-the-same-using-recursivity-recursion/30419)

<div class="topic-metadata">

**Author:** [@oussama10](https://discourse.processing.org/u/oussama10)\
**Replies:** 8\
**Last updated:** [June 2, 2021, 8:02am UTC](https://discourse.processing.org/t/see-if-two-strings-are-the-same-using-recursivity-recursion/30419 "2021-06-02T08:02:41Z")

</div>

For a given character string, called, write a recursive function Boolean check(String s, String pattern) Which determines whether the given pattern matches the string. The pattern consists of letters and the special ch…

---

## [Upload File to Database](https://discourse.processing.org/t/upload-file-to-database/30436)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 0\
**Last updated:** [June 2, 2021, 6:49am UTC](https://discourse.processing.org/t/upload-file-to-database/30436 "2021-06-02T06:49:44Z")

</div>

can someone help me i have to upload to a database so i can get a top 10 of the score of my game how does it work best? I would take the database:PlayFab

---

## [Weird "Pixelate" Tool](https://discourse.processing.org/t/weird-pixelate-tool/30431)

<div class="topic-metadata">

**Author:** [@VOIDupgraded](https://discourse.processing.org/u/VOIDupgraded)\
**Replies:** 0\
**Last updated:** [June 1, 2021, 8:59pm UTC](https://discourse.processing.org/t/weird-pixelate-tool/30431 "2021-06-01T20:59:42Z")

</div>

Hi, for my first topic I’m sharing what I have been up to today. I spent a bit of time today making a weird tool to “pixelate” images, for now it as a bunch of is statements with preset brush sizes, but I intend change t…

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

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