# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=27

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

**Page:** 28

---

## [Is it possible to include a library in IDE Processing that is not in the repository?](https://discourse.processing.org/t/is-it-possible-to-include-a-library-in-ide-processing-that-is-not-in-the-repository/43497)

<div class="topic-metadata">

**Author:** [@sanja404](https://discourse.processing.org/u/sanja404)\
**Replies:** 1\
**Last updated:** [December 18, 2023, 8:19pm UTC](https://discourse.processing.org/t/is-it-possible-to-include-a-library-in-ide-processing-that-is-not-in-the-repository/43497 "2023-12-18T20:19:35Z")

</div>

For example, I need to access the JSON library. I didn’t find it in the repository import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; How can I contact her in another way?

---

## [Visualization tools](https://discourse.processing.org/t/visualization-tools/43485)

<div class="topic-metadata">

**Author:** [@kmll](https://discourse.processing.org/u/kmll)\
**Replies:** 6\
**Last updated:** [December 18, 2023, 4:36pm UTC](https://discourse.processing.org/t/visualization-tools/43485 "2023-12-18T16:36:17Z")

</div>

I am looking for some good libraries to use for data visualization. Any suggestion where I should start?

---

## [Run a batch file from Processing](https://discourse.processing.org/t/run-a-batch-file-from-processing/43474)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 4\
**Last updated:** [December 18, 2023, 3:11pm UTC](https://discourse.processing.org/t/run-a-batch-file-from-processing/43474 "2023-12-18T15:11:47Z")

</div>

I am trying to run a batch file from my processing sketch, but I cannot get it done. I keep getting an exception. I tried open(), launch() and exec() and with several paths. I believe open() is no longer used in Process…

---

## [Save screen to large tif file (9000px x 9000px)](https://discourse.processing.org/t/save-screen-to-large-tif-file-9000px-x-9000px/43491)

<div class="topic-metadata">

**Author:** [@Yoha](https://discourse.processing.org/u/Yoha)\
**Replies:** 1\
**Last updated:** [December 18, 2023, 1:04am UTC](https://discourse.processing.org/t/save-screen-to-large-tif-file-9000px-x-9000px/43491 "2023-12-18T01:04:57Z")

</div>

I have 100 moving circles all over the screen leaving a trail by puting a rectangle every frame in draw: " void draw(){ fill(0, 10); rect(0,0,width,height); etc… " I want to export the screen at a given moment to a …

---

## [I don't understand modelX/modelY](https://discourse.processing.org/t/i-dont-understand-modelx-modely/43470)

<div class="topic-metadata">

**Author:** [@PianoMastR64](https://discourse.processing.org/u/PianoMastR64)\
**Replies:** 11\
**Last updated:** [December 16, 2023, 7:31pm UTC](https://discourse.processing.org/t/i-dont-understand-modelx-modely/43470 "2023-12-16T19:31:17Z")

</div>

@Override public void settings() { size(800, 800, P3D); smooth(8); } @Override public void setup() { } @Override public void draw() { background(0); …

---

## [Float array "limitation"?](https://discourse.processing.org/t/float-array-limitation/43469)

<div class="topic-metadata">

**Author:** [@boytedinho](https://discourse.processing.org/u/boytedinho)\
**Replies:** 2\
**Last updated:** [December 15, 2023, 1:52am UTC](https://discourse.processing.org/t/float-array-limitation/43469 "2023-12-15T01:52:59Z")

</div>

Hi there! I’m just playing around with arrays, learning how to work with them, but there’s one problem happening and I can’t figure it out why The program is written as follows: float\[\] bar = new float\[100\]; void set…

---

## [Computer Constantly Taking Turn in Tic-Tac-Toe Game](https://discourse.processing.org/t/computer-constantly-taking-turn-in-tic-tac-toe-game/43467)

<div class="topic-metadata">

**Author:** [@XeroX\_ing](https://discourse.processing.org/u/XeroX_ing)\
**Replies:** 1\
**Last updated:** [December 13, 2023, 6:09pm UTC](https://discourse.processing.org/t/computer-constantly-taking-turn-in-tic-tac-toe-game/43467 "2023-12-13T18:09:04Z")

</div>

Hello again! I’m trying to make a tic tac toe game against a computer, where the user enters their choice using number inputs instead of mouseclicks. Edit, I’ve gotten the computer to stop constantly taking its turn, but…

---

## [Processing Editor could be better](https://discourse.processing.org/t/processing-editor-could-be-better/43433)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 11\
**Last updated:** [December 13, 2023, 10:24am UTC](https://discourse.processing.org/t/processing-editor-could-be-better/43433 "2023-12-13T10:24:21Z")

</div>

Hi, First of all, this post isn’t meant to bash processing or the editor! The official processing editor is sadly not the best, it’s kinda buggy and doesn’t have some good features. I know it’s complicated to make an e…

---

## [Help with Tic-Tac-Toe Game (Input of keys 0..8)](https://discourse.processing.org/t/help-with-tic-tac-toe-game-input-of-keys-0-8/43461)

<div class="topic-metadata">

**Author:** [@XeroX\_ing](https://discourse.processing.org/u/XeroX_ing)\
**Replies:** 3\
**Last updated:** [December 13, 2023, 2:20am UTC](https://discourse.processing.org/t/help-with-tic-tac-toe-game-input-of-keys-0-8/43461 "2023-12-13T02:20:12Z")

</div>

Hello! I’ve been trying to make a tic tac toe game, using a 2d array, against a computer. I’m trying to implement this using the number buttons 0-8 (like an array index) instead of through mouse input. The board works fi…

---

## [Adding a second snake target](https://discourse.processing.org/t/adding-a-second-snake-target/43449)

<div class="topic-metadata">

**Author:** [@suspinks0](https://discourse.processing.org/u/suspinks0)\
**Replies:** 1\
**Last updated:** [December 12, 2023, 12:24pm UTC](https://discourse.processing.org/t/adding-a-second-snake-target/43449 "2023-12-12T12:24:12Z")

</div>

Hello! I’m making a space themed snake game, and I want to add a second smaller target that gives half a point instead of giving one point like the star target already does. Whenever I try to add it by copying the preex…

---

## [ASDF Pixel Sort with different sections (color threshold)](https://discourse.processing.org/t/asdf-pixel-sort-with-different-sections-color-threshold/43416)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 17\
**Last updated:** [December 10, 2023, 1:06pm UTC](https://discourse.processing.org/t/asdf-pixel-sort-with-different-sections-color-threshold/43416 "2023-12-10T13:06:18Z")

</div>

Hi! I am playing with Kim Asendorf\`s code for pixel sorting, trying to use different values of sorting in different sections of the picture. That is way I am adding this to his code: if (y\<300){ int whiteValue = -123…

---

## [Wav file won't play](https://discourse.processing.org/t/wav-file-wont-play/43283)

<div class="topic-metadata">

**Author:** [@Vanish87](https://discourse.processing.org/u/Vanish87)\
**Replies:** 4\
**Last updated:** [December 9, 2023, 4:52pm UTC](https://discourse.processing.org/t/wav-file-wont-play/43283 "2023-12-09T16:52:20Z")

</div>

Processing suddenly won’t play a wav file that was working fine, here is some data on the matter: INFO: JSyn: default output latency set to 80 msec for Windows 11 javax.sound.sampled.LineUnavailableException: line with…

---

## [Problem with .obj file (scale shape)](https://discourse.processing.org/t/problem-with-obj-file-scale-shape/43390)

<div class="topic-metadata">

**Author:** [@Philippe1](https://discourse.processing.org/u/Philippe1)\
**Replies:** 11\
**Last updated:** [December 8, 2023, 11:10am UTC](https://discourse.processing.org/t/problem-with-obj-file-scale-shape/43390 "2023-12-08T11:10:30Z")

</div>

Hello, Returning to Processing, which I haven’t used for several years, I have a problem importing a 3D shape made in Blender and saved as an .obj file. the image I get is in 2D. if I test the file with viewer Windows…

---

## [Pixel Sorter with Processing (lighter pixels rise)](https://discourse.processing.org/t/pixel-sorter-with-processing-lighter-pixels-rise/43413)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 4\
**Last updated:** [December 8, 2023, 8:42pm UTC](https://discourse.processing.org/t/pixel-sorter-with-processing-lighter-pixels-rise/43413 "2023-12-08T20:42:15Z")

</div>

Hi there! I am trying to use this tutorial in processing. I know this function needs some values sortPixels(); but I don’t know how to do it. Could you please help me? Thanks! PImage img; void setup() { size (10…

---

## [Avoiding NullPointException in OpenWeatherMap](https://discourse.processing.org/t/avoiding-nullpointexception-in-openweathermap/43417)

<div class="topic-metadata">

**Author:** [@peja](https://discourse.processing.org/u/peja)\
**Replies:** 7\
**Last updated:** [December 8, 2023, 4:59pm UTC](https://discourse.processing.org/t/avoiding-nullpointexception-in-openweathermap/43417 "2023-12-08T16:59:36Z")

</div>

Hello, In theory, a simple question. First of all, apologies if I get my terms wrong as I am new to this… I am parsing data from OpenWeatherMap. I can get most of it, but the “rain” parameter is more difficult. This…

---

## [Processing app (converted to Java, using Intellij) low-res on scaled laptop display](https://discourse.processing.org/t/processing-app-converted-to-java-using-intellij-low-res-on-scaled-laptop-display/43398)

<div class="topic-metadata">

**Author:** [@LangdonS](https://discourse.processing.org/u/LangdonS)\
**Replies:** 3\
**Last updated:** [December 7, 2023, 4:44pm UTC](https://discourse.processing.org/t/processing-app-converted-to-java-using-intellij-low-res-on-scaled-laptop-display/43398 "2023-12-07T16:44:03Z")

</div>

For some reason the \</\> button is nonexistent for me so I can’t format my code. Whenever I run my app on a windows laptop with a scaled display, the app appears blurry. Everything else is fine. Screenshot (on MEGA.nz) …

---

## [Clicking and dragging an image](https://discourse.processing.org/t/clicking-and-dragging-an-image/43403)

<div class="topic-metadata">

**Author:** [@lib](https://discourse.processing.org/u/lib)\
**Replies:** 4\
**Last updated:** [December 6, 2023, 1:01pm UTC](https://discourse.processing.org/t/clicking-and-dragging-an-image/43403 "2023-12-06T13:01:01Z")

</div>

So I have a lot of images set up that change slightly with a mouse press (it’s like a day to night party scene) and I have an image of a person I made that I want to be able to click and drag along one x-axis line… any h…

---

## [Name of the loaded shape](https://discourse.processing.org/t/name-of-the-loaded-shape/43397)

<div class="topic-metadata">

**Author:** [@mrbbp](https://discourse.processing.org/u/mrbbp)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 8:11am UTC](https://discourse.processing.org/t/name-of-the-loaded-shape/43397 "2023-12-06T08:11:38Z")

</div>

Hello, i load few shape in an array. i change the used shape in the drawing area. the only thing i know is the index of the shape in the array. int nbrI = 24; PShape\[\] pinceaux = new PShape\[nbrI\]; for (int i=0; i\<nb…

---

## [Geomerative Library error](https://discourse.processing.org/t/geomerative-library-error/43304)

<div class="topic-metadata">

**Author:** [@freesheida1984](https://discourse.processing.org/u/freesheida1984)\
**Replies:** 15\
**Last updated:** [December 6, 2023, 7:16am UTC](https://discourse.processing.org/t/geomerative-library-error/43304 "2023-12-06T07:16:27Z")

</div>

hi folks, I got an error after I installed “Geomerative” library for run a robot based on Arduino Uno, how can I fix the problem? the error I got is as followed: “more than one library is competing for this sketch” whi…

---

## [millis() Not Resetting Properly in rolling() Method](https://discourse.processing.org/t/millis-not-resetting-properly-in-rolling-method/43375)

<div class="topic-metadata">

**Author:** [@HifumiLover](https://discourse.processing.org/u/HifumiLover)\
**Replies:** 6\
**Last updated:** [December 5, 2023, 3:08pm UTC](https://discourse.processing.org/t/millis-not-resetting-properly-in-rolling-method/43375 "2023-12-05T15:08:23Z")

</div>

I’m working on a game in Processing and facing an issue where millis() is not resetting as expected in my rolling() method within the Player class. The method is triggered by pressing the down arrow, and it’s supposed to…

---

## [Where can I find the offline reference?](https://discourse.processing.org/t/where-can-i-find-the-offline-reference/43363)

<div class="topic-metadata">

**Author:** [@adrinalino](https://discourse.processing.org/u/adrinalino)\
**Replies:** 4\
**Last updated:** [December 3, 2023, 9:32pm UTC](https://discourse.processing.org/t/where-can-i-find-the-offline-reference/43363 "2023-12-03T21:32:13Z")

</div>

Hi every one. In the IDE under Help it offers the possibility to download the offline reference. If I click the button it starts downloading but then I cannot find it. How do I excess the offline reference? Cheers, A…

---

## [A problem with variables or libraries](https://discourse.processing.org/t/a-problem-with-variables-or-libraries/43281)

<div class="topic-metadata">

**Author:** [@Vodin](https://discourse.processing.org/u/Vodin)\
**Replies:** 13\
**Last updated:** [December 3, 2023, 4:20pm UTC](https://discourse.processing.org/t/a-problem-with-variables-or-libraries/43281 "2023-12-03T16:20:43Z")

</div>

Hi, I Try to do a radar. But now I have an error: frame cannot be resolved to a variable. May be I have problems with my libryries or something like that. I believe in you guys. If it will help the radar consist of: 2 ul…

---

## [How to leave some things "untouched" by resetting the background](https://discourse.processing.org/t/how-to-leave-some-things-untouched-by-resetting-the-background/43368)

<div class="topic-metadata">

**Author:** [@c0depie](https://discourse.processing.org/u/c0depie)\
**Replies:** 1\
**Last updated:** [December 2, 2023, 2:08am UTC](https://discourse.processing.org/t/how-to-leave-some-things-untouched-by-resetting-the-background/43368 "2023-12-02T02:08:10Z")

</div>

essentially what I want is for the outer line to place a dot at the tip every frame, but without the background over lapping the previous dots static float GOLD = 1.618; void setup() { fullScreen(P2D); frameRate(2000)…

---

## [Execute code on PGraphics](https://discourse.processing.org/t/execute-code-on-pgraphics/43365)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 1\
**Last updated:** [December 1, 2023, 8:55pm UTC](https://discourse.processing.org/t/execute-code-on-pgraphics/43365 "2023-12-01T20:55:53Z")

</div>

Hi, i have a quesetion! I have a class: class Thing { int x = 0; Thing() { x = 50; } void create(int x\_) { this.x = x\_; } void display() { circle(width/2, height/2, x); } } i also have a Pgraphics: PGraphics ui; void…

---

## [Are there selection shortcuts in Processing?](https://discourse.processing.org/t/are-there-selection-shortcuts-in-processing/43354)

<div class="topic-metadata">

**Author:** [@laya](https://discourse.processing.org/u/laya)\
**Replies:** 2\
**Last updated:** [November 30, 2023, 12:53pm UTC](https://discourse.processing.org/t/are-there-selection-shortcuts-in-processing/43354 "2023-11-30T12:53:30Z")

</div>

pls help, thanks

---

## [I need help please (process pictures from a folder)](https://discourse.processing.org/t/i-need-help-please-process-pictures-from-a-folder/43341)

<div class="topic-metadata">

**Author:** [@Yanina](https://discourse.processing.org/u/Yanina)\
**Replies:** 3\
**Last updated:** [November 30, 2023, 7:53am UTC](https://discourse.processing.org/t/i-need-help-please-process-pictures-from-a-folder/43341 "2023-11-30T07:53:37Z")

</div>

Hello everybody! I am writing code that processes pictures into letters and I have a problem that the program does not consistently process pictures from a folder even though they are numbered (initially this is a video …

---

## [Help with a timer on a game to restart](https://discourse.processing.org/t/help-with-a-timer-on-a-game-to-restart/43349)

<div class="topic-metadata">

**Author:** [@beginn](https://discourse.processing.org/u/beginn)\
**Replies:** 1\
**Last updated:** [November 30, 2023, 12:27am UTC](https://discourse.processing.org/t/help-with-a-timer-on-a-game-to-restart/43349 "2023-11-30T00:27:02Z")

</div>

Ignore my notes on the code. But my timer just doesnt want to reset each time I play the game. I tried and I’m just not sure what to do. float ballX; float ballY; float xspeed; float yspeed; float speed =10; //INITAL S…

---

## [Processing 4.3 on Apple M3 chipset - Continuity Camera](https://discourse.processing.org/t/processing-4-3-on-apple-m3-chipset-continuity-camera/43343)

<div class="topic-metadata">

**Author:** [@simonbiggs](https://discourse.processing.org/u/simonbiggs)\
**Replies:** 0\
**Last updated:** [November 29, 2023, 6:16am UTC](https://discourse.processing.org/t/processing-4-3-on-apple-m3-chipset-continuity-camera/43343 "2023-11-29T06:16:06Z")

</div>

Hi all Have taken delivery of a new M3 Max Macbook Pro with Sonoma OS. Have got Processing 4.3 working on this. I am getting the following warning when running code that uses the GStreamer video library and an external …

---

## [Can't display image while on VScode](https://discourse.processing.org/t/cant-display-image-while-on-vscode/43327)

<div class="topic-metadata">

**Author:** [@boytedinho](https://discourse.processing.org/u/boytedinho)\
**Replies:** 2\
**Last updated:** [November 28, 2023, 1:51pm UTC](https://discourse.processing.org/t/cant-display-image-while-on-vscode/43327 "2023-11-28T13:51:00Z")

</div>

Hello! I’m having trouble displaying an image from my Processing sketch on VSCode with the follofing code: PImage heart1; float x,y; float rot; void setup() { size(720, 720); heart1 = loadImage("heart (1).PNG"); …

---

## [Help with coding game (catch falling images)](https://discourse.processing.org/t/help-with-coding-game-catch-falling-images/43325)

<div class="topic-metadata">

**Author:** [@anamw88](https://discourse.processing.org/u/anamw88)\
**Replies:** 9\
**Last updated:** [November 28, 2023, 1:22pm UTC](https://discourse.processing.org/t/help-with-coding-game-catch-falling-images/43325 "2023-11-28T13:22:46Z")

</div>

Hello, I’m trying to make a game where random food items will fall from the top of the screen and a mouth on the bottom will catch them. I found an existing game with this concept and edited to add my own food pictures. …

[Previous page](https://discourse.processing.org/c/processing/6.md?page=26)

[Next page](https://discourse.processing.org/c/processing/6.md?page=28)
