# Processing

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

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

**Page:** 202

---

## [Stopping the game when touching sides pong game](https://discourse.processing.org/t/stopping-the-game-when-touching-sides-pong-game/21810)

<div class="topic-metadata">

**Author:** [@mrporcessing](https://discourse.processing.org/u/mrporcessing)\
**Replies:** 3\
**Last updated:** [June 13, 2020, 10:48am UTC](https://discourse.processing.org/t/stopping-the-game-when-touching-sides-pong-game/21810 "2020-06-13T10:48:27Z")

</div>

Hi, I just need help trying to stop the game, if the ball touches the left or right side of the screen and not the paddles. here is my code: int x,y,w,h,speedX,speedY;//circle variables int paddleX, paddleY,paddlew,padd…

---

## [I need to embed processing code in my Wordpress](https://discourse.processing.org/t/i-need-to-embed-processing-code-in-my-wordpress/20944)

<div class="topic-metadata">

**Author:** [@cndae](https://discourse.processing.org/u/cndae)\
**Replies:** 16\
**Last updated:** [June 13, 2020, 1:46am UTC](https://discourse.processing.org/t/i-need-to-embed-processing-code-in-my-wordpress/20944 "2020-06-13T01:46:18Z")

</div>

Hi there! I need to insert a processing code in wordpress, but I’m going crazy and I can’t do it. Does anyone know how I can do it? Thanks

---

## [Scan for servers](https://discourse.processing.org/t/scan-for-servers/21814)

<div class="topic-metadata">

**Author:** [@Moritz](https://discourse.processing.org/u/Moritz)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 10:11pm UTC](https://discourse.processing.org/t/scan-for-servers/21814 "2020-06-12T22:11:27Z")

</div>

Hey Guys, I’m using the Processing network library and want to search for possible Processing servers. How is that possible?

---

## [Is it possible to not have the generic windows close buttons and make your own close button?](https://discourse.processing.org/t/is-it-possible-to-not-have-the-generic-windows-close-buttons-and-make-your-own-close-button/2013)

<div class="topic-metadata">

**Author:** [@Shimo](https://discourse.processing.org/u/Shimo)\
**Replies:** 6\
**Last updated:** [June 12, 2020, 8:06pm UTC](https://discourse.processing.org/t/is-it-possible-to-not-have-the-generic-windows-close-buttons-and-make-your-own-close-button/2013 "2020-06-12T20:06:00Z")

</div>

So I’m talking about applications like discord, they don’t have that ugly windows border around their application, the league of legends client also doesn’t have it, Photoshop also has a custom one. So I know it’s possib…

---

## [Sharing PImage or PGraphics between nested Applets](https://discourse.processing.org/t/sharing-pimage-or-pgraphics-between-nested-applets/21793)

<div class="topic-metadata">

**Author:** [@johnbentcope](https://discourse.processing.org/u/johnbentcope)\
**Replies:** 5\
**Last updated:** [June 12, 2020, 6:35pm UTC](https://discourse.processing.org/t/sharing-pimage-or-pgraphics-between-nested-applets/21793 "2020-06-12T18:35:39Z")

</div>

I’m attempting to write an application that will stream a single incoming video feed to both eyes using an Oculus Rift DK2. In Linux, I’ve configured the Rift as a second monitor. Thanks to another topic on here, I’m abl…

---

## [\[newbie\] How can I record output audio and/or send it to my MOTU audio interface](https://discourse.processing.org/t/newbie-how-can-i-record-output-audio-and-or-send-it-to-my-motu-audio-interface/21813)

<div class="topic-metadata">

**Author:** [@henrybirdseye](https://discourse.processing.org/u/henrybirdseye)\
**Replies:** 0\
**Last updated:** [June 12, 2020, 5:08pm UTC](https://discourse.processing.org/t/newbie-how-can-i-record-output-audio-and-or-send-it-to-my-motu-audio-interface/21813 "2020-06-12T17:08:53Z")

</div>

I’m new to Processing and have spent a lot of time on PureData this past year, with the goal of drawing on oscilloscopes. I’m, of course, using Ted Davis’ excellent XYScope library. I want to record or save to disc audi…

---

## [Output window pixels very small](https://discourse.processing.org/t/output-window-pixels-very-small/21790)

<div class="topic-metadata">

**Author:** [@R1S8K](https://discourse.processing.org/u/R1S8K)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 4:30pm UTC](https://discourse.processing.org/t/output-window-pixels-very-small/21790 "2020-06-12T16:30:10Z")

</div>

Hi, I want to use processing to simulate LCD output with C code. I did a test loading a .bmp file and it worked but the output window is too small. How to increase the size of the overall output window ? I think the …

---

## [ArrayList with boolean type crashing on use of the .get function](https://discourse.processing.org/t/arraylist-with-boolean-type-crashing-on-use-of-the-get-function/21807)

<div class="topic-metadata">

**Author:** [@TheEternalDragon](https://discourse.processing.org/u/TheEternalDragon)\
**Replies:** 2\
**Last updated:** [June 12, 2020, 3:18pm UTC](https://discourse.processing.org/t/arraylist-with-boolean-type-crashing-on-use-of-the-get-function/21807 "2020-06-12T15:18:24Z")

</div>

I am trying to use an arraylist of booleans but when using the .get function on the array the program crashes, so I figured I should have iniatilized the values however when trying to do so it simply seems to skip over t…

---

## [The first random value is always the same when using randomSeed](https://discourse.processing.org/t/the-first-random-value-is-always-the-same-when-using-randomseed/21700)

<div class="topic-metadata">

**Author:** [@Reva](https://discourse.processing.org/u/Reva)\
**Replies:** 5\
**Last updated:** [June 12, 2020, 1:21pm UTC](https://discourse.processing.org/t/the-first-random-value-is-always-the-same-when-using-randomseed/21700 "2020-06-12T13:21:41Z")

</div>

I’ve found that no matter how I change the seed, the first random value is always the same when using randomSeed(). Here is the a really simple test: void draw() { randomSeed(frameCount); println(frameCount + ": " +…

---

## [Help color movement](https://discourse.processing.org/t/help-color-movement/21764)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 9\
**Last updated:** [June 12, 2020, 12:21pm UTC](https://discourse.processing.org/t/help-color-movement/21764 "2020-06-12T12:21:01Z")

</div>

Ciao a tutti! Ho bisogno di un suggerimento per il mio lavoro: devo far in modo che le mie linee insieme ai miei rect() si muovano nel seguente modo: il mio codice è il seguente: color red = #FF0004; color yellow = …

---

## [Linee e Background](https://discourse.processing.org/t/linee-e-background/21802)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 12:20pm UTC](https://discourse.processing.org/t/linee-e-background/21802 "2020-06-12T12:20:23Z")

</div>

Ciao a tutti, ho un problema con il movimento di una linea: non capisco perchè se io voglio una linea che si muova a dx e a sin nel mio sketch questa si muove creando dello spazio bianco? color red = #FF0004; color yell…

---

## [Shared PGraphics instances - drawing](https://discourse.processing.org/t/shared-pgraphics-instances-drawing/21801)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 2\
**Last updated:** [June 12, 2020, 10:56am UTC](https://discourse.processing.org/t/shared-pgraphics-instances-drawing/21801 "2020-06-12T10:56:12Z")

</div>

NOTE: https://discourse.processing.org/t/pgraphics-begindraw-pgraphics-enddraw-alternatives/21769 how would i go about drawing to a shared PGraphics instance in the context each window that obtains the PGraphics instanc…

---

## [beginDraw endDraw optimizing (trying to reduce the amount of beginDraw endDraw calls required) fails to render](https://discourse.processing.org/t/begindraw-enddraw-optimizing-trying-to-reduce-the-amount-of-begindraw-enddraw-calls-required-fails-to-render/21803)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 0\
**Last updated:** [June 12, 2020, 10:51am UTC](https://discourse.processing.org/t/begindraw-enddraw-optimizing-trying-to-reduce-the-amount-of-begindraw-enddraw-calls-required-fails-to-render/21803 "2020-06-12T10:51:38Z")

</div>

in the following code Compositor compositor; void settings() { //fullScreen(P3D); // 31 fps size(400, 400, P3D); // 60 fps } class Applications\_Cube extends Window { @Override void draw() { graphics.lig…

---

## [Audio Not Playing With if Statements (Minim)](https://discourse.processing.org/t/audio-not-playing-with-if-statements-minim/21794)

<div class="topic-metadata">

**Author:** [@chemicalite](https://discourse.processing.org/u/chemicalite)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 6:25am UTC](https://discourse.processing.org/t/audio-not-playing-with-if-statements-minim/21794 "2020-06-12T06:25:02Z")

</div>

Hi all! I can’t seem to get sound files to play with this code here. I want different sound files to play when the user hits a certain key. I’m working on a project currently, here’s the code below! //Audio and Varia…

---

## [Can anybody help me to make this code have possibility to add multiple images?](https://discourse.processing.org/t/can-anybody-help-me-to-make-this-code-have-possibility-to-add-multiple-images/21770)

<div class="topic-metadata">

**Author:** [@Cassius](https://discourse.processing.org/u/Cassius)\
**Replies:** 10\
**Last updated:** [June 12, 2020, 10:33am UTC](https://discourse.processing.org/t/can-anybody-help-me-to-make-this-code-have-possibility-to-add-multiple-images/21770 "2020-06-12T10:33:54Z")

</div>

Hello everybody I am still new in processing so go easy on me,I have found this code and have been trying how to make so that I can add multiple images to this sketch and on mouswheel() it changes images.I would appreci…

---

## [Bouncing ball with paddle](https://discourse.processing.org/t/bouncing-ball-with-paddle/21798)

<div class="topic-metadata">

**Author:** [@mrporcessing](https://discourse.processing.org/u/mrporcessing)\
**Replies:** 1\
**Last updated:** [June 12, 2020, 9:03am UTC](https://discourse.processing.org/t/bouncing-ball-with-paddle/21798 "2020-06-12T09:03:30Z")

</div>

Hi, I just need it so that the ball will bounce off the two paddles. I don’t know the proper code for it. Code: int x,y,w,h,speedX,speedY;//circle variables int paddleX, paddleY,paddlew,paddleH,paddleS,paddleX2,paddleY…

---

## [Need help with some GLSL shader code](https://discourse.processing.org/t/need-help-with-some-glsl-shader-code/21655)

<div class="topic-metadata">

**Author:** [@zenglenn](https://discourse.processing.org/u/zenglenn)\
**Replies:** 4\
**Last updated:** [June 12, 2020, 6:41am UTC](https://discourse.processing.org/t/need-help-with-some-glsl-shader-code/21655 "2020-06-12T06:41:13Z")

</div>

Hi I want to use Processing shaders to do some code art algorithms - but I want to do it all through a shader to take advantage of the high GPU power. I know the basics of shader programming, but what I’m stuck on at t…

---

## [Randomly Appearing Objects When Something Is Clicked](https://discourse.processing.org/t/randomly-appearing-objects-when-something-is-clicked/21792)

<div class="topic-metadata">

**Author:** [@chemicalite](https://discourse.processing.org/u/chemicalite)\
**Replies:** 8\
**Last updated:** [June 12, 2020, 2:12am UTC](https://discourse.processing.org/t/randomly-appearing-objects-when-something-is-clicked/21792 "2020-06-12T02:12:07Z")

</div>

Hey everyone! I’m currently working on a coding project and needed a bit of help on how to do something. I want to be able to have a different “text box” appear every time the user clicks the corner of the canvas. The t…

---

## [Issue when using Box2D and video libraries together](https://discourse.processing.org/t/issue-when-using-box2d-and-video-libraries-together/21754)

<div class="topic-metadata">

**Author:** [@EmmaB](https://discourse.processing.org/u/EmmaB)\
**Replies:** 1\
**Last updated:** [June 12, 2020, 12:44am UTC](https://discourse.processing.org/t/issue-when-using-box2d-and-video-libraries-together/21754 "2020-06-12T00:44:59Z")

</div>

Hello, I trying to create a sketch with both the Box2D for Processing and Video libraries. I have some boxes moving around and colliding with each other, and I want to texture these boxes with some video. However, I g…

---

## [Mapping a point a "sub" matrix to main/default matrix?](https://discourse.processing.org/t/mapping-a-point-a-sub-matrix-to-main-default-matrix/21568)

<div class="topic-metadata">

**Author:** [@Perro](https://discourse.processing.org/u/Perro)\
**Replies:** 6\
**Last updated:** [June 11, 2020, 9:31pm UTC](https://discourse.processing.org/t/mapping-a-point-a-sub-matrix-to-main-default-matrix/21568 "2020-06-11T21:31:46Z")

</div>

Hi, Can anyone advise how to map a point, calculated within a matrix, to a point in the “main” (top-level) matrix? More specifically, I have a situation where separate points are calculated within two separate matrices…

---

## [pGraphics.beginDraw() RuntimeException: Too many pushFramebuffer calls](https://discourse.processing.org/t/pgraphics-begindraw-runtimeexception-too-many-pushframebuffer-calls/21765)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 9:18pm UTC](https://discourse.processing.org/t/pgraphics-begindraw-runtimeexception-too-many-pushframebuffer-calls/21765 "2020-06-11T21:18:44Z")

</div>

why would i get RuntimeException: Too many pushFramebuffer calls when calling window.graphics = createGraphics(window.width, window.height, type); window.graphics.beginDraw(); java.lang.RuntimeExcepti…

---

## [Help reading data from a game (Diablo II) or analyzing an image from it for text recognition](https://discourse.processing.org/t/help-reading-data-from-a-game-diablo-ii-or-analyzing-an-image-from-it-for-text-recognition/21782)

<div class="topic-metadata">

**Author:** [@Randios](https://discourse.processing.org/u/Randios)\
**Replies:** 3\
**Last updated:** [June 11, 2020, 7:55pm UTC](https://discourse.processing.org/t/help-reading-data-from-a-game-diablo-ii-or-analyzing-an-image-from-it-for-text-recognition/21782 "2020-06-11T19:55:35Z")

</div>

Hello all. I’ve been using processing for a couple of years now and it’s worked well for most of my needs, but I am having some trouble with one particular project. The project is to make physical health/mana indicators…

---

## [Why doesn't processing recognize the key? (keyReleased)](https://discourse.processing.org/t/why-doesnt-processing-recognize-the-key-keyreleased/21777)

<div class="topic-metadata">

**Author:** [@Moritz](https://discourse.processing.org/u/Moritz)\
**Replies:** 3\
**Last updated:** [June 11, 2020, 7:13pm UTC](https://discourse.processing.org/t/why-doesnt-processing-recognize-the-key-keyreleased/21777 "2020-06-11T19:13:45Z")

</div>

Hi guys, why doesn’t Processing recognize the ‘e’ key when the ‘s’ and ‘d’ or ‘w’ and ‘d’ keys are already pressed? // Click on the image to give it focus, // and then press any key. int value = 0; void draw() { fi…

---

## [Execute OSCsend only once within draw() function](https://discourse.processing.org/t/execute-oscsend-only-once-within-draw-function/21761)

<div class="topic-metadata">

**Author:** [@SaltyBoy](https://discourse.processing.org/u/SaltyBoy)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 6:29pm UTC](https://discourse.processing.org/t/execute-oscsend-only-once-within-draw-function/21761 "2020-06-11T18:29:58Z")

</div>

For my Simon Game I want to execute a sound only once by sending a message to Pure Data (Pd), as soon as the color appear. Have you any tipps, how to do that? import oscP5.\*; import netP5.\*; OscP5 oscP5; NetAddress my…

---

## [Scoped beginDraw and endDraw](https://discourse.processing.org/t/scoped-begindraw-and-enddraw/21767)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 6:24pm UTC](https://discourse.processing.org/t/scoped-begindraw-and-enddraw/21767 "2020-06-11T18:24:52Z")

</div>

is there any way to use PGraphics.beginDraw and PGraphics.endDraw outside of the scope of PGraphics.\*() calls? for example if i do this then nothing renders void drawGraphics() { //graphics.endDraw(); if (dis…

---

## [Performance - draw vs redraw](https://discourse.processing.org/t/performance-draw-vs-redraw/21763)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 5\
**Last updated:** [June 11, 2020, 6:16pm UTC](https://discourse.processing.org/t/performance-draw-vs-redraw/21763 "2020-06-11T18:16:26Z")

</div>

when would it be good to use draw() and when would it be good to use redraw() and could a program ran via a main draw() loop be made faster by only using a redraw-when-needed approach? if so, is redraw, in a while(true…

---

## [Can I generate a QR code through'processing'?](https://discourse.processing.org/t/can-i-generate-a-qr-code-throughprocessing/21756)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 5:36pm UTC](https://discourse.processing.org/t/can-i-generate-a-qr-code-throughprocessing/21756 "2020-06-11T17:36:27Z")

</div>

I want to generate a QR code through the program. Is there a way? Help.

---

## [Off-screen render performance, multiple PGraphics objects](https://discourse.processing.org/t/off-screen-render-performance-multiple-pgraphics-objects/21783)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 0\
**Last updated:** [June 11, 2020, 5:22pm UTC](https://discourse.processing.org/t/off-screen-render-performance-multiple-pgraphics-objects/21783 "2020-06-11T17:22:24Z")

</div>

how can reduce the time taken to draw all my components? as, specifically, PGraphics.beginDraw() and PGraphics.endDraw() calls are expensive if there are a lot of them in a single call as if i do 400 by 400 i get 60 f…

---

## [Help me put static complex shapes in box2d](https://discourse.processing.org/t/help-me-put-static-complex-shapes-in-box2d/21736)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 5:15pm UTC](https://discourse.processing.org/t/help-me-put-static-complex-shapes-in-box2d/21736 "2020-06-11T17:15:26Z")

</div>

Hello everyone, help me please… I think everyone knows box2d library written by Shiffman. In his examples he adds boundaries only rectangle shape.I want to add a half circle to the edges of that rectangle. (From left a…

---

## [Issue with map() function](https://discourse.processing.org/t/issue-with-map-function/21715)

<div class="topic-metadata">

**Author:** [@Th3cG](https://discourse.processing.org/u/Th3cG)\
**Replies:** 6\
**Last updated:** [June 11, 2020, 4:19pm UTC](https://discourse.processing.org/t/issue-with-map-function/21715 "2020-06-11T16:19:30Z")

</div>

Hello, I’m trying to write some code to animate a logo that starts from the left of the screen, then bounces on the right side and stops. My initial sketch works with a width of 640px as follows; PImage logo; float x …

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

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