# Processing

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

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

**Page:** 368

---

## [Trails on a webcam image that detects motion](https://discourse.processing.org/t/trails-on-a-webcam-image-that-detects-motion/3313)

<div class="topic-metadata">

**Author:** [@unknownplayer](https://discourse.processing.org/u/unknownplayer)\
**Replies:** 2\
**Last updated:** [September 7, 2018, 6:40pm UTC](https://discourse.processing.org/t/trails-on-a-webcam-image-that-detects-motion/3313 "2018-09-07T18:40:20Z")

</div>

Hello, sorry for the vague title, couldn’t know how to describe it in a sentence. Here is the problem I’m facing; I have this piece of code which detects any kind of motion and paints those pixels to white: float dg; …

---

## [Processing rectMode()](https://discourse.processing.org/t/processing-rectmode/3332)

<div class="topic-metadata">

**Author:** [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Replies:** 2\
**Last updated:** [September 7, 2018, 5:41pm UTC](https://discourse.processing.org/t/processing-rectmode/3332 "2018-09-07T17:41:34Z")

</div>

I think there is a bug with rectMode() in processing 3.4 rectMode() is affecting the way text gets drawn on the screen. background(0); text("Text 1", 0, 0, 100, 100); rectMode(CENTER); text("Text 2", 0, 30, 100, 100);…

---

## [How to apply a vhs effect?](https://discourse.processing.org/t/how-to-apply-a-vhs-effect/3268)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 4\
**Last updated:** [September 7, 2018, 4:12pm UTC](https://discourse.processing.org/t/how-to-apply-a-vhs-effect/3268 "2018-09-07T16:12:39Z")

</div>

Does anyone have an idea how to apply this vhs effect in a PImage?

---

## [How to make keyPressed work inside a while loop](https://discourse.processing.org/t/how-to-make-keypressed-work-inside-a-while-loop/3257)

<div class="topic-metadata">

**Author:** [@Yamin](https://discourse.processing.org/u/Yamin)\
**Replies:** 7\
**Last updated:** [September 7, 2018, 4:54pm UTC](https://discourse.processing.org/t/how-to-make-keypressed-work-inside-a-while-loop/3257 "2018-09-07T16:54:20Z")

</div>

Hi guys,I’m working on a project and I need to detect keypressed inside a while loop. Basically there is going to be couple of while loops and depending on the key pressed, the program will come out from the while loop. …

---

## [Trying to Draw a ball for a Pong Game](https://discourse.processing.org/t/trying-to-draw-a-ball-for-a-pong-game/3073)

<div class="topic-metadata">

**Author:** [@Blue\_Obsidian](https://discourse.processing.org/u/Blue_Obsidian)\
**Replies:** 13\
**Last updated:** [September 7, 2018, 2:19pm UTC](https://discourse.processing.org/t/trying-to-draw-a-ball-for-a-pong-game/3073 "2018-09-07T14:19:45Z")

</div>

float ballX = 200; float ballY = 200; float playerY = 0; boolean accX = true; boolean accY = true; boolean first = true; boolean game\_over = false; void setup (){ size(500, 500); background (0); fill(255); re…

---

## [\[99% SOLVED\]Klein Bottle rendering?](https://discourse.processing.org/t/99-solved-klein-bottle-rendering/2262)

<div class="topic-metadata">

**Author:** [@kll](https://discourse.processing.org/u/kll)\
**Replies:** 5\
**Last updated:** [September 7, 2018, 9:00am UTC](https://discourse.processing.org/t/99-solved-klein-bottle-rendering/2262 "2018-09-07T09:00:08Z")

</div>

i wanted to test the math i found at internet and draw a KLEIN BOTTLE and i try to render it by KleinS.beginShape(TRIANGLE\_STRIP); KleinS.vertex(xs, ys, zs); KleinS.vertex(xs+1, ys+1, zs+1); and i got something wha…

---

## [I fixed the issue #5317](https://discourse.processing.org/t/i-fixed-the-issue-5317/1371)

<div class="topic-metadata">

**Author:** [@ChristianBender](https://discourse.processing.org/u/ChristianBender)\
**Replies:** 0\
**Last updated:** [June 29, 2018, 7:24pm UTC](https://discourse.processing.org/t/i-fixed-the-issue-5317/1371 "2018-06-29T19:24:24Z")

</div>

Hello everybody! I fixed the issue #5317. And made a Pull Request on GitHub. Can someone look on it? Greetings Christian

---

## [Sound - error when trying to construct any object](https://discourse.processing.org/t/sound-error-when-trying-to-construct-any-object/3283)

<div class="topic-metadata">

**Author:** [@SoundProblems](https://discourse.processing.org/u/SoundProblems)\
**Replies:** 3\
**Last updated:** [September 7, 2018, 4:49am UTC](https://discourse.processing.org/t/sound-error-when-trying-to-construct-any-object/3283 "2018-09-07T04:49:42Z")

</div>

Hi all, I get “ArrayIndexOutOfBoundsException: -1” error when I run the following example code: import processing.sound.\*; SawOsc saw; void setup() { size(640, 360); background(255); // Create square wave os…

---

## [outputDevice in Sound library causing errors when specifying audio channel](https://discourse.processing.org/t/outputdevice-in-sound-library-causing-errors-when-specifying-audio-channel/3222)

<div class="topic-metadata">

**Author:** [@HauntedPliers](https://discourse.processing.org/u/HauntedPliers)\
**Replies:** 5\
**Last updated:** [September 7, 2018, 4:48am UTC](https://discourse.processing.org/t/outputdevice-in-sound-library-causing-errors-when-specifying-audio-channel/3222 "2018-09-07T04:48:51Z")

</div>

Hello, I’m trying to use the Sound library to select which channel of a soundcard to play audio from, but whenever I call the outputDevice command I get some extensive red text no audio. This is the case even when selec…

---

## [How to auto read and print the extra word from the updating text which can auto save](https://discourse.processing.org/t/how-to-auto-read-and-print-the-extra-word-from-the-updating-text-which-can-auto-save/3094)

<div class="topic-metadata">

**Author:** [@Iris](https://discourse.processing.org/u/Iris)\
**Replies:** 5\
**Last updated:** [September 7, 2018, 4:40am UTC](https://discourse.processing.org/t/how-to-auto-read-and-print-the-extra-word-from-the-updating-text-which-can-auto-save/3094 "2018-09-07T04:40:42Z")

</div>

at first I load string in setup and because every time I need to loadstring ,so I write in draw function too, and code below, but there are the problem ,null pointerException.seems like sometimes there are null in the a…

---

## [Point-Triangle Collision](https://discourse.processing.org/t/point-triangle-collision/3187)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 6\
**Last updated:** [September 6, 2018, 11:56pm UTC](https://discourse.processing.org/t/point-triangle-collision/3187 "2018-09-06T23:56:12Z")

</div>

I am creating a 3D engine that does not use wireframe, but rendering the triangles Is the problem! I have seen other code but I don’t understand it. https://www.openprocessing.org/sketch/6380#

---

## [Snmp processing](https://discourse.processing.org/t/snmp-processing/3335)

<div class="topic-metadata">

**Author:** [@tm7677](https://discourse.processing.org/u/tm7677)\
**Replies:** 0\
**Last updated:** [September 6, 2018, 11:55pm UTC](https://discourse.processing.org/t/snmp-processing/3335 "2018-09-06T23:55:54Z")

</div>

Does any have any experience using Processing to utilize snmp data for network and device monitoring?

---

## [Grafica using A TON of memory](https://discourse.processing.org/t/grafica-using-a-ton-of-memory/3300)

<div class="topic-metadata">

**Author:** [@Tglaser92](https://discourse.processing.org/u/Tglaser92)\
**Replies:** 6\
**Last updated:** [September 6, 2018, 10:09pm UTC](https://discourse.processing.org/t/grafica-using-a-ton-of-memory/3300 "2018-09-06T22:09:34Z")

</div>

Hello everybody, I’ve built a simple GUI in processing (P3) to show some sensor data in near real-time and have hit a bit of a snag with Grafica. I’m plotting three values over a 25 point span and it quickly (20s) uses…

---

## [How do I allow two players to play at once using only one keyboard?](https://discourse.processing.org/t/how-do-i-allow-two-players-to-play-at-once-using-only-one-keyboard/3320)

<div class="topic-metadata">

**Author:** [@domjanabi](https://discourse.processing.org/u/domjanabi)\
**Replies:** 4\
**Last updated:** [September 6, 2018, 6:38pm UTC](https://discourse.processing.org/t/how-do-i-allow-two-players-to-play-at-once-using-only-one-keyboard/3320 "2018-09-06T18:38:11Z")

</div>

I tried recreating pong and it went pretty well … except the part where you actually play the game. It doesn’t work with keyPressed() because I would need at least two instances of the key variable running at the same t…

---

## [A pathfinding solution](https://discourse.processing.org/t/a-pathfinding-solution/1809)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 27\
**Last updated:** [September 6, 2018, 9:47am UTC](https://discourse.processing.org/t/a-pathfinding-solution/1809 "2018-09-06T09:47:42Z")

</div>

Hi everybody, i ask my first question here and i recived great help, so here is my second question. i have creatures who move randomly for now, if they find the food they eat ect… but now i want to make some “water sou…

---

## [Minim Not Working on Ubuntu Server](https://discourse.processing.org/t/minim-not-working-on-ubuntu-server/3004)

<div class="topic-metadata">

**Author:** [@oOoOoO](https://discourse.processing.org/u/oOoOoO)\
**Replies:** 6\
**Last updated:** [September 5, 2018, 4:39pm UTC](https://discourse.processing.org/t/minim-not-working-on-ubuntu-server/3004 "2018-09-05T16:39:41Z")

</div>

Hello! I am trying to port over a processing sketch onto a Ubuntu server. Its being run in a headless mode, and I’m not sure if that has any effect on whats going on. For some reason I get ==== JavaSound Minim Error ==…

---

## [\[answered\] How to convert JSONObject to string without files?](https://discourse.processing.org/t/answered-how-to-convert-jsonobject-to-string-without-files/3286)

<div class="topic-metadata">

**Author:** [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Replies:** 2\
**Last updated:** [September 5, 2018, 4:09pm UTC](https://discourse.processing.org/t/answered-how-to-convert-jsonobject-to-string-without-files/3286 "2018-09-05T16:09:28Z")

</div>

I have a JSON object. I want to convert it to a single string. Right now, the only method for doing this in my mind is using the saveJSONObject(…) function which saves it as a text file, and then reading that file. Howe…

---

## [Image texture on a softbody](https://discourse.processing.org/t/image-texture-on-a-softbody/3193)

<div class="topic-metadata">

**Author:** [@Adrien](https://discourse.processing.org/u/Adrien)\
**Replies:** 3\
**Last updated:** [September 5, 2018, 1:18pm UTC](https://discourse.processing.org/t/image-texture-on-a-softbody/3193 "2018-09-05T13:18:56Z")

</div>

Hi, I want to make a image fly like an paper blow by the wind… Do you know if it’s possible to apply a texture on a softbody, for exemple using pixelflow lib? Thanks! A.

---

## [PDF export, how to tint() image?](https://discourse.processing.org/t/pdf-export-how-to-tint-image/3246)

<div class="topic-metadata">

**Author:** [@mloiz](https://discourse.processing.org/u/mloiz)\
**Replies:** 3\
**Last updated:** [September 5, 2018, 12:52pm UTC](https://discourse.processing.org/t/pdf-export-how-to-tint-image/3246 "2018-09-05T12:52:47Z")

</div>

With the processing.pdf library, is it normal that I cannot tint() an image ? import processing.pdf.\*; PImage img ; color orange, yellow, green; void setup() { size(600, 600); beginRecord(PDF, "testExport.pdf"); …

---

## [Reference and Help Tabs greyed out](https://discourse.processing.org/t/reference-and-help-tabs-greyed-out/1340)

<div class="topic-metadata">

**Author:** [@Livi](https://discourse.processing.org/u/Livi)\
**Replies:** 10\
**Last updated:** [September 5, 2018, 12:44pm UTC](https://discourse.processing.org/t/reference-and-help-tabs-greyed-out/1340 "2018-09-05T12:44:49Z")

</div>

Hi there, I’m new to Processing, and computer stuff in general. I have the most recent version of Processing, I have all my processing sketch files and the application file stored in the same folder on my mac. When I fi…

---

## [oscP5 library, oscEvent\_checkTypetag](https://discourse.processing.org/t/oscp5-library-oscevent-checktypetag/3229)

<div class="topic-metadata">

**Author:** [@netphysicist](https://discourse.processing.org/u/netphysicist)\
**Replies:** 7\
**Last updated:** [September 5, 2018, 1:23am UTC](https://discourse.processing.org/t/oscp5-library-oscevent-checktypetag/3229 "2018-09-05T01:23:10Z")

</div>

Hello, i am working on program about sending/receiving messages with oscP5 library…My problem is that in the begging i have declare my values as double but into the oscEvent(OscMessage m) i dont know how can i check if …

---

## [Minim on Raspberry Pi loadFile problems](https://discourse.processing.org/t/minim-on-raspberry-pi-loadfile-problems/3140)

<div class="topic-metadata">

**Author:** [@dislexigon](https://discourse.processing.org/u/dislexigon)\
**Replies:** 10\
**Last updated:** [September 4, 2018, 9:25pm UTC](https://discourse.processing.org/t/minim-on-raspberry-pi-loadfile-problems/3140 "2018-09-04T21:25:54Z")

</div>

Hey everyone, I’m having some problems loading files using the Minim library on a Raspberry Pi. If I comment out the loading of any one file, and the call of the associated function “playFile()” in the “draw()” loop, t…

---

## [\[SOLVED\] Having a visual problem with overlapping ellipses](https://discourse.processing.org/t/solved-having-a-visual-problem-with-overlapping-ellipses/3253)

<div class="topic-metadata">

**Author:** [@VimHax](https://discourse.processing.org/u/VimHax)\
**Replies:** 18\
**Last updated:** [September 4, 2018, 7:08pm UTC](https://discourse.processing.org/t/solved-having-a-visual-problem-with-overlapping-ellipses/3253 "2018-09-04T19:08:30Z")

</div>

I’m having a issue where I’m trying to cover a circle which is fully white (255) with a circle which is not fully white (100) but I can’t seem to get it covered… New Sketch - size(1000,1000); noStroke(); fill(255,255…

---

## [Stretching and tinting an object](https://discourse.processing.org/t/stretching-and-tinting-an-object/3050)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 2\
**Last updated:** [September 4, 2018, 5:55pm UTC](https://discourse.processing.org/t/stretching-and-tinting-an-object/3050 "2018-09-04T17:55:15Z")

</div>

Hello Processors, thank you for your time. I have a video object that bounces around and I program it so that when you mousePressed on either of its iterations it stretches but the mouse arrow moves awkwardly to the 0,0 …

---

## [Collision with Gravity](https://discourse.processing.org/t/collision-with-gravity/3089)

<div class="topic-metadata">

**Author:** [@Manatee](https://discourse.processing.org/u/Manatee)\
**Replies:** 10\
**Last updated:** [September 4, 2018, 2:13pm UTC](https://discourse.processing.org/t/collision-with-gravity/3089 "2018-09-04T14:13:58Z")

</div>

Hi all! Im here again looking for help from you super genius :smiley: Im building a mini (Ztupid) game so I can learn some physics object with PVector and Collision in 2D dimension. The game is pretty simple, There is…

---

## [Selling Finished projects](https://discourse.processing.org/t/selling-finished-projects/3238)

<div class="topic-metadata">

**Author:** [@codingking03](https://discourse.processing.org/u/codingking03)\
**Replies:** 2\
**Last updated:** [September 4, 2018, 3:50am UTC](https://discourse.processing.org/t/selling-finished-projects/3238 "2018-09-04T03:50:50Z")

</div>

Are you allowed to sell programs built in processing/p5.js?

---

## [Simple filling issue](https://discourse.processing.org/t/simple-filling-issue/3171)

<div class="topic-metadata">

**Author:** [@Rennorb](https://discourse.processing.org/u/Rennorb)\
**Replies:** 2\
**Last updated:** [September 3, 2018, 3:41pm UTC](https://discourse.processing.org/t/simple-filling-issue/3171 "2018-09-03T15:41:36Z")

</div>

Hi. I have tried to write a really simple board game, but the simplest code just refused to work. Here is the full code int cell = 30; int W = 1; int B = -W; int E = 0; int selectorX = -1; int selectorY = -1; int \[\]…

---

## [Background overwriting character](https://discourse.processing.org/t/background-overwriting-character/3234)

<div class="topic-metadata">

**Author:** [@Hedgy](https://discourse.processing.org/u/Hedgy)\
**Replies:** 2\
**Last updated:** [September 3, 2018, 8:56pm UTC](https://discourse.processing.org/t/background-overwriting-character/3234 "2018-09-03T20:56:13Z")

</div>

Hey all, I currently am trying to make a zelda like game. Right now I am working on the character. Currently, I have the background being drawn over the character. Here’s a gif of what I mean: https://gph.is/2oCQdmk And…

---

## [Automated Projection Mapping Calibration](https://discourse.processing.org/t/automated-projection-mapping-calibration/1718)

<div class="topic-metadata">

**Author:** [@imnotjohn](https://discourse.processing.org/u/imnotjohn)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 8:03pm UTC](https://discourse.processing.org/t/automated-projection-mapping-calibration/1718 "2018-09-03T20:03:06Z")

</div>

Greetings! I want to use Processing for a projection mapping project. I have multiple projectors in a small studio space. I am currently using MadMapper to create a mesh for the mapping, however, it is quite tedious and …

---

## [Slider Value Delay](https://discourse.processing.org/t/slider-value-delay/2629)

<div class="topic-metadata">

**Author:** [@sandy](https://discourse.processing.org/u/sandy)\
**Replies:** 16\
**Last updated:** [September 3, 2018, 6:13pm UTC](https://discourse.processing.org/t/slider-value-delay/2629 "2018-09-03T18:13:03Z")

</div>

I want to set the value of the duty cycle through the slider in processing, but when I set the slider value (0-255) there is a very long delay. How to overcome it ? This is my arduino code: #include \<SoftwareSerial.h\> …

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

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