# Processing

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

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

**Page:** 55

---

## [COMPARE DATAS to know if at least one data has the same value as another](https://discourse.processing.org/t/compare-datas-to-know-if-at-least-one-data-has-the-same-value-as-another/40133)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 21\
**Last updated:** [December 19, 2022, 2:38pm UTC](https://discourse.processing.org/t/compare-datas-to-know-if-at-least-one-data-has-the-same-value-as-another/40133 "2022-12-19T14:38:25Z")

</div>

Dear you :wink: I’m trying to find a way to compare two datas or more, in order to know if they has the same value. For exemple if the data TrigmodPos\[10\]=0 && TrigmodPos\[7\]=0, I would like to switch only theses datas…

---

## [Buttons and mousePressed](https://discourse.processing.org/t/buttons-and-mousepressed/40201)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 5\
**Last updated:** [December 19, 2022, 11:29pm UTC](https://discourse.processing.org/t/buttons-and-mousepressed/40201 "2022-12-19T23:29:18Z")

</div>

Hi, I did two kind of buttons, one is over the ET head, and link to other web page. Then i find a way to add 4 other button on the rigth side. When i click from top to bottom in each one, each of them turn into white, o…

---

## [Sometimes when the bullet touch the zombie, i receive an error!](https://discourse.processing.org/t/sometimes-when-the-bullet-touch-the-zombie-i-receive-an-error/40053)

<div class="topic-metadata">

**Author:** [@C2014](https://discourse.processing.org/u/C2014)\
**Replies:** 2\
**Last updated:** [December 19, 2022, 9:14pm UTC](https://discourse.processing.org/t/sometimes-when-the-bullet-touch-the-zombie-i-receive-an-error/40053 "2022-12-19T21:14:00Z")

</div>

IndexOutOfBoundsException: Index 1 out of bounds for length 1 This is my code, if someone can help me : Enemy\[\] zombie; int maxzombie=8; //Enemy zombie,zombie2,zombie3; boolean enemyspawn=false; PImage background,gif…

---

## [Buttons how to play and pause sound/music](https://discourse.processing.org/t/buttons-how-to-play-and-pause-sound-music/40205)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 4\
**Last updated:** [December 19, 2022, 8:48pm UTC](https://discourse.processing.org/t/buttons-how-to-play-and-pause-sound-music/40205 "2022-12-19T20:48:43Z")

</div>

Hi there, I am building this code and i just fixed 4 button on rigth side. When clicked turns white. I Would like to make them play a sound when cliked and pause, diferent sounds for each one of them. What should i do…

---

## [SelectInput: I like to tell it the folder to use?](https://discourse.processing.org/t/selectinput-i-like-to-tell-it-the-folder-to-use/13703)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 9\
**Last updated:** [December 19, 2022, 7:47pm UTC](https://discourse.processing.org/t/selectinput-i-like-to-tell-it-the-folder-to-use/13703 "2022-12-19T19:47:13Z")

</div>

Hello all, I‘d like to tell selectInput() which folder and file extension to use: File file1= new File( sketchPath(”“) + ”\*.txt“); selectInput(”...“, ”...“, file1); Doesn’t work. It starts with the Desktop Folder ins…

---

## [Help on how to do a text chart: string and buttons (Professor Layton’s game)](https://discourse.processing.org/t/help-on-how-to-do-a-text-chart-string-and-buttons-professor-layton-s-game/40198)

<div class="topic-metadata">

**Author:** [@FaySword](https://discourse.processing.org/u/FaySword)\
**Replies:** 2\
**Last updated:** [December 19, 2022, 6:17pm UTC](https://discourse.processing.org/t/help-on-how-to-do-a-text-chart-string-and-buttons-professor-layton-s-game/40198 "2022-12-19T18:17:26Z")

</div>

Hi, I’m a begginer at processing and I have to do some kind of videogame for university. I wanted to make a text chart, with a rect, and write on it some phrases with String. I wanted to make the phrases change when you …

---

## [Processing 4 stopped play sound, audio even with the native examples](https://discourse.processing.org/t/processing-4-stopped-play-sound-audio-even-with-the-native-examples/40157)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 3\
**Last updated:** [December 19, 2022, 6:02pm UTC](https://discourse.processing.org/t/processing-4-stopped-play-sound-audio-even-with-the-native-examples/40157 "2022-12-19T18:02:27Z")

</div>

hello there, My Processing just stopped playing any kind off sound, eaven the ones from native exemples. All others sofwares and music, videos are plays sounds normally. Only Processing has stoped. I do not know and …

---

## [Calculating from a "database" using a form?](https://discourse.processing.org/t/calculating-from-a-database-using-a-form/40192)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 5\
**Last updated:** [December 19, 2022, 12:03pm UTC](https://discourse.processing.org/t/calculating-from-a-database-using-a-form/40192 "2022-12-19T12:03:05Z")

</div>

Hi, I haven’t had as much time as I want to program and that means I feel that this post should be added in the beginners category. However! I got corrected when doing so and thinking back to when I did my first lines …

---

## [Why does Processing take 10 seconds to load and run any sketch?](https://discourse.processing.org/t/why-does-processing-take-10-seconds-to-load-and-run-any-sketch/40169)

<div class="topic-metadata">

**Author:** [@hallow255win](https://discourse.processing.org/u/hallow255win)\
**Replies:** 3\
**Last updated:** [December 17, 2022, 12:40pm UTC](https://discourse.processing.org/t/why-does-processing-take-10-seconds-to-load-and-run-any-sketch/40169 "2022-12-17T12:40:58Z")

</div>

I have Processing 4 on my win 7 PC, every time i click “run” button on the sketch, it takes 8-10 seconds to load and pop up the window of canvas regardless of sketch’s complexity. The drawing process is, on the other ha…

---

## [Help creating organic looking "blobs"](https://discourse.processing.org/t/help-creating-organic-looking-blobs/8777)

<div class="topic-metadata">

**Author:** [@Hetoft](https://discourse.processing.org/u/Hetoft)\
**Replies:** 12\
**Last updated:** [December 18, 2022, 3:22pm UTC](https://discourse.processing.org/t/help-creating-organic-looking-blobs/8777 "2022-12-18T15:22:01Z")

</div>

Hello there! I recently started getting to grips with Processing - and I love it so far! I want to be able to randomly create organic looking “blob” shapes - like these (which were drawn in Illustrator): Blobs What I…

---

## [NullPointerException error](https://discourse.processing.org/t/nullpointerexception-error/40167)

<div class="topic-metadata">

**Author:** [@onosecond](https://discourse.processing.org/u/onosecond)\
**Replies:** 7\
**Last updated:** [December 17, 2022, 6:46pm UTC](https://discourse.processing.org/t/nullpointerexception-error/40167 "2022-12-17T18:46:57Z")

</div>

Question \[\] questions; //array of objects for the question class Screens sc; // object of the screen class Answers ans; final int stateFirst=0; //cannot be changed final int stateGameOver=1; final int stateq1=2; final in…

---

## [Detect multiple key presses at once?](https://discourse.processing.org/t/detect-multiple-key-presses-at-once/40193)

<div class="topic-metadata">

**Author:** [@REK166](https://discourse.processing.org/u/REK166)\
**Replies:** 2\
**Last updated:** [December 17, 2022, 6:24pm UTC](https://discourse.processing.org/t/detect-multiple-key-presses-at-once/40193 "2022-12-17T18:24:13Z")

</div>

Is there a way to access all buttons currently pressed? If not, why? And if there is, how?

---

## [My recorded DXF file turns up tilted when I open it in CAD](https://discourse.processing.org/t/my-recorded-dxf-file-turns-up-tilted-when-i-open-it-in-cad/25133)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 10\
**Last updated:** [December 17, 2022, 6:45am UTC](https://discourse.processing.org/t/my-recorded-dxf-file-turns-up-tilted-when-i-open-it-in-cad/25133 "2022-12-17T06:45:20Z")

</div>

Hi, I have found a purpose for a program I have been working on a while back. The program is based on another program I didn’t create so I don’t know all the history on how it was made and I am a beginner in programming…

---

## [Organising a Large A-V Performance Sketch - Should I make Classes? Memory Management](https://discourse.processing.org/t/organising-a-large-a-v-performance-sketch-should-i-make-classes-memory-management/39943)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 5\
**Last updated:** [December 15, 2022, 4:36pm UTC](https://discourse.processing.org/t/organising-a-large-a-v-performance-sketch-should-i-make-classes-memory-management/39943 "2022-12-15T16:36:57Z")

</div>

Hi All, I’m developing a A-V performance and have a question about how to best structure it. I’m using TouchOSC on an iPad to control various parameters (MIDI to external audio gear, and OSC to Processing for visual). …

---

## [Syncing Processing with Ableton Live (via Midi timecode? Ableton Link?)](https://discourse.processing.org/t/syncing-processing-with-ableton-live-via-midi-timecode-ableton-link/40173)

<div class="topic-metadata">

**Author:** [@ann.phibian](https://discourse.processing.org/u/ann.phibian)\
**Replies:** 0\
**Last updated:** [December 15, 2022, 3:41pm UTC](https://discourse.processing.org/t/syncing-processing-with-ableton-live-via-midi-timecode-ableton-link/40173 "2022-12-15T15:41:56Z")

</div>

Hi! I have been trying to find a way to sync my processing code (which controls some flip dot modules) and Ableton Live, such that the dots will flip in sync to some music that’s playing in Live. (It can be the other …

---

## [Having Issue Setting Screen size in setup](https://discourse.processing.org/t/having-issue-setting-screen-size-in-setup/40096)

<div class="topic-metadata">

**Author:** [@avong](https://discourse.processing.org/u/avong)\
**Replies:** 10\
**Last updated:** [December 15, 2022, 2:45pm UTC](https://discourse.processing.org/t/having-issue-setting-screen-size-in-setup/40096 "2022-12-15T14:45:42Z")

</div>

In new release processing 4.1.1, The size(displaywidth, displayheight), this no longer work. It flags error. and when I use fullscreen() function. The close and maximize/minimize buttons will overshoot the screen. But…

---

## [Making a mergesort visualization](https://discourse.processing.org/t/making-a-mergesort-visualization/40158)

<div class="topic-metadata">

**Author:** [@MarcosN](https://discourse.processing.org/u/MarcosN)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 1:49am UTC](https://discourse.processing.org/t/making-a-mergesort-visualization/40158 "2022-12-15T01:49:07Z")

</div>

I made a topic earlier about quicksort, now i’m onto mergesort and it’s way harder because of the nature of it’s temporary arrays. What we were talking about on the other topic ended up becoming this code. It fails if …

---

## [MIDI Clock should drive a simple background change](https://discourse.processing.org/t/midi-clock-should-drive-a-simple-background-change/16278)

<div class="topic-metadata">

**Author:** [@littlecat](https://discourse.processing.org/u/littlecat)\
**Replies:** 4\
**Last updated:** [December 14, 2022, 6:44pm UTC](https://discourse.processing.org/t/midi-clock-should-drive-a-simple-background-change/16278 "2022-12-14T18:44:35Z")

</div>

Hi everyone! This is my first post into this forum. Thank u for having me ;). I’m trying to code a simple sketch: An alternating black/white background synced with Abletons clock. The snyc over midiBus and IAC works fi…

---

## [I can't drag my G4P GWindows - Help!](https://discourse.processing.org/t/i-cant-drag-my-g4p-gwindows-help/40142)

<div class="topic-metadata">

**Author:** [@charlielamus](https://discourse.processing.org/u/charlielamus)\
**Replies:** 1\
**Last updated:** [December 14, 2022, 5:12pm UTC](https://discourse.processing.org/t/i-cant-drag-my-g4p-gwindows-help/40142 "2022-12-14T17:12:37Z")

</div>

OK, I am a total newvie, and I am using Processing 3.5.4 with the G4P library. When I say newbie, I really, really mean it. A week ago I thought a class was a room full of kids, and I still have no clue what a handler is…

---

## [Error: "Hello Processing" / JDK 10 / OSX High Sierra / com/apple/eawt/QuitHandler not supported](https://discourse.processing.org/t/error-hello-processing-jdk-10-osx-high-sierra-com-apple-eawt-quithandler-not-supported/1396)

<div class="topic-metadata">

**Author:** [@hepi](https://discourse.processing.org/u/hepi)\
**Replies:** 4\
**Last updated:** [December 14, 2022, 4:05pm UTC](https://discourse.processing.org/t/error-hello-processing-jdk-10-osx-high-sierra-com-apple-eawt-quithandler-not-supported/1396 "2022-12-14T16:05:17Z")

</div>

Hi, I am trying to run a “Hello Processing” Java application (using Eclipse photon), with OSX High Sierra (10.13.x), having Java jdk 10. Is it supported? This is the code: import processing.core.PApplet; public clas…

---

## [Creating 3D animation with math expressions](https://discourse.processing.org/t/creating-3d-animation-with-math-expressions/40152)

<div class="topic-metadata">

**Author:** [@aalgoro](https://discourse.processing.org/u/aalgoro)\
**Replies:** 4\
**Last updated:** [December 14, 2022, 12:42pm UTC](https://discourse.processing.org/t/creating-3d-animation-with-math-expressions/40152 "2022-12-14T12:42:19Z")

</div>

Hello I’ve been trying to create this animation However, I have very liitle idea on how i can make it. I wrote a code for two spinning ellipses, but I don’t think that it is correct to start with circles. Maybe PVect…

---

## [Import custom font into the Processing editor?](https://discourse.processing.org/t/import-custom-font-into-the-processing-editor/40155)

<div class="topic-metadata">

**Author:** [@Mixel61](https://discourse.processing.org/u/Mixel61)\
**Replies:** 4\
**Last updated:** [December 13, 2022, 7:37pm UTC](https://discourse.processing.org/t/import-custom-font-into-the-processing-editor/40155 "2022-12-13T19:37:04Z")

</div>

I have searched for a way to use a custom font in the editor and asked in other places but so far I haven’t found a way to do it. Here is a picture of the fonts available right now, an ideally I would like to know how t…

---

## [Making an image change when you press the keyboard, like a slideshow](https://discourse.processing.org/t/making-an-image-change-when-you-press-the-keyboard-like-a-slideshow/40139)

<div class="topic-metadata">

**Author:** [@Darkafterzoom](https://discourse.processing.org/u/Darkafterzoom)\
**Replies:** 17\
**Last updated:** [December 13, 2022, 7:17am UTC](https://discourse.processing.org/t/making-an-image-change-when-you-press-the-keyboard-like-a-slideshow/40139 "2022-12-13T07:17:23Z")

</div>

Hello, I just need help with a simple code. PImage \[\] images = new PImage\[3\] images\[0\] = loadImage("ImageOne.jpg"); images\[1\] = loadImage("ImageTwo.jpg"); images\[2\] = loadImage("ImageThree.jpg"); I have several …

---

## [Think I found a bug in P3D](https://discourse.processing.org/t/think-i-found-a-bug-in-p3d/40117)

<div class="topic-metadata">

**Author:** [@Mikey83](https://discourse.processing.org/u/Mikey83)\
**Replies:** 6\
**Last updated:** [December 13, 2022, 2:20am UTC](https://discourse.processing.org/t/think-i-found-a-bug-in-p3d/40117 "2022-12-13T02:20:03Z")

</div>

So ive been working on a little project today and ran into an issue, wondering if anyone can tell my why its happening, theres a get() line commented out under the draw function, with it commented out it breaks and stops…

---

## [Initializing stacked circles in setup() vs draw() draws only one circle](https://discourse.processing.org/t/initializing-stacked-circles-in-setup-vs-draw-draws-only-one-circle/40136)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 2\
**Last updated:** [December 13, 2022, 1:39am UTC](https://discourse.processing.org/t/initializing-stacked-circles-in-setup-vs-draw-draws-only-one-circle/40136 "2022-12-13T01:39:16Z")

</div>

Hello all :nerd\_face: This is an extension of a previous topic thread here: Updating stacked circles drawn with curveVertex() and for-loop But the focus is a bit different to warrant a new thread perhaps. I have move…

---

## [Processing resize images without blur?](https://discourse.processing.org/t/processing-resize-images-without-blur/39982)

<div class="topic-metadata">

**Author:** [@turke1034](https://discourse.processing.org/u/turke1034)\
**Replies:** 6\
**Last updated:** [December 13, 2022, 1:39am UTC](https://discourse.processing.org/t/processing-resize-images-without-blur/39982 "2022-12-13T01:39:09Z")

</div>

I’ve done extensive research for this, but I can’t seem to find anything that works :frowning: My problem is, my game is themed around pixel art however when resizing images in processing, the image becomes blurry. My g…

---

## [Question does not show on screen](https://discourse.processing.org/t/question-does-not-show-on-screen/40127)

<div class="topic-metadata">

**Author:** [@onosecond](https://discourse.processing.org/u/onosecond)\
**Replies:** 4\
**Last updated:** [December 12, 2022, 11:13pm UTC](https://discourse.processing.org/t/question-does-not-show-on-screen/40127 "2022-12-12T23:13:44Z")

</div>

Hi everyone, I am working on a quiz game in processing. The first screen will display just a welcoming text and you should press space in order to move to the next screen. I am using states to control when each screen s…

---

## [Code-signing/notarising exported Processing App](https://discourse.processing.org/t/code-signing-notarising-exported-processing-app/40040)

<div class="topic-metadata">

**Author:** [@alexs](https://discourse.processing.org/u/alexs)\
**Replies:** 3\
**Last updated:** [December 12, 2022, 6:00pm UTC](https://discourse.processing.org/t/code-signing-notarising-exported-processing-app/40040 "2022-12-12T18:00:07Z")

</div>

Hello, is there a definitive method to codesign/notarise exported applications for OSX? I’d love to be able to share my little app without prompting the user to hack their way past the gate keeper… It was discussed a c…

---

## [Lerp unintentional offset: help me understand](https://discourse.processing.org/t/lerp-unintentional-offset-help-me-understand/40090)

<div class="topic-metadata">

**Author:** [@i-draw-monkeys](https://discourse.processing.org/u/i-draw-monkeys)\
**Replies:** 6\
**Last updated:** [December 12, 2022, 10:50am UTC](https://discourse.processing.org/t/lerp-unintentional-offset-help-me-understand/40090 "2022-12-12T10:50:44Z")

</div>

I honestly feel someone else will look at this and understand the issue right away, like I feel like it is glaringly obvious but somehow I don’t get it. I am simply trying to get a set of evenly set points that fall alon…

---

## [How do I move ball shape from corner to corner?](https://discourse.processing.org/t/how-do-i-move-ball-shape-from-corner-to-corner/40087)

<div class="topic-metadata">

**Author:** [@ilhxmun](https://discourse.processing.org/u/ilhxmun)\
**Replies:** 6\
**Last updated:** [December 11, 2022, 8:23pm UTC](https://discourse.processing.org/t/how-do-i-move-ball-shape-from-corner-to-corner/40087 "2022-12-11T20:23:44Z")

</div>

Hi, I need to make a program in processing where a ball moves from each corner of the screen to the other. I keep getting stuck at the 3rd corner. Another option for my assignment is making a ball grow bigger as it move…

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

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