# Processing

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

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

**Page:** 45

---

## [Need help with FX2D renderer! (pls)](https://discourse.processing.org/t/need-help-with-fx2d-renderer-pls/41235)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 2\
**Last updated:** [March 14, 2023, 10:10am UTC](https://discourse.processing.org/t/need-help-with-fx2d-renderer-pls/41235 "2023-03-14T10:10:13Z")

</div>

In FX2D there are a few glitches/“features” and i wanna know if someone knows a fix; focused Bug: this is really glitchy. i dont know how that works; if(focused) text("focused",10,10); if(!focused) text("not focused",1…

---

## [Problems with old code in Processing 3.0](https://discourse.processing.org/t/problems-with-old-code-in-processing-3-0/41276)

<div class="topic-metadata">

**Author:** [@aespona](https://discourse.processing.org/u/aespona)\
**Replies:** 4\
**Last updated:** [March 15, 2023, 8:14pm UTC](https://discourse.processing.org/t/problems-with-old-code-in-processing-3-0/41276 "2023-03-15T20:14:03Z")

</div>

Hello everyone, I’m new here. Sorry for my english, I’m from Spain. I have problems displaying a code that was written on a Imac 2009 in processing 3.0. Now I work with Mac Air with an M1 processor and when I run th…

---

## [Cant keep open both cards in memorygame using ArrayLists](https://discourse.processing.org/t/cant-keep-open-both-cards-in-memorygame-using-arraylists/41263)

<div class="topic-metadata">

**Author:** [@Yokiyami](https://discourse.processing.org/u/Yokiyami)\
**Replies:** 5\
**Last updated:** [March 15, 2023, 4:04pm UTC](https://discourse.processing.org/t/cant-keep-open-both-cards-in-memorygame-using-arraylists/41263 "2023-03-15T16:04:35Z")

</div>

Hello, I have made a memorygame using processing. We arent allowed to use classes. So i have used ArrayLists instead. Now i just cant seem to fix this bug: “when i click open the second card it sometime immediatly clos…

---

## [How to use JavaFX in Processing 4?](https://discourse.processing.org/t/how-to-use-javafx-in-processing-4/35842)

<div class="topic-metadata">

**Author:** [@lui\_s](https://discourse.processing.org/u/lui_s)\
**Replies:** 7\
**Last updated:** [March 15, 2023, 8:53am UTC](https://discourse.processing.org/t/how-to-use-javafx-in-processing-4/35842 "2023-03-15T08:53:13Z")

</div>

Possibly a dumb question but I can’t seem to figure it out on my own. Hopefully someone here can help me out. Below is a simple code that works fine in Processing 3. Basically it just imports a JavaFX class. In Processi…

---

## [How to create data array?](https://discourse.processing.org/t/how-to-create-data-array/41094)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 2\
**Last updated:** [March 2, 2023, 11:20am UTC](https://discourse.processing.org/t/how-to-create-data-array/41094 "2023-03-02T11:20:13Z")

</div>

How can I create an array of data to send to the com port from this example?

---

## [Easier way for saving image in thread?](https://discourse.processing.org/t/easier-way-for-saving-image-in-thread/41270)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 6\
**Last updated:** [March 15, 2023, 2:11pm UTC](https://discourse.processing.org/t/easier-way-for-saving-image-in-thread/41270 "2023-03-15T14:11:20Z")

</div>

So I have a drawing programm, that needs to load in images & save them. Is there something that makes it faster. For example I have an 4k image, that needs to be saved. It takes like 3 seconds. And I do not want to use p…

---

## [Demo sketches are stuttering / hanging up](https://discourse.processing.org/t/demo-sketches-are-stuttering-hanging-up/41268)

<div class="topic-metadata">

**Author:** [@User442B](https://discourse.processing.org/u/User442B)\
**Replies:** 3\
**Last updated:** [March 15, 2023, 1:38am UTC](https://discourse.processing.org/t/demo-sketches-are-stuttering-hanging-up/41268 "2023-03-15T01:38:34Z")

</div>

Hi. I recently installed processing and have begun learning it. I have noticed that my sketches are stuttering, sometimes even hanging up for a moment. This happens even when I run demo sketches, such as Bounce from the …

---

## [Create advanced shot](https://discourse.processing.org/t/create-advanced-shot/41245)

<div class="topic-metadata">

**Author:** [@hokuto](https://discourse.processing.org/u/hokuto)\
**Replies:** 6\
**Last updated:** [March 14, 2023, 7:02pm UTC](https://discourse.processing.org/t/create-advanced-shot/41245 "2023-03-14T19:02:24Z")

</div>

I know it’s a bit excessive, but how can you program these types of shots? https://youtu.be/3G3aKt7by0A

---

## [Laggy fullScreen](https://discourse.processing.org/t/laggy-fullscreen/41265)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 0\
**Last updated:** [March 13, 2023, 4:15pm UTC](https://discourse.processing.org/t/laggy-fullscreen/41265 "2023-03-13T16:15:28Z")

</div>

Hi All, I have a sketch that runs smoothly when windowed on my Macbook, but then slows noticeably when I make it fullScreen - either on the Macbook monitor itself, or on a second monitor - even when the sketch runs at …

---

## [Drag and drop a jar file onto a sketch - cannot get it working](https://discourse.processing.org/t/drag-and-drop-a-jar-file-onto-a-sketch-cannot-get-it-working/41253)

<div class="topic-metadata">

**Author:** [@Svedblen](https://discourse.processing.org/u/Svedblen)\
**Replies:** 4\
**Last updated:** [March 13, 2023, 11:26am UTC](https://discourse.processing.org/t/drag-and-drop-a-jar-file-onto-a-sketch-cannot-get-it-working/41253 "2023-03-13T11:26:43Z")

</div>

Hi! I’m trying to reuse the same code in a few different sketches and decided that I did not want to just copy the source code. I wanted something slightly better and read about the ability to drag and drop jar-files on…

---

## [Eclipse project to Processing import](https://discourse.processing.org/t/eclipse-project-to-processing-import/41251)

<div class="topic-metadata">

**Author:** [@ch-artist](https://discourse.processing.org/u/ch-artist)\
**Replies:** 3\
**Last updated:** [March 12, 2023, 11:04pm UTC](https://discourse.processing.org/t/eclipse-project-to-processing-import/41251 "2023-03-12T23:04:30Z")

</div>

Hello, I’ve created a project using core.jar in Eclipse, works good. Can I import my Eclipse project into Processing for further development? If so how? Thanks

---

## [Keyboard detect if not focused?](https://discourse.processing.org/t/keyboard-detect-if-not-focused/41248)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 1\
**Last updated:** [March 12, 2023, 7:34pm UTC](https://discourse.processing.org/t/keyboard-detect-if-not-focused/41248 "2023-03-12T19:34:54Z")

</div>

Am i able to detect key input even if the window is not focused?

---

## [Get Mic Output Volume?](https://discourse.processing.org/t/get-mic-output-volume/41181)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 6\
**Last updated:** [March 12, 2023, 2:09pm UTC](https://discourse.processing.org/t/get-mic-output-volume/41181 "2023-03-12T14:09:17Z")

</div>

Can i get the microphone output volume, only the volume without a library? Arys

---

## [Align the arrows with the route or how to follow a path (planes)](https://discourse.processing.org/t/align-the-arrows-with-the-route-or-how-to-follow-a-path-planes/41188)

<div class="topic-metadata">

**Author:** [@hokuto](https://discourse.processing.org/u/hokuto)\
**Replies:** 17\
**Last updated:** [March 12, 2023, 12:56pm UTC](https://discourse.processing.org/t/align-the-arrows-with-the-route-or-how-to-follow-a-path-planes/41188 "2023-03-12T12:56:52Z")

</div>

This question is specially for “quark”, but anyone can answer it. I have seen a video on the quark youtube channel where some arrows move along some paths, I would like to know how you did that and if you could show me …

---

## [Disable Window Occlusion!](https://discourse.processing.org/t/disable-window-occlusion/41233)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 0\
**Last updated:** [March 11, 2023, 3:36pm UTC](https://discourse.processing.org/t/disable-window-occlusion/41233 "2023-03-11T15:36:42Z")

</div>

You ever tried making an app that you want to use in OBS? But when its in the minimized it doesnt update? Fix: Dont use P2D.

---

## [Shader output to Processing](https://discourse.processing.org/t/shader-output-to-processing/41189)

<div class="topic-metadata">

**Author:** [@JohnC](https://discourse.processing.org/u/JohnC)\
**Replies:** 4\
**Last updated:** [March 11, 2023, 2:35am UTC](https://discourse.processing.org/t/shader-output-to-processing/41189 "2023-03-11T02:35:45Z")

</div>

Is there a way to get the shader out value back to the CPU thread (processing)?

---

## [If statement with keyboard keyPressed()](https://discourse.processing.org/t/if-statement-with-keyboard-keypressed/41226)

<div class="topic-metadata">

**Author:** [@Dave](https://discourse.processing.org/u/Dave)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 10:54pm UTC](https://discourse.processing.org/t/if-statement-with-keyboard-keypressed/41226 "2023-03-10T22:54:32Z")

</div>

I have included the code just to make it easier to explain what i am trying to do as i am now thinking scrap most of this code and do it a different way so if someone could point me in the right direction i would be grat…

---

## [Load file from google drive?](https://discourse.processing.org/t/load-file-from-google-drive/41211)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 3\
**Last updated:** [March 10, 2023, 12:20pm UTC](https://discourse.processing.org/t/load-file-from-google-drive/41211 "2023-03-10T12:20:36Z")

</div>

I have an sfdat or sftext (txt but more options) file in drive & want to load it into my software. How could this be done? :£ Arys

---

## [Scenes in Processing](https://discourse.processing.org/t/scenes-in-processing/40386)

<div class="topic-metadata">

**Author:** [@OverLord](https://discourse.processing.org/u/OverLord)\
**Replies:** 15\
**Last updated:** [March 9, 2023, 3:10pm UTC](https://discourse.processing.org/t/scenes-in-processing/40386 "2023-03-09T15:10:06Z")

</div>

Good afternoon, processing community, I would like to ask a question. How is it possible to implement “Scenes/Activities” on Processing?

---

## [Help with array (upper bound)](https://discourse.processing.org/t/help-with-array-upper-bound/41208)

<div class="topic-metadata">

**Author:** [@kristianjones](https://discourse.processing.org/u/kristianjones)\
**Replies:** 4\
**Last updated:** [March 9, 2023, 9:39am UTC](https://discourse.processing.org/t/help-with-array-upper-bound/41208 "2023-03-09T09:39:07Z")

</div>

Hi there. I have a question about a sketch i’m working on. I have it working the way I want it to, but, I want to change the amount of images that are displayed randomly from the array. It seems to currently display arou…

---

## [Making SVGs get bigger the further from the center of the canvas they are](https://discourse.processing.org/t/making-svgs-get-bigger-the-further-from-the-center-of-the-canvas-they-are/41200)

<div class="topic-metadata">

**Author:** [@Noobcessing](https://discourse.processing.org/u/Noobcessing)\
**Replies:** 4\
**Last updated:** [March 8, 2023, 8:03pm UTC](https://discourse.processing.org/t/making-svgs-get-bigger-the-further-from-the-center-of-the-canvas-they-are/41200 "2023-03-08T20:03:28Z")

</div>

Hi Guys - Totally new user here hoping to become an established community member, nice to meet you all. I’m hoping to create a project which has randomly rotated scalene triangles (or acute triangles) that are barely vi…

---

## [I want to create a window with height smaller than the minimum allowed by Processing. Is this possible?](https://discourse.processing.org/t/i-want-to-create-a-window-with-height-smaller-than-the-minimum-allowed-by-processing-is-this-possible/40755)

<div class="topic-metadata">

**Author:** [@vinijoncrafts](https://discourse.processing.org/u/vinijoncrafts)\
**Replies:** 5\
**Last updated:** [March 8, 2023, 4:48pm UTC](https://discourse.processing.org/t/i-want-to-create-a-window-with-height-smaller-than-the-minimum-allowed-by-processing-is-this-possible/40755 "2023-03-08T16:48:21Z")

</div>

Idk what else to say. Here’s my code, if that’s relevant. float v = 5; int winX = width/2; int winY = 800; boolean \[\] keys = new boolean\[128\]; import java.awt.Robot; Robot robot; void setup () { size(600, 25); tr…

---

## [Issue with canvas.translate within Syphon library](https://discourse.processing.org/t/issue-with-canvas-translate-within-syphon-library/41197)

<div class="topic-metadata">

**Author:** [@jormetz](https://discourse.processing.org/u/jormetz)\
**Replies:** 2\
**Last updated:** [March 8, 2023, 4:40pm UTC](https://discourse.processing.org/t/issue-with-canvas-translate-within-syphon-library/41197 "2023-03-08T16:40:26Z")

</div>

Hi everybody! I am new to Processing & currently working with the Syphon library to send my sketch to MaxMSP. I’m having a weird issue with translating the canvas in which my sketch is not centered, or some blank canvas…

---

## [My contour doesn't work](https://discourse.processing.org/t/my-contour-doesnt-work/41193)

<div class="topic-metadata">

**Author:** [@TF-SHOCK76](https://discourse.processing.org/u/TF-SHOCK76)\
**Replies:** 2\
**Last updated:** [March 8, 2023, 12:31pm UTC](https://discourse.processing.org/t/my-contour-doesnt-work/41193 "2023-03-08T12:31:20Z")

</div>

I tried to create a plane with a hole in the middle. It works with the example on the documentation, but I don’t succeed to make it work with my values. Is there any constraint on values? Here is my code: float x = 980…

---

## [Arraylist and inheritance](https://discourse.processing.org/t/arraylist-and-inheritance/41073)

<div class="topic-metadata">

**Author:** [@hokuto](https://discourse.processing.org/u/hokuto)\
**Replies:** 8\
**Last updated:** [March 7, 2023, 3:23pm UTC](https://discourse.processing.org/t/arraylist-and-inheritance/41073 "2023-03-07T15:23:48Z")

</div>

I am going to show an example where I am testing the use of inheritance. There are three classes, one that is a ship that can be moved with the keys and shoot, the other class is in charge of shooting and finally there …

---

## [Keyboard to input a word not just letter](https://discourse.processing.org/t/keyboard-to-input-a-word-not-just-letter/41180)

<div class="topic-metadata">

**Author:** [@Dave](https://discourse.processing.org/u/Dave)\
**Replies:** 4\
**Last updated:** [March 7, 2023, 2:39pm UTC](https://discourse.processing.org/t/keyboard-to-input-a-word-not-just-letter/41180 "2023-03-07T14:39:22Z")

</div>

This code takes a 1 letter input from keyboard and moves a pointer what i would like to do is take a 4 letter word input something like if (input == cold ) { do this stuff } thankyou for your time \`Preformatted te…

---

## [How to create a library from projects](https://discourse.processing.org/t/how-to-create-a-library-from-projects/41151)

<div class="topic-metadata">

**Author:** [@urlxd](https://discourse.processing.org/u/urlxd)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 8:48am UTC](https://discourse.processing.org/t/how-to-create-a-library-from-projects/41151 "2023-03-06T08:48:59Z")

</div>

hello, when creating a larger project, I ran into the problem that everything is in one project. I would like to create classes and use it in another project as a library. If there is such an opportunity in “Processing…

---

## [How to improve performance: multiple array operations on pixels](https://discourse.processing.org/t/how-to-improve-performance-multiple-array-operations-on-pixels/41078)

<div class="topic-metadata">

**Author:** [@flodeux](https://discourse.processing.org/u/flodeux)\
**Replies:** 5\
**Last updated:** [March 7, 2023, 12:12pm UTC](https://discourse.processing.org/t/how-to-improve-performance-multiple-array-operations-on-pixels/41078 "2023-03-07T12:12:00Z")

</div>

Hi all :slight\_smile: I’m back to processing. I was using this tool when i was student 10 years ago, and its really pleasure to re-use it ! I’m triyng to use Kinect to generate design and im working to calculate pixels…

---

## [How to position box](https://discourse.processing.org/t/how-to-position-box/41154)

<div class="topic-metadata">

**Author:** [@Dave](https://discourse.processing.org/u/Dave)\
**Replies:** 2\
**Last updated:** [March 7, 2023, 9:35am UTC](https://discourse.processing.org/t/how-to-position-box/41154 "2023-03-07T09:35:27Z")

</div>

The code below is from the example 's that spins a box in the centre of the screen. Can someone please tell me how i move the box to spin in a different part of the screen Thankyou for your time // GetTessGroups, by A…

---

## [Coding problem in my game](https://discourse.processing.org/t/coding-problem-in-my-game/41169)

<div class="topic-metadata">

**Author:** [@MaxU89](https://discourse.processing.org/u/MaxU89)\
**Replies:** 6\
**Last updated:** [March 7, 2023, 2:23am UTC](https://discourse.processing.org/t/coding-problem-in-my-game/41169 "2023-03-07T02:23:57Z")

</div>

Hello. I have once again stumbled across a problem which I couldn’t resolve myself. My Plank does interact with the ball, but only sometimes. And sometimes on the edge the ball just bursts through. I think the problem is…

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

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