# Coding Questions

**URL:** https://discourse.processing.org/c/processing/processing-questions/15.md?page=1

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

**Page:** 2

---

## [Processing Exception](https://discourse.processing.org/t/processing-exception/47566)

<div class="topic-metadata">

**Author:** [@Frank](https://discourse.processing.org/u/Frank)\
**Replies:** 3\
**Last updated:** [December 4, 2025, 3:44am UTC](https://discourse.processing.org/t/processing-exception/47566 "2025-12-04T03:44:32Z")

</div>

Hello. I want to start an external program in Processing and Processing should detect whether this program has also been started. How can I realize this? I’m not familiar with these exceptions. Thanks…Frank

---

## [Multithreading in Processing](https://discourse.processing.org/t/multithreading-in-processing/47561)

<div class="topic-metadata">

**Author:** [@Braunstein](https://discourse.processing.org/u/Braunstein)\
**Replies:** 4\
**Last updated:** [November 26, 2025, 10:47am UTC](https://discourse.processing.org/t/multithreading-in-processing/47561 "2025-11-26T10:47:47Z")

</div>

Hello, I am working on a Processing-based editor for Conway’s Game of Life, basically like a Golly-lite with a few basic features like pattern loading, grid editing, speed up/down, etc.. Full disclosure, I have used Cha…

---

## [Off screen display windows placement when using P3D or P2D](https://discourse.processing.org/t/off-screen-display-windows-placement-when-using-p3d-or-p2d/47405)

<div class="topic-metadata">

**Author:** [@dkemp](https://discourse.processing.org/u/dkemp)\
**Replies:** 8\
**Last updated:** [November 10, 2025, 10:21pm UTC](https://discourse.processing.org/t/off-screen-display-windows-placement-when-using-p3d-or-p2d/47405 "2025-11-10T22:21:48Z")

</div>

When using P2D or P3d my display window appears partially off-screen in the upper left – this even happens when using fullscreen or present mode, which do not actually fill the whole screen anymore. I have a feeling this…

---

## [Displaying very special characters such as ░ ▓ ├ ≡ Σ](https://discourse.processing.org/t/displaying-very-special-characters-such-as/47103)

<div class="topic-metadata">

**Author:** [@pleek](https://discourse.processing.org/u/pleek)\
**Replies:** 3\
**Last updated:** [November 5, 2025, 4:01pm UTC](https://discourse.processing.org/t/displaying-very-special-characters-such-as/47103 "2025-11-05T16:01:47Z")

</div>

Hello everybody..!! I’m coding a visualiser for composing graphics on receipt tickets. For this, I’m trying to text(“░ ▓ ├ ≡ Σ ►\_-:spade\_suit:”), but it’s not working, I get the little squareWithACross for most of th…

---

## [Processing can find the data folder in Windows 11 but not in Linux or Mac](https://discourse.processing.org/t/processing-can-find-the-data-folder-in-windows-11-but-not-in-linux-or-mac/47472)

<div class="topic-metadata">

**Author:** [@ffernandaffranco](https://discourse.processing.org/u/ffernandaffranco)\
**Replies:** 31\
**Last updated:** [November 5, 2025, 2:45pm UTC](https://discourse.processing.org/t/processing-can-find-the-data-folder-in-windows-11-but-not-in-linux-or-mac/47472 "2025-11-05T14:45:45Z")

</div>

Hello! I am working on a project for a class in Processing and Java. It is a game, and for this game I need to load multiple images, a video, and a font. It works correctly in Windows 11. The problem arises when I try t…

---

## [Java Unicode Chars](https://discourse.processing.org/t/java-unicode-chars/34284)

<div class="topic-metadata">

**Author:** [@jcgeo](https://discourse.processing.org/u/jcgeo)\
**Replies:** 5\
**Last updated:** [October 21, 2025, 2:59pm UTC](https://discourse.processing.org/t/java-unicode-chars/34284 "2025-10-21T14:59:20Z")

</div>

Hello, I have a problem with using unicode chars in java in processing. I am trying to display random Katakana chars, which this format: this.value=Character.toString(char(0x30A0 +round(random(0,96)))); print(this.val…

---

## [Help with animating circles](https://discourse.processing.org/t/help-with-animating-circles/47346)

<div class="topic-metadata">

**Author:** [@AVREDDY](https://discourse.processing.org/u/AVREDDY)\
**Replies:** 2\
**Last updated:** [October 16, 2025, 8:42pm UTC](https://discourse.processing.org/t/help-with-animating-circles/47346 "2025-10-16T20:42:57Z")

</div>

Hello. I am coming back to processing after so long. I am trying to make an animation based on circles interlocking to create patterns. How can I make this code more effective? I also want to slow down the frame rate. i…

---

## [Keypressed Function Stuck On](https://discourse.processing.org/t/keypressed-function-stuck-on/47341)

<div class="topic-metadata">

**Author:** [@WillyGrz](https://discourse.processing.org/u/WillyGrz)\
**Replies:** 3\
**Last updated:** [October 13, 2025, 4:51pm UTC](https://discourse.processing.org/t/keypressed-function-stuck-on/47341 "2025-10-13T16:51:27Z")

</div>

\< float playerX=width/2; float playerY=height/2; float playerSpeedXPositive = 0; float playerSpeedXNegative = 0; float playerSpeedYPositive = 0; float playerSpeedYNegative = 0; final int \_keyD = 40; final int \_ke…

---

## [The method getImage() from the type PImage is deprecated](https://discourse.processing.org/t/the-method-getimage-from-the-type-pimage-is-deprecated/47297)

<div class="topic-metadata">

**Author:** [@bonner45](https://discourse.processing.org/u/bonner45)\
**Replies:** 1\
**Last updated:** [October 8, 2025, 4:27pm UTC](https://discourse.processing.org/t/the-method-getimage-from-the-type-pimage-is-deprecated/47297 "2025-10-08T16:27:14Z")

</div>

void settingsUI() { frameSettings = new JFrame("Settings"); frameSettings.setSize(500, 300); frameSettings.setDefaultCloseOperation(JFrame.DISPOSE\_ON\_CLOSE); frameSettings.setResizable(false); frameSettings.set…

---

## [Google Maps Will Not Accept My .csv File](https://discourse.processing.org/t/google-maps-will-not-accept-my-csv-file/47237)

<div class="topic-metadata">

**Author:** [@fredstout](https://discourse.processing.org/u/fredstout)\
**Replies:** 5\
**Last updated:** [October 1, 2025, 1:41pm UTC](https://discourse.processing.org/t/google-maps-will-not-accept-my-csv-file/47237 "2025-10-01T13:41:44Z")

</div>

Google Maps expects a .csv file containing data to place on a map. My test file has 5 rows and 5 columns. The first row is a header with column names. My file ends with the usual null characters. It failed to load. I add…

---

## [Create PDF runtime error with v4.4.7](https://discourse.processing.org/t/create-pdf-runtime-error-with-v4-4-7/47174)

<div class="topic-metadata">

**Author:** [@Geoffree3](https://discourse.processing.org/u/Geoffree3)\
**Replies:** 8\
**Last updated:** [September 30, 2025, 11:10am UTC](https://discourse.processing.org/t/create-pdf-runtime-error-with-v4-4-7/47174 "2025-09-30T11:10:50Z")

</div>

Creating a pdf of drawing to the screen with beginRecord(PDF, fileName) now gives and error: “java.lang.RuntimeException: Use createFont() instead of loadFont() when drawing text using the PDF library” My code uses cre…

---

## [Relatives and global positioning](https://discourse.processing.org/t/relatives-and-global-positioning/47006)

<div class="topic-metadata">

**Author:** [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)\
**Replies:** 8\
**Last updated:** [September 26, 2025, 5:56pm UTC](https://discourse.processing.org/t/relatives-and-global-positioning/47006 "2025-09-26T17:56:04Z")

</div>

If we don’t use scaling, it works well but there… it doesn’t work at all… and I really don’t find why. If you know it… thank you VERY much in advance !!! The sketch is here ! Otherwise, Openprocessing indicates an e…

---

## [Variable and Function Questions](https://discourse.processing.org/t/variable-and-function-questions/29636)

<div class="topic-metadata">

**Author:** [@hklotz13](https://discourse.processing.org/u/hklotz13)\
**Replies:** 6\
**Last updated:** [September 22, 2025, 12:54pm UTC](https://discourse.processing.org/t/variable-and-function-questions/29636 "2025-09-22T12:54:39Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi there folks. I’m very much a beginner, and I’m currently very lost trying to troubleshoot a project I’m working on for a class. Essentially I…

---

## [Can you stop the windows key from popping the windows menu up?](https://discourse.processing.org/t/can-you-stop-the-windows-key-from-popping-the-windows-menu-up/47124)

<div class="topic-metadata">

**Author:** [@WillyGrz](https://discourse.processing.org/u/WillyGrz)\
**Replies:** 3\
**Last updated:** [September 16, 2025, 9:34pm UTC](https://discourse.processing.org/t/can-you-stop-the-windows-key-from-popping-the-windows-menu-up/47124 "2025-09-16T21:34:29Z")

</div>

I’ve seen people post things about overriding keys to when they press one, it ‘presses’ or functions as another, but this seems to be only in the program itself. Would there be any other way to stop the windows key (obvi…

---

## [How to override escape key closing the game](https://discourse.processing.org/t/how-to-override-escape-key-closing-the-game/47123)

<div class="topic-metadata">

**Author:** [@WillyGrz](https://discourse.processing.org/u/WillyGrz)\
**Replies:** 7\
**Last updated:** [September 15, 2025, 12:56am UTC](https://discourse.processing.org/t/how-to-override-escape-key-closing-the-game/47123 "2025-09-15T00:56:17Z")

</div>

\<void keyPressed() { if (key == ESC) { key = 0; } }\> The only code I’ve found to do it is from 2018 and doesn’t seem to be working in my current application, I still use Processing 4. Are there any other ways to kin…

---

## [Relative and global coordinates](https://discourse.processing.org/t/relative-and-global-coordinates/46992)

<div class="topic-metadata">

**Author:** [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)\
**Replies:** 4\
**Last updated:** [September 8, 2025, 6:45pm UTC](https://discourse.processing.org/t/relative-and-global-coordinates/46992 "2025-09-08T18:45:42Z")

</div>

If I draw, for example, a point at a coordinate (0,0) after successively using translate(), scale(); rotate() many times, Is there a possibility to have the coordinates of the point in the starting reference frame (with…

---

## [How to launch the operating system’s default browser at a given URL?](https://discourse.processing.org/t/how-to-launch-the-operating-system-s-default-browser-at-a-given-url/47043)

<div class="topic-metadata">

**Author:** [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)\
**Replies:** 2\
**Last updated:** [August 30, 2025, 1:19am UTC](https://discourse.processing.org/t/how-to-launch-the-operating-system-s-default-browser-at-a-given-url/47043 "2025-08-30T01:19:57Z")

</div>

It is complementary to the previous request with Windows for the majority but also with Linux for the minority of whom I am part

---

## [Using launch() to start chrome.exe](https://discourse.processing.org/t/using-launch-to-start-chrome-exe/44765)

<div class="topic-metadata">

**Author:** [@jorgensen](https://discourse.processing.org/u/jorgensen)\
**Replies:** 6\
**Last updated:** [August 28, 2025, 4:14am UTC](https://discourse.processing.org/t/using-launch-to-start-chrome-exe/44765 "2025-08-28T04:14:15Z")

</div>

I’m trying to launch chrome.exe via launch(); It works fine if I just want to start chrome.exe. My issue is that I can’t figure out how to pass an url to chrome.exe. If I start chrome via command shell with an url it w…

---

## [Having problems with split for directories](https://discourse.processing.org/t/having-problems-with-split-for-directories/46799)

<div class="topic-metadata">

**Author:** [@Grumpy\_Mike](https://discourse.processing.org/u/Grumpy_Mike)\
**Replies:** 19\
**Last updated:** [August 3, 2025, 8:40am UTC](https://discourse.processing.org/t/having-problems-with-split-for-directories/46799 "2025-08-03T08:40:00Z")

</div>

Using Processing 4.2, I am trying to put the last directory as the title to Processing window. From a file I have opened. To this end I am trying to use the split function. Unfortunately I can’t get it right, I have trie…

---

## [Pixelated numbers in a watch](https://discourse.processing.org/t/pixelated-numbers-in-a-watch/46816)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 4\
**Last updated:** [August 1, 2025, 4:18pm UTC](https://discourse.processing.org/t/pixelated-numbers-in-a-watch/46816 "2025-08-01T16:18:32Z")

</div>

My last questions are about sharpness. This sketch has an animation, specifically that of a clock. How could I make the numbers look perfectly sharp, without pixels around the edges? void setup() { size(600, 600); t…

---

## [process.getInputStream() is Buffered and blocks print() from Python code](https://discourse.processing.org/t/process-getinputstream-is-buffered-and-blocks-print-from-python-code/46800)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 4\
**Last updated:** [July 28, 2025, 1:49am UTC](https://discourse.processing.org/t/process-getinputstream-is-buffered-and-blocks-print-from-python-code/46800 "2025-07-28T01:49:24Z")

</div>

I’m having difficulty getting Runtime.getRuntime().exec(cmd) to return print() calls from a py5 file. The Processing console output should look like the Terminal output, but is instead very scant and I can’t find any ot…

---

## [Trouble expanding and writing to array of objects](https://discourse.processing.org/t/trouble-expanding-and-writing-to-array-of-objects/46750)

<div class="topic-metadata">

**Author:** [@WhiteSquire](https://discourse.processing.org/u/WhiteSquire)\
**Replies:** 6\
**Last updated:** [July 20, 2025, 12:28am UTC](https://discourse.processing.org/t/trouble-expanding-and-writing-to-array-of-objects/46750 "2025-07-20T00:28:16Z")

</div>

Hello. Slightly embarrassing, I appear to be having trouble with this class array. Getting NullPointerException, but I’ve checked by dumping the length of the array to the console, and it’s definitely getting expanded.I…

---

## [I need help with my Space Invaders clone (second round loading improperly)](https://discourse.processing.org/t/i-need-help-with-my-space-invaders-clone-second-round-loading-improperly/46743)

<div class="topic-metadata">

**Author:** [@PaddedMellie](https://discourse.processing.org/u/PaddedMellie)\
**Replies:** 1\
**Last updated:** [July 16, 2025, 11:32pm UTC](https://discourse.processing.org/t/i-need-help-with-my-space-invaders-clone-second-round-loading-improperly/46743 "2025-07-16T23:32:40Z")

</div>

I need some help writing a gameplay loop for my Space Invaders clone. I have it partially working, but for whatever reason the second level only spawns 1 ship instead of the 20 I have coded. I cannot figure out why the l…

---

## [I need help with collision detection in clone game](https://discourse.processing.org/t/i-need-help-with-collision-detection-in-clone-game/46723)

<div class="topic-metadata">

**Author:** [@PaddedMellie](https://discourse.processing.org/u/PaddedMellie)\
**Replies:** 4\
**Last updated:** [July 15, 2025, 4:19pm UTC](https://discourse.processing.org/t/i-need-help-with-collision-detection-in-clone-game/46723 "2025-07-15T16:19:03Z")

</div>

Hi, I’m new to the world of game development with Processing and I am struggling to get my code to work. I have a good portion of it working but I cannot figure out collision detection. Here’s the main loop: //Create 1…

---

## [Processing Java Background Bug](https://discourse.processing.org/t/processing-java-background-bug/46644)

<div class="topic-metadata">

**Author:** [@Bill\_goo](https://discourse.processing.org/u/Bill_goo)\
**Replies:** 2\
**Last updated:** [July 14, 2025, 3:14am UTC](https://discourse.processing.org/t/processing-java-background-bug/46644 "2025-07-14T03:14:35Z")

</div>

Please help. For some reason, I cannot set a 1000x600 image as my background. It keeps saying the dimensions are different, but I used the dimensions of the background as the app size. Please help. import java.util.\*; p…

---

## [How to make a game start menu in Processing?](https://discourse.processing.org/t/how-to-make-a-game-start-menu-in-processing/6019)

<div class="topic-metadata">

**Author:** [@CyanNi](https://discourse.processing.org/u/CyanNi)\
**Replies:** 8\
**Last updated:** [July 9, 2025, 3:56am UTC](https://discourse.processing.org/t/how-to-make-a-game-start-menu-in-processing/6019 "2025-07-09T03:56:48Z")

</div>

Hello! I’m to trying to make a game, but I want to create a game start menu. I’ve looked at other forums, and I just feel confused?? Can someone ELI5 for this?

---

## [Having trouble with rotating and translating specific elements and overlapping them on top of each other](https://discourse.processing.org/t/having-trouble-with-rotating-and-translating-specific-elements-and-overlapping-them-on-top-of-each-other/46664)

<div class="topic-metadata">

**Author:** [@Deathlord719](https://discourse.processing.org/u/Deathlord719)\
**Replies:** 3\
**Last updated:** [July 9, 2025, 7:09am UTC](https://discourse.processing.org/t/having-trouble-with-rotating-and-translating-specific-elements-and-overlapping-them-on-top-of-each-other/46664 "2025-07-09T07:09:25Z")

</div>

I am a beginner to processing and coding in general. I am trying to recreate the following image in processing. There was already another post on this(they solved it by copying over an area of blue rectangle onto the…

---

## [Pixelated images](https://discourse.processing.org/t/pixelated-images/46658)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 7\
**Last updated:** [July 4, 2025, 1:07pm UTC](https://discourse.processing.org/t/pixelated-images/46658 "2025-07-04T13:07:58Z")

</div>

Hi there! I have been using processing again after sometime and I don’t understand why images are so pixelated. I am using processing 4.4.4 in Java mode in my pc and all the sketches are really pixelated, it doesn’t mat…

---

## [My sketch doesn't run, can anybody help me?](https://discourse.processing.org/t/my-sketch-doesnt-run-can-anybody-help-me/46521)

<div class="topic-metadata">

**Author:** [@HProcessing](https://discourse.processing.org/u/HProcessing)\
**Replies:** 12\
**Last updated:** [June 25, 2025, 6:26pm UTC](https://discourse.processing.org/t/my-sketch-doesnt-run-can-anybody-help-me/46521 "2025-06-25T18:26:45Z")

</div>

int AH=4; // Anzahl der Memorykarten in der Höhe int AB=6; // Anzahl der Memorykarten in der Breite float rh; // Abstand zwischen dem Bildschirmrand und den Memorykarten in der Höhe float rb; // Abstand zwischen dem Bild…

---

## [High school programming project, (COMPLETE BEGINNER)](https://discourse.processing.org/t/high-school-programming-project-complete-beginner/46500)

<div class="topic-metadata">

**Author:** [@dinomaster123](https://discourse.processing.org/u/dinomaster123)\
**Replies:** 5\
**Last updated:** [June 23, 2025, 2:03pm UTC](https://discourse.processing.org/t/high-school-programming-project-complete-beginner/46500 "2025-06-23T14:03:25Z")

</div>

Hello my name is Max, and I am a complete beginner in processing,but am starting to enjoy coding and reading interesting / exciting new codes ! In my code i have an enum,(which i dont know what it means) a Lambda methode…

[Previous page](https://discourse.processing.org/c/processing/processing-questions/15.md)

[Next page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=2)
