# Processing

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

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

**Page:** 51

---

## [Is it possible to use a string for a type like "int something+""+i = i"](https://discourse.processing.org/t/is-it-possible-to-use-a-string-for-a-type-like-int-something-i-i/40624)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 3\
**Last updated:** [January 17, 2023, 9:37pm UTC](https://discourse.processing.org/t/is-it-possible-to-use-a-string-for-a-type-like-int-something-i-i/40624 "2023-01-17T21:37:33Z")

</div>

Hello! Is it possible to do this? int something, something1, something2, something3, something4, something5; for(int i = 0; i \< 5; i++) { something+""+i = i; } \*so it uses all 5 variables and doesnt make the va…

---

## [Drawing with blend mode BURN](https://discourse.processing.org/t/drawing-with-blend-mode-burn/40622)

<div class="topic-metadata">

**Author:** [@JohnC](https://discourse.processing.org/u/JohnC)\
**Replies:** 0\
**Last updated:** [January 17, 2023, 5:12pm UTC](https://discourse.processing.org/t/drawing-with-blend-mode-burn/40622 "2023-01-17T17:12:34Z")

</div>

So for the new Processing4 blendMode() is recommended but doesn’t support modes like BURN according to the reference. So if I wanna draw something, says a line from point (x1, y1) to point(x2, y2), with the BURN effect h…

---

## [Problems running P2D and P3D in 7y old laptop](https://discourse.processing.org/t/problems-running-p2d-and-p3d-in-7y-old-laptop/40057)

<div class="topic-metadata">

**Author:** [@div-p](https://discourse.processing.org/u/div-p)\
**Replies:** 3\
**Last updated:** [January 17, 2023, 4:03pm UTC](https://discourse.processing.org/t/problems-running-p2d-and-p3d-in-7y-old-laptop/40057 "2023-01-17T16:03:21Z")

</div>

I’d like to run Processing in an old computer (Acer ES1) with Xubuntu , but while everything seems to work fine, when I run sketches that use P2D or P3D I get the following error: InternalError: XXX0 profile\[2\]: GL2 -\> …

---

## [Licence for publishing finished executables?](https://discourse.processing.org/t/licence-for-publishing-finished-executables/35686)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 7:08am UTC](https://discourse.processing.org/t/licence-for-publishing-finished-executables/35686 "2023-01-17T07:08:05Z")

</div>

I have recently finished a piece of software and want to publish it as an .exe file so users without Java can use it. Do I run into licencing issues when publishing a version that doesn’t require Processing/Java (I have …

---

## [Where to safe my shader so that Processing finds it?](https://discourse.processing.org/t/where-to-safe-my-shader-so-that-processing-finds-it/40616)

<div class="topic-metadata">

**Author:** [@adrinalino](https://discourse.processing.org/u/adrinalino)\
**Replies:** 10\
**Last updated:** [January 17, 2023, 2:14am UTC](https://discourse.processing.org/t/where-to-safe-my-shader-so-that-processing-finds-it/40616 "2023-01-17T02:14:54Z")

</div>

Hi every one, I hope you can help me. I’m getting into programming shaders and would like to use processing to visualise them. According to “The Book of Shaders” the following code should load it : PShader shader; vo…

---

## [Processing video](https://discourse.processing.org/t/processing-video/40599)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 12\
**Last updated:** [January 16, 2023, 10:32pm UTC](https://discourse.processing.org/t/processing-video/40599 "2023-01-16T22:32:25Z")

</div>

I’m trying to code a movie program even though i could use a premade program to place all the clips together but the program cant find my file. I’m using video library for processing 4. it keeps saying “Could not load …

---

## [Unknown NullPointerException from G4P GUI Builder](https://discourse.processing.org/t/unknown-nullpointerexception-from-g4p-gui-builder/40601)

<div class="topic-metadata">

**Author:** [@exanova](https://discourse.processing.org/u/exanova)\
**Replies:** 1\
**Last updated:** [January 16, 2023, 4:55pm UTC](https://discourse.processing.org/t/unknown-nullpointerexception-from-g4p-gui-builder/40601 "2023-01-16T16:55:24Z")

</div>

Hi there! I want to fix the GUI error for the Magnifying Glass burning simulation program to run smoothly. When changing anything in the GUI from the G4P GUI Builder tool, the program always crashes with a NullPointerE…

---

## [Struggling to figure out solution to fix IndexOutOfBoundsException](https://discourse.processing.org/t/struggling-to-figure-out-solution-to-fix-indexoutofboundsexception/40603)

<div class="topic-metadata">

**Author:** [@Mr\_Derp\_Face](https://discourse.processing.org/u/Mr_Derp_Face)\
**Replies:** 2\
**Last updated:** [January 16, 2023, 3:04pm UTC](https://discourse.processing.org/t/struggling-to-figure-out-solution-to-fix-indexoutofboundsexception/40603 "2023-01-16T15:04:19Z")

</div>

I am working on a project where you have to shoot an enemy. Unfortunetly when the bullet hits the enemy if only one shot is currently active it will throw IndexOutOfBoundsException. I am lost on what to do the remedy thi…

---

## [The dist() function creates unexpected values](https://discourse.processing.org/t/the-dist-function-creates-unexpected-values/40577)

<div class="topic-metadata">

**Author:** [@JamOne](https://discourse.processing.org/u/JamOne)\
**Replies:** 2\
**Last updated:** [January 15, 2023, 7:43pm UTC](https://discourse.processing.org/t/the-dist-function-creates-unexpected-values/40577 "2023-01-15T19:43:04Z")

</div>

Hello, I struggle with this code. I even tried to talk to the ChatGBT but didn’t help. For some reason, “dist” creates big dips in its values and therefore bigger ellipses on the path where they should not be. See image…

---

## [Moving 2D airplanes along a curved path with nose pointing forward](https://discourse.processing.org/t/moving-2d-airplanes-along-a-curved-path-with-nose-pointing-forward/40588)

<div class="topic-metadata">

**Author:** [@hoend008](https://discourse.processing.org/u/hoend008)\
**Replies:** 2\
**Last updated:** [January 15, 2023, 11:36am UTC](https://discourse.processing.org/t/moving-2d-airplanes-along-a-curved-path-with-nose-pointing-forward/40588 "2023-01-15T11:36:57Z")

</div>

Hello all, I recently made an animation with objects moving along a curved path from A to B on a map. I now like to take things to the next level and draw a number of airplane shapes on a map and have them move along a …

---

## [ControlP5 addTab: How to implement tab navigation through pictures?](https://discourse.processing.org/t/controlp5-addtab-how-to-implement-tab-navigation-through-pictures/40537)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 1\
**Last updated:** [January 15, 2023, 8:00am UTC](https://discourse.processing.org/t/controlp5-addtab-how-to-implement-tab-navigation-through-pictures/40537 "2023-01-15T08:00:53Z")

</div>

Good afternoon, I seem to have succeeded in replacing the tabs with pictures, but there is a problem, I deliberately let the pictures go down to show that the tabs are not clickable through them! How else can you get aro…

---

## [Is color a typedef or something else?](https://discourse.processing.org/t/is-color-a-typedef-or-something-else/40595)

<div class="topic-metadata">

**Author:** [@Math\_Machine](https://discourse.processing.org/u/Math_Machine)\
**Replies:** 3\
**Last updated:** [January 15, 2023, 7:42am UTC](https://discourse.processing.org/t/is-color-a-typedef-or-something-else/40595 "2023-01-15T07:42:58Z")

</div>

Hi everybody! So, I’ve had this question for a while now. It appears the type color in java is equivalent to the int type in every single way, to the point that the built-in java compile-time error checker (I wish I knew…

---

## [PDF library is only exporting corner of image](https://discourse.processing.org/t/pdf-library-is-only-exporting-corner-of-image/40590)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 1\
**Last updated:** [January 14, 2023, 9:31pm UTC](https://discourse.processing.org/t/pdf-library-is-only-exporting-corner-of-image/40590 "2023-01-14T21:31:55Z")

</div>

Hi! My goal is to make a high resolution PDF of my processing sketch so I can print it large. When using the following PDF library I am only getting a portion of the sketch. Why is this? My sketch is size(900, 900); imp…

---

## [X64 single board computer for running Processing?](https://discourse.processing.org/t/x64-single-board-computer-for-running-processing/40589)

<div class="topic-metadata">

**Author:** [@Fossa](https://discourse.processing.org/u/Fossa)\
**Replies:** 0\
**Last updated:** [January 14, 2023, 9:03pm UTC](https://discourse.processing.org/t/x64-single-board-computer-for-running-processing/40589 "2023-01-14T21:03:28Z")

</div>

tl:dr: Asking for tips or opinions for an SBC (single board computer) other than Raspberry Pi for running Processing (Java). I have this one long running project where i have a rpi 4 running some graphics on a crt displ…

---

## [Video Compiling Error?](https://discourse.processing.org/t/video-compiling-error/40583)

<div class="topic-metadata">

**Author:** [@JHPC](https://discourse.processing.org/u/JHPC)\
**Replies:** 0\
**Last updated:** [January 14, 2023, 3:16pm UTC](https://discourse.processing.org/t/video-compiling-error/40583 "2023-01-14T15:16:02Z")

</div>

Dear Processing Community, I’ve used code from the Processing textbook for a video imaging exercise that detects presence and compares a new frame to a previously saved frame. On my iMac, I get a grey screen only and wi…

---

## [Recursive Tree & Conversion into 3D Space?](https://discourse.processing.org/t/recursive-tree-conversion-into-3d-space/40571)

<div class="topic-metadata">

**Author:** [@lemoney](https://discourse.processing.org/u/lemoney)\
**Replies:** 2\
**Last updated:** [January 14, 2023, 12:10pm UTC](https://discourse.processing.org/t/recursive-tree-conversion-into-3d-space/40571 "2023-01-14T12:10:34Z")

</div>

I’m studying the code below (written by S. Calderon) and we’ve been asked to turn the generated image from 2D to 3D. The code itself is quite complex and as a beginner, I’d appreciate any hints on how I can go about thi…

---

## [Identifying a tie on tictactoe](https://discourse.processing.org/t/identifying-a-tie-on-tictactoe/40574)

<div class="topic-metadata">

**Author:** [@berrae](https://discourse.processing.org/u/berrae)\
**Replies:** 2\
**Last updated:** [January 13, 2023, 7:49pm UTC](https://discourse.processing.org/t/identifying-a-tie-on-tictactoe/40574 "2023-01-13T19:49:34Z")

</div>

im wondering if theres a way to identify a tie in this tic tac toe game using the method of the rest of the game. here is my code \< Cell board; //Object int cols=3; //Number of columns int rows=3; //Number of rows i…

---

## [Passing variables in threads by ChatGPT](https://discourse.processing.org/t/passing-variables-in-threads-by-chatgpt/40379)

<div class="topic-metadata">

**Author:** [@x13420x](https://discourse.processing.org/u/x13420x)\
**Replies:** 9\
**Last updated:** [January 13, 2023, 4:28pm UTC](https://discourse.processing.org/t/passing-variables-in-threads-by-chatgpt/40379 "2023-01-13T16:28:25Z")

</div>

String\[\] array; int value; Thread thread; void setup() { // Initialize the array and value array = new String\[10\]; value = 42; // Start a new thread to save the file thread = new Thread(new Runnable() { …

---

## [Installing P4 on Codespaces](https://discourse.processing.org/t/installing-p4-on-codespaces/40553)

<div class="topic-metadata">

**Author:** [@x13420x](https://discourse.processing.org/u/x13420x)\
**Replies:** 0\
**Last updated:** [January 11, 2023, 3:37pm UTC](https://discourse.processing.org/t/installing-p4-on-codespaces/40553 "2023-01-11T15:37:40Z")

</div>

I would like help installing Processing 4 on a virtual machine on codespaces. I cloned 3 gits ant, p4 and temurin. Then installed JDK8 by accident and then JDK17 in the temurin branch. I am not sure how to install ant…

---

## [Drawing multiple objects with calculations related to the previous object](https://discourse.processing.org/t/drawing-multiple-objects-with-calculations-related-to-the-previous-object/40565)

<div class="topic-metadata">

**Author:** [@i-draw-monkeys](https://discourse.processing.org/u/i-draw-monkeys)\
**Replies:** 4\
**Last updated:** [January 13, 2023, 10:51am UTC](https://discourse.processing.org/t/drawing-multiple-objects-with-calculations-related-to-the-previous-object/40565 "2023-01-13T10:51:27Z")

</div>

I need help figuring out how to figure out something. So I have hardcoded two circles and an external and internal tangent line. Here is the code: PVector c1, c2; //center of circles PVector t1, t2; //tangent points of…

---

## [OSC listening port already in use after running program once](https://discourse.processing.org/t/osc-listening-port-already-in-use-after-running-program-once/40567)

<div class="topic-metadata">

**Author:** [@philmon7](https://discourse.processing.org/u/philmon7)\
**Replies:** 1\
**Last updated:** [January 13, 2023, 10:10am UTC](https://discourse.processing.org/t/osc-listening-port-already-in-use-after-running-program-once/40567 "2023-01-13T10:10:52Z")

</div>

I have a setup where I’m sending data from SuperCollider to Processing (and vice versa) using OSC messages. The code looks like this: osc = new OscP5(this, 12000); address = new NetAddress("127.0.0.1",57120); OscM…

---

## [How to make slider in application window?](https://discourse.processing.org/t/how-to-make-slider-in-application-window/40548)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 8\
**Last updated:** [January 13, 2023, 6:34am UTC](https://discourse.processing.org/t/how-to-make-slider-in-application-window/40548 "2023-01-13T06:34:51Z")

</div>

Good afternoon, when using the examples, I could not implement a slider for the entire scrolling of these applications. How can I make a slider that scrolls data in a window with an image background, regardless of the s…

---

## [Hide icon from windows start bar](https://discourse.processing.org/t/hide-icon-from-windows-start-bar/40572)

<div class="topic-metadata">

**Author:** [@Mikey83](https://discourse.processing.org/u/Mikey83)\
**Replies:** 1\
**Last updated:** [January 13, 2023, 5:28am UTC](https://discourse.processing.org/t/hide-icon-from-windows-start-bar/40572 "2023-01-13T05:28:53Z")

</div>

Hi all, is there a way to hide the icon of a sketch from the windows start bar? Ive seen it might be possible with JFrame but know nothing about that side of java, just wondering if its possible with PApplet or something…

---

## [Please explain this to me : multiplying done before dividing?](https://discourse.processing.org/t/please-explain-this-to-me-multiplying-done-before-dividing/40410)

<div class="topic-metadata">

**Author:** [@adrinalino](https://discourse.processing.org/u/adrinalino)\
**Replies:** 7\
**Last updated:** [January 12, 2023, 10:52pm UTC](https://discourse.processing.org/t/please-explain-this-to-me-multiplying-done-before-dividing/40410 "2023-01-12T22:52:10Z")

</div>

I was pulling my hairs for not being able to solve a simple N-body setup until I noticed something strange. I was under the impression that multiplying was done before dividing but not in this case. Am I overlooking some…

---

## [Open file selector while programm is running?](https://discourse.processing.org/t/open-file-selector-while-programm-is-running/40512)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 5\
**Last updated:** [January 12, 2023, 11:57am UTC](https://discourse.processing.org/t/open-file-selector-while-programm-is-running/40512 "2023-01-12T11:57:06Z")

</div>

i was trying to make a programm where if i klick a button, i can select an image! but if i try it just opens the selector over and over until my pc crashes! void setup() { size(960,540); } void draw() { if(mousePre…

---

## [How to talk \[YDLIDAR X4\] on USB port](https://discourse.processing.org/t/how-to-talk-ydlidar-x4-on-usb-port/40552)

<div class="topic-metadata">

**Author:** [@koba](https://discourse.processing.org/u/koba)\
**Replies:** 1\
**Last updated:** [January 11, 2023, 9:16pm UTC](https://discourse.processing.org/t/how-to-talk-ydlidar-x4-on-usb-port/40552 "2023-01-11T21:16:50Z")

</div>

I am trying to connect to YDLIDAR X4 with Processing serial library. As the first step, I want to send system commands to X4, for example 0xA5 0x60 to being scan mode. But X4 return nothing so far. X4 is definitely con…

---

## [Rotating Maze tile pattern](https://discourse.processing.org/t/rotating-maze-tile-pattern/40531)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 6\
**Last updated:** [January 11, 2023, 6:51pm UTC](https://discourse.processing.org/t/rotating-maze-tile-pattern/40531 "2023-01-11T18:51:44Z")

</div>

Hi Processing community! I am trying to figure out how to rasterize a PImage(); by connecting the rotation of each tile to a value each pixel. So far I have figured out the rotation of the rectangle and the maze tile pa…

---

## [Grid Java Processing](https://discourse.processing.org/t/grid-java-processing/39152)

<div class="topic-metadata">

**Author:** [@ArcJAVA](https://discourse.processing.org/u/ArcJAVA)\
**Replies:** 4\
**Last updated:** [October 16, 2022, 10:03am UTC](https://discourse.processing.org/t/grid-java-processing/39152 "2022-10-16T10:03:00Z")

</div>

hi, i want to use the 0 and 1 as the color. so black and a little lighter. but I cant seem to print it in the grafic screen. p.s im not allowed to use classes. int \[\]\[\] grid = { {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,…

---

## [SD Plotter 1.00 pass to source code?](https://discourse.processing.org/t/sd-plotter-1-00-pass-to-source-code/40551)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 1\
**Last updated:** [January 11, 2023, 2:17pm UTC](https://discourse.processing.org/t/sd-plotter-1-00-pass-to-source-code/40551 "2023-01-11T14:17:14Z")

</div>

SD Plotter 1.00 archive Good afternoon, I downloaded the image, unpacked it, but there is no access to the archives, it requires a password! Who knows?

---

## [Loading Class In Data Folder?](https://discourse.processing.org/t/loading-class-in-data-folder/40546)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 2\
**Last updated:** [January 11, 2023, 3:41am UTC](https://discourse.processing.org/t/loading-class-in-data-folder/40546 "2023-01-11T03:41:56Z")

</div>

Is there a way to load a class stored in the ‘data’ folder? No problem if the class is under a separate tab in the main app, but what if it is stored in the data folder?

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

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