# Processing

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

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

**Page:** 78

---

## [Problem with duplicate objects when exporting to PDF](https://discourse.processing.org/t/problem-with-duplicate-objects-when-exporting-to-pdf/37364)

<div class="topic-metadata">

**Author:** [@S0r0ka](https://discourse.processing.org/u/S0r0ka)\
**Replies:** 10\
**Last updated:** [June 6, 2022, 6:37pm UTC](https://discourse.processing.org/t/problem-with-duplicate-objects-when-exporting-to-pdf/37364 "2022-06-06T18:37:47Z")

</div>

Could someone help me figure out how to upload to PDF? I draw a simple circle and export the result to PDF. When I open the file in a vector program, I see that two objects have been unloaded at the same place. One objec…

---

## [How do I get my PDF to render properly?](https://discourse.processing.org/t/how-do-i-get-my-pdf-to-render-properly/37349)

<div class="topic-metadata">

**Author:** [@jakebeamish](https://discourse.processing.org/u/jakebeamish)\
**Replies:** 4\
**Last updated:** [June 6, 2022, 5:58pm UTC](https://discourse.processing.org/t/how-do-i-get-my-pdf-to-render-properly/37349 "2022-06-06T17:58:08Z")

</div>

I’ve just started getting my feet wet with Processing, and I’m having trouble figuring out why I’m having problems with this sketch rendering out PDFs and SVGs that are missing a lot of the picture. I’m using the beginRe…

---

## [Meter library m.updateMeter() only int type](https://discourse.processing.org/t/meter-library-m-updatemeter-only-int-type/32070)

<div class="topic-metadata">

**Author:** [@processing\_user](https://discourse.processing.org/u/processing_user)\
**Replies:** 5\
**Last updated:** [June 6, 2022, 5:07pm UTC](https://discourse.processing.org/t/meter-library-m-updatemeter-only-int-type/32070 "2022-06-06T17:07:35Z")

</div>

hi, I wanted to use the meter library but seems like the meter m.updateMeter() can only work with integer int type but I have float value and needed to display float values. How can I make it work? thank you

---

## [Serial connection of Processing and Arduino](https://discourse.processing.org/t/serial-connection-of-processing-and-arduino/37344)

<div class="topic-metadata">

**Author:** [@jinalilili](https://discourse.processing.org/u/jinalilili)\
**Replies:** 4\
**Last updated:** [June 6, 2022, 5:06pm UTC](https://discourse.processing.org/t/serial-connection-of-processing-and-arduino/37344 "2022-06-06T17:06:25Z")

</div>

I’m try to make a serial connection from processing to arduino. The idea is that when I press “a”, the speaker from Arduino will produce a sound and the same goes with another key pressed but with a different note. Howev…

---

## [Can you please tell me what I am doing wrong?](https://discourse.processing.org/t/can-you-please-tell-me-what-i-am-doing-wrong/37330)

<div class="topic-metadata">

**Author:** [@eve](https://discourse.processing.org/u/eve)\
**Replies:** 3\
**Last updated:** [June 6, 2022, 11:14am UTC](https://discourse.processing.org/t/can-you-please-tell-me-what-i-am-doing-wrong/37330 "2022-06-06T11:14:57Z")

</div>

Hi there! I’m a real real beginner student… I’ve got a problem while doing my homework. the task is to make 3D QUAD that can be textured in ‘class’ using beginShape(QUADS), endShape(), vertex(x,y,z,tx,ty), texture…

---

## [How do I pick a string from an array on mouse press?](https://discourse.processing.org/t/how-do-i-pick-a-string-from-an-array-on-mouse-press/37310)

<div class="topic-metadata">

**Author:** [@seeker](https://discourse.processing.org/u/seeker)\
**Replies:** 2\
**Last updated:** [June 6, 2022, 6:40am UTC](https://discourse.processing.org/t/how-do-i-pick-a-string-from-an-array-on-mouse-press/37310 "2022-06-06T06:40:38Z")

</div>

Hi, I want to do the following: Display text from an array on the screen When mouse is not pressed, always display the first string in the array When mouse is pressed, choose a random string from the array and have thi…

---

## [How to import OPENGL library](https://discourse.processing.org/t/how-to-import-opengl-library/27387)

<div class="topic-metadata">

**Author:** [@proc8888](https://discourse.processing.org/u/proc8888)\
**Replies:** 17\
**Last updated:** [June 5, 2022, 1:35am UTC](https://discourse.processing.org/t/how-to-import-opengl-library/27387 "2022-06-05T01:35:47Z")

</div>

I would like to create 3D shapes using OPENGL or P3D mode. However, when I tried to import OPENGL library via Sketch menu (Sketch\>Import Library), it is not there? Thanks for help.

---

## [Do you know why there is an error? I found a new problem](https://discourse.processing.org/t/do-you-know-why-there-is-an-error-i-found-a-new-problem/37315)

<div class="topic-metadata">

**Author:** [@ell](https://discourse.processing.org/u/ell)\
**Replies:** 5\
**Last updated:** [June 4, 2022, 5:54pm UTC](https://discourse.processing.org/t/do-you-know-why-there-is-an-error-i-found-a-new-problem/37315 "2022-06-04T17:54:20Z")

</div>

Hello genius! I posted a question yesterday and it was solved, but I am facing a new problem again, so I am asking you again. There’s a problem with the first line of code. It is said that the active mode and static m…

---

## [Forcing a program to end](https://discourse.processing.org/t/forcing-a-program-to-end/37251)

<div class="topic-metadata">

**Author:** [@Timeless\_Mage](https://discourse.processing.org/u/Timeless_Mage)\
**Replies:** 4\
**Last updated:** [June 3, 2022, 1:17pm UTC](https://discourse.processing.org/t/forcing-a-program-to-end/37251 "2022-06-03T13:17:08Z")

</div>

I am writing code to click different colored pixels on my screen, and I need a way to stop it. I have tried the noLoop() function in multiple places, but that did not work. Does anyone have any idea of how to reliably …

---

## [How to keep the display window in the main screen?](https://discourse.processing.org/t/how-to-keep-the-display-window-in-the-main-screen/37302)

<div class="topic-metadata">

**Author:** [@all](https://discourse.processing.org/u/all)\
**Replies:** 1\
**Last updated:** [June 4, 2022, 8:23am UTC](https://discourse.processing.org/t/how-to-keep-the-display-window-in-the-main-screen/37302 "2022-06-04T08:23:58Z")

</div>

Hello, I use my laptop (macbook pro) with up to 4 video projectors. When I launch the display window of Processing, I need to open it only in the screen of my laptop (and not in the screen of another screen or video pr…

---

## [Do you know why there is an error?](https://discourse.processing.org/t/do-you-know-why-there-is-an-error/37301)

<div class="topic-metadata">

**Author:** [@ell](https://discourse.processing.org/u/ell)\
**Replies:** 6\
**Last updated:** [June 4, 2022, 5:46am UTC](https://discourse.processing.org/t/do-you-know-why-there-is-an-error/37301 "2022-06-04T05:46:33Z")

</div>

Hello genius! I’m a beginner and I need your help. Why is there an error in the first line of this code? int s\_num = 40; PShape s; PShape b; Virus Virus1 = new Virus\[s\_num\]; Cell Cells= new Cell\[40\]; void setup() …

---

## [How to put a "\>" sign after "==" in an if statement](https://discourse.processing.org/t/how-to-put-a-sign-after-in-an-if-statement/37313)

<div class="topic-metadata">

**Author:** [@mx.pq](https://discourse.processing.org/u/mx.pq)\
**Replies:** 3\
**Last updated:** [June 4, 2022, 5:08am UTC](https://discourse.processing.org/t/how-to-put-a-sign-after-in-an-if-statement/37313 "2022-06-04T05:08:15Z")

</div>

Hi, im kind of new to processing and I am working on a starter fighting game and one of the things that I am using to make it so my character can hit the enemy is if statements. I want to type it out like \< \< if(knight…

---

## [Loop with increasing inclination](https://discourse.processing.org/t/loop-with-increasing-inclination/37240)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 24\
**Last updated:** [June 3, 2022, 1:54pm UTC](https://discourse.processing.org/t/loop-with-increasing-inclination/37240 "2022-06-03T13:54:59Z")

</div>

Hi there! I want to make a loop with diagonal lines whose inclination grows little by little. My loop draws lines 10 by 10, but I want to incline them 1 by 1 and I don’t know how. If I use variable ‘i’ I think increase s…

---

## [How to import Minecraft data into Processing](https://discourse.processing.org/t/how-to-import-minecraft-data-into-processing/37290)

<div class="topic-metadata">

**Author:** [@remie92](https://discourse.processing.org/u/remie92)\
**Replies:** 2\
**Last updated:** [June 3, 2022, 10:49am UTC](https://discourse.processing.org/t/how-to-import-minecraft-data-into-processing/37290 "2022-06-03T10:49:56Z")

</div>

Hello, I have got a question about minecraft and processing Recently I made a minecraft chatbot that could give responses to things said in a server, but the way I did it makes it so that I could only use chat, and not…

---

## [How do I cycle/lerp between multiple colors](https://discourse.processing.org/t/how-do-i-cycle-lerp-between-multiple-colors/13441)

<div class="topic-metadata">

**Author:** [@laxaa](https://discourse.processing.org/u/laxaa)\
**Replies:** 17\
**Last updated:** [June 2, 2022, 5:13pm UTC](https://discourse.processing.org/t/how-do-i-cycle-lerp-between-multiple-colors/13441 "2022-06-02T17:13:20Z")

</div>

Hi I’m new to the world of Processing and I’ve turned to the community to get some help on a very specific issue I’ve been trying to solve. I’m creating a “BMP clock”( or a "circular BPM visualizer), so to speak, and I…

---

## [Loop with function](https://discourse.processing.org/t/loop-with-function/37261)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 5:13pm UTC](https://discourse.processing.org/t/loop-with-function/37261 "2022-06-02T17:13:16Z")

</div>

Howdy! I am trying to do a loop with these lines that I have created on function “brush” but I only can draw it once. Could you please tell me how repeat this line with a loop? void setup(){ size(1000,1000); backgrou…

---

## [Button connection from Arduino to Processing](https://discourse.processing.org/t/button-connection-from-arduino-to-processing/37192)

<div class="topic-metadata">

**Author:** [@friedadedoncker](https://discourse.processing.org/u/friedadedoncker)\
**Replies:** 7\
**Last updated:** [June 2, 2022, 5:00pm UTC](https://discourse.processing.org/t/button-connection-from-arduino-to-processing/37192 "2022-06-02T17:00:32Z")

</div>

Hi! I’m trying to connect a button from Arduino to visuals in Processing. Can’t get it to work. I’m very new to this so any help and explanations are welcome!! (Potmeter works fine) Here is the Processing code: import…

---

## [I'm new and I need help with arrays](https://discourse.processing.org/t/im-new-and-i-need-help-with-arrays/37281)

<div class="topic-metadata">

**Author:** [@JosepAlqueza](https://discourse.processing.org/u/JosepAlqueza)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 4:40pm UTC](https://discourse.processing.org/t/im-new-and-i-need-help-with-arrays/37281 "2022-06-02T16:40:41Z")

</div>

Hello everyone! I’m new to the world of programming and need help with arrays. I have to do a practice where I have a multidimensional array (attached image) where the first column appears the position X and the second …

---

## [Time based project](https://discourse.processing.org/t/time-based-project/37258)

<div class="topic-metadata">

**Author:** [@activegenius](https://discourse.processing.org/u/activegenius)\
**Replies:** 1\
**Last updated:** [June 1, 2022, 3:44am UTC](https://discourse.processing.org/t/time-based-project/37258 "2022-06-01T03:44:47Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am working on a music video project in processing in which I will have a song playing with animations that correspond to the lyrics. I’m wonde…

---

## [Text drawing seems to be happening out of order, compared to a filter(BLUR)](https://discourse.processing.org/t/text-drawing-seems-to-be-happening-out-of-order-compared-to-a-filter-blur/37224)

<div class="topic-metadata">

**Author:** [@interstar](https://discourse.processing.org/u/interstar)\
**Replies:** 9\
**Last updated:** [May 31, 2022, 11:26pm UTC](https://discourse.processing.org/t/text-drawing-seems-to-be-happening-out-of-order-compared-to-a-filter-blur/37224 "2022-05-31T23:26:36Z")

</div>

I’m trying to generate a static image with a blurred background and some unblurred text in front of it. Here’s my code void drawIt() { background(0); strokeWeight(4); pushMatrix(); for (int j=0; j\<20…

---

## [How can I have my background change colors when I move my mouse across it?](https://discourse.processing.org/t/how-can-i-have-my-background-change-colors-when-i-move-my-mouse-across-it/10608)

<div class="topic-metadata">

**Author:** [@karatecake](https://discourse.processing.org/u/karatecake)\
**Replies:** 15\
**Last updated:** [May 31, 2022, 3:01pm UTC](https://discourse.processing.org/t/how-can-i-have-my-background-change-colors-when-i-move-my-mouse-across-it/10608 "2022-05-31T15:01:31Z")

</div>

I’m trying to make a background that changes color when the mouse moves around the screen. I’ve found some code that works but when I try pasting the working parts into my code it stops working The working parts: fill(…

---

## [createFont() – how to forcefully remove unused fonts from memory?](https://discourse.processing.org/t/createfont-how-to-forcefully-remove-unused-fonts-from-memory/37237)

<div class="topic-metadata">

**Author:** [@disuye](https://discourse.processing.org/u/disuye)\
**Replies:** 7\
**Last updated:** [May 31, 2022, 9:24am UTC](https://discourse.processing.org/t/createfont-how-to-forcefully-remove-unused-fonts-from-memory/37237 "2022-05-31T09:24:40Z")

</div>

(I’ll share MRE in a follow-up post, trying to think how best to summarise my code) I have an art project which runs the createFont() function several times per frame – pulling random TTF/OTF files out of a folder conta…

---

## [Find absolute path of the libraries folder from within a library?](https://discourse.processing.org/t/find-absolute-path-of-the-libraries-folder-from-within-a-library/37210)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 6:35am UTC](https://discourse.processing.org/t/find-absolute-path-of-the-libraries-folder-from-within-a-library/37210 "2022-05-31T06:35:10Z")

</div>

I’m currenty writing a library for using Quantum annealers with processing. However run programs on these I need my library to run python scripts and for that I first need my library to be able to find them. Is there a…

---

## [Celular automata won't wrap around the window](https://discourse.processing.org/t/celular-automata-wont-wrap-around-the-window/37229)

<div class="topic-metadata">

**Author:** [@rafalou38](https://discourse.processing.org/u/rafalou38)\
**Replies:** 1\
**Last updated:** [May 31, 2022, 6:01am UTC](https://discourse.processing.org/t/celular-automata-wont-wrap-around-the-window/37229 "2022-05-31T06:01:47Z")

</div>

I have partially implemented the Huegene cellular automata with processing, but I still have an issue: it wraps around the screen but stops just after, and I have no idea why code: color\[\]\[\] grid; int MUTATION\_RATE = …

---

## [Export a processing app from IntelliJ IDEA](https://discourse.processing.org/t/export-a-processing-app-from-intellij-idea/37203)

<div class="topic-metadata">

**Author:** [@LucaP](https://discourse.processing.org/u/LucaP)\
**Replies:** 4\
**Last updated:** [May 30, 2022, 1:57pm UTC](https://discourse.processing.org/t/export-a-processing-app-from-intellij-idea/37203 "2022-05-30T13:57:31Z")

</div>

Hi, Is it possible to export a processing app made in IntelliJ IDEA? I have managed to get it work -ish- with making a jar file export module in IntelliJ and uploading this to my linux environment but it has some weird…

---

## [How can find the distance between two 3D objects in a 3D space?](https://discourse.processing.org/t/how-can-find-the-distance-between-two-3d-objects-in-a-3d-space/37222)

<div class="topic-metadata">

**Author:** [@ell](https://discourse.processing.org/u/ell)\
**Replies:** 2\
**Last updated:** [May 30, 2022, 12:09pm UTC](https://discourse.processing.org/t/how-can-find-the-distance-between-two-3d-objects-in-a-3d-space/37222 "2022-05-30T12:09:06Z")

</div>

Hello genius! I’m a beginner and I need your help. How can I find the distance between two 3D objects in a 3D space?

---

## [I need help at my beginner idle game](https://discourse.processing.org/t/i-need-help-at-my-beginner-idle-game/26432)

<div class="topic-metadata">

**Author:** [@Dialias](https://discourse.processing.org/u/Dialias)\
**Replies:** 4\
**Last updated:** [May 30, 2022, 11:53am UTC](https://discourse.processing.org/t/i-need-help-at-my-beginner-idle-game/26432 "2022-05-30T11:53:32Z")

</div>

Hey there, iam a beginner at coding and i wanted to code a clicker game but then this text showed up in the console: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at processing.core.PApplet.r…

---

## [Multidimensional array](https://discourse.processing.org/t/multidimensional-array/37212)

<div class="topic-metadata">

**Author:** [@mvb](https://discourse.processing.org/u/mvb)\
**Replies:** 3\
**Last updated:** [May 30, 2022, 11:21am UTC](https://discourse.processing.org/t/multidimensional-array/37212 "2022-05-30T11:21:02Z")

</div>

I have the following code and I want to achieve the final picture. Can anyone help me to complete it? (this is not homework or anything like that, I am learning at home through examples.) float width\_columns, height\_r…

---

## [Can I stop the animation but still change amount of tiles?](https://discourse.processing.org/t/can-i-stop-the-animation-but-still-change-amount-of-tiles/37209)

<div class="topic-metadata">

**Author:** [@friedadedoncker](https://discourse.processing.org/u/friedadedoncker)\
**Replies:** 2\
**Last updated:** [May 30, 2022, 4:32am UTC](https://discourse.processing.org/t/can-i-stop-the-animation-but-still-change-amount-of-tiles/37209 "2022-05-30T04:32:52Z")

</div>

Can I, in this example of code, somehow stop the animation of the tiles changing but still be able to change the amount of tiles (with an Arduino pot)? If yes, how? Right now, when I stop the loop, the ability to chang…

---

## [PShape setStrokeWeight setStroke error](https://discourse.processing.org/t/pshape-setstrokeweight-setstroke-error/37147)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 7\
**Last updated:** [May 29, 2022, 7:46pm UTC](https://discourse.processing.org/t/pshape-setstrokeweight-setstroke-error/37147 "2022-05-29T19:46:17Z")

</div>

Hi all. I’ve come across an issue where after creating a PShape shape: .setStroke, .setStrokeWeight, shape.Stroke() and shape.strokeWeight() were throwing a GLException: GLBufferObjectTracker.mapBuffer() error. Here’s t…

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

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