# Processing

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

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

**Page:** 203

---

## [Load GIFs in processing 3](https://discourse.processing.org/t/load-gifs-in-processing-3/21743)

<div class="topic-metadata">

**Author:** [@HajarHadi](https://discourse.processing.org/u/HajarHadi)\
**Replies:** 4\
**Last updated:** [June 11, 2020, 2:50pm UTC](https://discourse.processing.org/t/load-gifs-in-processing-3/21743 "2020-06-11T14:50:10Z")

</div>

Hello im using processing 3 but i cant load the GIFs can anybody tell me how to load a GIFs in processing thank you very much

---

## [Will This Perceptron Work?](https://discourse.processing.org/t/will-this-perceptron-work/21692)

<div class="topic-metadata">

**Author:** [@Adi](https://discourse.processing.org/u/Adi)\
**Replies:** 3\
**Last updated:** [June 9, 2020, 5:59pm UTC](https://discourse.processing.org/t/will-this-perceptron-work/21692 "2020-06-09T17:59:06Z")

</div>

I am trying to code my own perceptron, based sort of on The Coading Train’s example, as a biginner I wanted to make it as simple as possible, I also wanted to make something new. So I decided on this example: (x \* z)+(y…

---

## [Battery level on pc](https://discourse.processing.org/t/battery-level-on-pc/21740)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 12:50am UTC](https://discourse.processing.org/t/battery-level-on-pc/21740 "2020-06-11T00:50:41Z")

</div>

Hi everyone. I am interested to know if there is a way to know the pc battery level with any code. I just found it but only for android devices. Thanks

---

## [3rd Person Shooter translate() and camera()](https://discourse.processing.org/t/3rd-person-shooter-translate-and-camera/21633)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 10:56pm UTC](https://discourse.processing.org/t/3rd-person-shooter-translate-and-camera/21633 "2020-06-10T22:56:11Z")

</div>

Hello all, I would like to make a 3rd Person Shooter (or 3rd Person Player) where a player in 3D is followed by a camera. Move with mouse and wasd keys. I found a code in the forum. But in the code, the player and ca…

---

## [How do I use Processing to read and write data to an Arduino](https://discourse.processing.org/t/how-do-i-use-processing-to-read-and-write-data-to-an-arduino/21113)

<div class="topic-metadata">

**Author:** [@McLae5](https://discourse.processing.org/u/McLae5)\
**Replies:** 13\
**Last updated:** [June 10, 2020, 10:43pm UTC](https://discourse.processing.org/t/how-do-i-use-processing-to-read-and-write-data-to-an-arduino/21113 "2020-06-10T22:43:09Z")

</div>

Looking for a front end to manage Arduino data from a PC. I Know the arduino side (Serial IO and parsing), looking for a PC side option. The need is to read data from the arduino, make changes, and write updated data b…

---

## [Warnings using noSmooth() in setup()](https://discourse.processing.org/t/warnings-using-nosmooth-in-setup/21703)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 6\
**Last updated:** [June 10, 2020, 8:17pm UTC](https://discourse.processing.org/t/warnings-using-nosmooth-in-setup/21703 "2020-06-10T20:17:50Z")

</div>

Hello, Can anyone help me understand what is happening here? Ok: Ok: ? ? ? :)

---

## [GIF Of Inverting a binary Tree](https://discourse.processing.org/t/gif-of-inverting-a-binary-tree/21625)

<div class="topic-metadata">

**Author:** [@sharoha](https://discourse.processing.org/u/sharoha)\
**Replies:** 5\
**Last updated:** [June 10, 2020, 8:04pm UTC](https://discourse.processing.org/t/gif-of-inverting-a-binary-tree/21625 "2020-06-10T20:04:20Z")

</div>

Hi. I am trying to create a gif, for the inversion of a binary tree(swap the left and right child of a node). For that, I have created a sketch of a binary tree first And then I am trying to redraw the tree after swap…

---

## [Manually drawing an oval, in response to a straight mouse drag](https://discourse.processing.org/t/manually-drawing-an-oval-in-response-to-a-straight-mouse-drag/21710)

<div class="topic-metadata">

**Author:** [@ottenm](https://discourse.processing.org/u/ottenm)\
**Replies:** 7\
**Last updated:** [June 10, 2020, 7:41pm UTC](https://discourse.processing.org/t/manually-drawing-an-oval-in-response-to-a-straight-mouse-drag/21710 "2020-06-10T19:41:35Z")

</div>

I wrote a sketch for penning letters and digits on a touchscreen, and then manipulating them. I use it as a teaching tool for young kids. The penning part is trivial, just drawing lines in response to mouse events. I …

---

## [Can't get pixels out of my image](https://discourse.processing.org/t/cant-get-pixels-out-of-my-image/21733)

<div class="topic-metadata">

**Author:** [@marianalimoes](https://discourse.processing.org/u/marianalimoes)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 7:30pm UTC](https://discourse.processing.org/t/cant-get-pixels-out-of-my-image/21733 "2020-06-10T19:30:23Z")

</div>

Hello kind people, I’m following Mr. Daniel Shiffman’s tutorial on blob detection (the first one) Here is the code I copied from his GitHub. I also have the Blob tab (exactly as his) and a DCapture class. Because my ca…

---

## [Pixel position synchronization error with face detector](https://discourse.processing.org/t/pixel-position-synchronization-error-with-face-detector/21592)

<div class="topic-metadata">

**Author:** [@panic](https://discourse.processing.org/u/panic)\
**Replies:** 4\
**Last updated:** [June 10, 2020, 12:34pm UTC](https://discourse.processing.org/t/pixel-position-synchronization-error-with-face-detector/21592 "2020-06-10T12:34:23Z")

</div>

Hello, I am trying to create a code that creates pixels on a video following the movement of the face detector. He managed to create the pixelated effect on the video but it stays in the upper corner and does not follow …

---

## [Cannot find solution to: "Could not run the sketch (Target VM failed to initialize)"](https://discourse.processing.org/t/cannot-find-solution-to-could-not-run-the-sketch-target-vm-failed-to-initialize/21732)

<div class="topic-metadata">

**Author:** [@TheEternalDragon](https://discourse.processing.org/u/TheEternalDragon)\
**Replies:** 9\
**Last updated:** [June 10, 2020, 11:14am UTC](https://discourse.processing.org/t/cannot-find-solution-to-could-not-run-the-sketch-target-vm-failed-to-initialize/21732 "2020-06-10T11:14:01Z")

</div>

So I have been getting this error that is stated in the title and I have looked around a bit. The problem often seems to be a library or an nVidea driver however I am not using any nVidea drivers. So I am at a bit of a l…

---

## [I need help to keep score](https://discourse.processing.org/t/i-need-help-to-keep-score/21724)

<div class="topic-metadata">

**Author:** [@mrporcessing](https://discourse.processing.org/u/mrporcessing)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 10:11am UTC](https://discourse.processing.org/t/i-need-help-to-keep-score/21724 "2020-06-10T10:11:58Z")

</div>

Hi, I just need help adding the score to my game. Its doing random things. I need the score to be added separately when the ball touches each individual paddle. heres my code; //Screem int screenX = 600; int screenY = …

---

## [ArrayList size gives a nullPointerException, while data is stored](https://discourse.processing.org/t/arraylist-size-gives-a-nullpointerexception-while-data-is-stored/21712)

<div class="topic-metadata">

**Author:** [@BadGameDeveloper](https://discourse.processing.org/u/BadGameDeveloper)\
**Replies:** 10\
**Last updated:** [June 10, 2020, 7:56am UTC](https://discourse.processing.org/t/arraylist-size-gives-a-nullpointerexception-while-data-is-stored/21712 "2020-06-10T07:56:27Z")

</div>

Hi, I have a problem. My arraylist called spawns gives a NullPointerException on spawns.size. This happens in the constructor. I tried it with IntLists, but the same thing happened. The ArrayList should be read here. …

---

## [Block the PApplet(Processing) closing action when ESC is pressed](https://discourse.processing.org/t/block-the-papplet-processing-closing-action-when-esc-is-pressed/21657)

<div class="topic-metadata">

**Author:** [@Moritz](https://discourse.processing.org/u/Moritz)\
**Replies:** 4\
**Last updated:** [June 10, 2020, 4:49am UTC](https://discourse.processing.org/t/block-the-papplet-processing-closing-action-when-esc-is-pressed/21657 "2020-06-10T04:49:51Z")

</div>

Hey Guys, How can i block the closing action when ESC is pressed? The only way i found by myself was to overwrite the original closing method and creating a new one @Override public void exit(){ } public void exitPr…

---

## [How to create a slider locked to an axis](https://discourse.processing.org/t/how-to-create-a-slider-locked-to-an-axis/21693)

<div class="topic-metadata">

**Author:** [@rkdnson](https://discourse.processing.org/u/rkdnson)\
**Replies:** 4\
**Last updated:** [June 9, 2020, 3:04pm UTC](https://discourse.processing.org/t/how-to-create-a-slider-locked-to-an-axis/21693 "2020-06-09T15:04:15Z")

</div>

Hello, I am trying to figure out how to lock the position of a slider to a specific axis. The slider starts at a point on the edge of a circle and needs to end in the center. The user should be able to move the slider (…

---

## [Encoding 2 integers into RGBA without bitwise](https://discourse.processing.org/t/encoding-2-integers-into-rgba-without-bitwise/21718)

<div class="topic-metadata">

**Author:** [@zenglenn](https://discourse.processing.org/u/zenglenn)\
**Replies:** 1\
**Last updated:** [June 9, 2020, 9:16pm UTC](https://discourse.processing.org/t/encoding-2-integers-into-rgba-without-bitwise/21718 "2020-06-09T21:16:35Z")

</div>

I’m using Processing(Java) to write shaders that do lots of fancy code art. In my shader code I’m trying to get 2 integers (x,y positions) into an RGBA so I can send this colored pixel back to my Java program - and from …

---

## [Sabattier effect in processing](https://discourse.processing.org/t/sabattier-effect-in-processing/21553)

<div class="topic-metadata">

**Author:** [@gatz\_gaz](https://discourse.processing.org/u/gatz_gaz)\
**Replies:** 9\
**Last updated:** [June 9, 2020, 5:05pm UTC](https://discourse.processing.org/t/sabattier-effect-in-processing/21553 "2020-06-09T17:05:43Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, does anyone know how to do the Sabattier effect in processing? Example:

---

## [(Windows 10) How to use DirectShow to read camera image](https://discourse.processing.org/t/windows-10-how-to-use-directshow-to-read-camera-image/21689)

<div class="topic-metadata">

**Author:** [@marianalimoes](https://discourse.processing.org/u/marianalimoes)\
**Replies:** 4\
**Last updated:** [June 9, 2020, 2:43pm UTC](https://discourse.processing.org/t/windows-10-how-to-use-directshow-to-read-camera-image/21689 "2020-06-09T14:43:49Z")

</div>

Hello, I am new here in the forum, so I hope I’m posting this issue correctly. As it is already known in the microsoft surface community, some programs don’t read the camera correctly. Before, it used to happen with vid…

---

## [Wireframe images](https://discourse.processing.org/t/wireframe-images/21621)

<div class="topic-metadata">

**Author:** [@gatz\_gaz](https://discourse.processing.org/u/gatz_gaz)\
**Replies:** 2\
**Last updated:** [June 8, 2020, 3:28pm UTC](https://discourse.processing.org/t/wireframe-images/21621 "2020-06-08T15:28:23Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, guys! Does anyone know if there’s a code that turns the images this way?

---

## [Help with Oscp5 library](https://discourse.processing.org/t/help-with-oscp5-library/21664)

<div class="topic-metadata">

**Author:** [@Txispas3](https://discourse.processing.org/u/Txispas3)\
**Replies:** 1\
**Last updated:** [June 8, 2020, 7:39am UTC](https://discourse.processing.org/t/help-with-oscp5-library/21664 "2020-06-08T07:39:58Z")

</div>

Hello, I have a problem with the oscp5 library. you will see I have a device that connects via bluetooth to a pc with windows 10 and sends data to a program but to the local ip 127.0.0.1 I use processing to read them bu…

---

## [Give Mic access to Processing Sketch (Mac Catalina)](https://discourse.processing.org/t/give-mic-access-to-processing-sketch-mac-catalina/17953)

<div class="topic-metadata">

**Author:** [@snaders](https://discourse.processing.org/u/snaders)\
**Replies:** 4\
**Last updated:** [June 8, 2020, 6:48am UTC](https://discourse.processing.org/t/give-mic-access-to-processing-sketch-mac-catalina/17953 "2020-06-08T06:48:19Z")

</div>

I/m looking for a way to give my sketch access to my mic in Mac Catalina. I know you can manage your mic access in the System Preferences, but I can’t manually add apps. I already found this link: macOS Mojave and Catal…

---

## [Triangular buttons](https://discourse.processing.org/t/triangular-buttons/21666)

<div class="topic-metadata">

**Author:** [@Kiciak](https://discourse.processing.org/u/Kiciak)\
**Replies:** 3\
**Last updated:** [June 8, 2020, 3:34am UTC](https://discourse.processing.org/t/triangular-buttons/21666 "2020-06-08T03:34:25Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I know it might be quite a trivial topic but I really don’t have an idea of how to create a triangular button. I thought about using trigono…

---

## [Can anyone help with Hangman Code?](https://discourse.processing.org/t/can-anyone-help-with-hangman-code/21611)

<div class="topic-metadata">

**Author:** [@cammy](https://discourse.processing.org/u/cammy)\
**Replies:** 11\
**Last updated:** [June 7, 2020, 11:30pm UTC](https://discourse.processing.org/t/can-anyone-help-with-hangman-code/21611 "2020-06-07T23:30:32Z")

</div>

boolean newWord = true ; String w; char letter = '?'; char a, b, c; int currentScreen=0; void keyTyped() { letter = key; } void intro() { fill(0); textSize(26); text("HANGMAN", 195,50); strokeWeight(3); …

---

## [Can I make a custom library with eclipse C++](https://discourse.processing.org/t/can-i-make-a-custom-library-with-eclipse-c/21542)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 3\
**Last updated:** [June 7, 2020, 10:28pm UTC](https://discourse.processing.org/t/can-i-make-a-custom-library-with-eclipse-c/21542 "2020-06-07T22:28:47Z")

</div>

If there is a way of doing this could you please tell me how to do it. I know that I need eclipse and a library from GitHub, but how would I find it?

---

## [Unexpected strokes are shown on P2D PGraphics](https://discourse.processing.org/t/unexpected-strokes-are-shown-on-p2d-pgraphics/21660)

<div class="topic-metadata">

**Author:** [@Reva](https://discourse.processing.org/u/Reva)\
**Replies:** 6\
**Last updated:** [June 7, 2020, 4:51pm UTC](https://discourse.processing.org/t/unexpected-strokes-are-shown-on-p2d-pgraphics/21660 "2020-06-07T16:51:32Z")

</div>

Hi~I tried to draw custom shapes(hexagon) on a transparent P2D PGraphics for later I would change the background color. I don’t want any strokes, but there are unexpected outlines of the shapes shown on the P2D PGraphic. …

---

## [Multivideo player - breaks when replaying from start](https://discourse.processing.org/t/multivideo-player-breaks-when-replaying-from-start/21645)

<div class="topic-metadata">

**Author:** [@overFlow](https://discourse.processing.org/u/overFlow)\
**Replies:** 0\
**Last updated:** [June 7, 2020, 8:48am UTC](https://discourse.processing.org/t/multivideo-player-breaks-when-replaying-from-start/21645 "2020-06-07T08:48:53Z")

</div>

Hi. I am trying to create a multivideo player and have based mostly on this answer. I’m using Processing on Debian 10 with the beta video library recommended for Linux. Playing my 4 videos the first time works fine, but…

---

## [iOS app — Processing Output motion format](https://discourse.processing.org/t/ios-app-processing-output-motion-format/21525)

<div class="topic-metadata">

**Author:** [@tabrez](https://discourse.processing.org/u/tabrez)\
**Replies:** 6\
**Last updated:** [June 7, 2020, 1:21pm UTC](https://discourse.processing.org/t/ios-app-processing-output-motion-format/21525 "2020-06-07T13:21:56Z")

</div>

Hi all, I’m a bit of a beginner when it comes to Processing, but I can easliy do some nice still and video outputs using Processing. I’m on a client project, and going to create some visuals for an app — the visuals th…

---

## [Move with keyboard arrows](https://discourse.processing.org/t/move-with-keyboard-arrows/21637)

<div class="topic-metadata">

**Author:** [@bismarck](https://discourse.processing.org/u/bismarck)\
**Replies:** 2\
**Last updated:** [June 7, 2020, 12:37pm UTC](https://discourse.processing.org/t/move-with-keyboard-arrows/21637 "2020-06-07T12:37:46Z")

</div>

hello i am new here,i need help with this code because the thing that i try to move don’t do that, but if i leave one of the if/else statement the code run without problems. can you help me? (sorry for the bad english) …

---

## [Set volume of this example with Minim](https://discourse.processing.org/t/set-volume-of-this-example-with-minim/21628)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 1\
**Last updated:** [June 7, 2020, 8:41am UTC](https://discourse.processing.org/t/set-volume-of-this-example-with-minim/21628 "2020-06-07T08:41:31Z")

</div>

Hello, I would like to set the volume of this example. For example I would like to set the volume with mouse Y rather than resonance. I think it is easy but I block. :face\_with\_raised\_eyebrow: // import everything nec…

---

## [Blinking images are too fast](https://discourse.processing.org/t/blinking-images-are-too-fast/21632)

<div class="topic-metadata">

**Author:** [@SaltyBoy](https://discourse.processing.org/u/SaltyBoy)\
**Replies:** 4\
**Last updated:** [June 7, 2020, 5:21am UTC](https://discourse.processing.org/t/blinking-images-are-too-fast/21632 "2020-06-07T05:21:34Z")

</div>

I want to blink some images in my Simon game, but they are blinking very short. You can hardly see that a light (image) is turned on. boolean isPlayerReady = false; ArrayList\<Integer\> gameList; ArrayList\<Integer\> player…

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

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