# Processing

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

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

**Page:** 373

---

## [Fill() function for negative space](https://discourse.processing.org/t/fill-function-for-negative-space/2706)

<div class="topic-metadata">

**Author:** [@emilyhroderick](https://discourse.processing.org/u/emilyhroderick)\
**Replies:** 9\
**Last updated:** [August 17, 2018, 3:02pm UTC](https://discourse.processing.org/t/fill-function-for-negative-space/2706 "2018-08-17T15:02:36Z")

</div>

Hi there, I’m looking for a simple way to fill the space AROUND a shape rather than the space WITHIN a shape. Ideally I’m wanting this function so that when I use OpenCV on a webcam feed, processing puts a square around…

---

## [Problem with Mysql library : dbconnection.getString()](https://discourse.processing.org/t/problem-with-mysql-library-dbconnection-getstring/2681)

<div class="topic-metadata">

**Author:** [@Andress](https://discourse.processing.org/u/Andress)\
**Replies:** 2\
**Last updated:** [August 17, 2018, 2:34pm UTC](https://discourse.processing.org/t/problem-with-mysql-library-dbconnection-getstring/2681 "2018-08-17T14:34:43Z")

</div>

hi all, i’m trying to change the text “g” to “7” but the code doesn’t get in the if condition and when i use println, “g” appears.

---

## [Importing Depth Map data (XEF)?](https://discourse.processing.org/t/importing-depth-map-data-xef/2619)

<div class="topic-metadata">

**Author:** [@rcargb](https://discourse.processing.org/u/rcargb)\
**Replies:** 2\
**Last updated:** [August 17, 2018, 2:34pm UTC](https://discourse.processing.org/t/importing-depth-map-data-xef/2619 "2018-08-17T14:34:24Z")

</div>

Is there a way to import Depth Map data and/or XEF files into processing for use in a point cloud? I’ve seen a few topics on exporting, next to nothing on importing. I’ve not got a working Kinect atm and plan on using …

---

## [Images in PDF Export](https://discourse.processing.org/t/images-in-pdf-export/2693)

<div class="topic-metadata">

**Author:** [@freudje](https://discourse.processing.org/u/freudje)\
**Replies:** 1\
**Last updated:** [August 17, 2018, 8:32am UTC](https://discourse.processing.org/t/images-in-pdf-export/2693 "2018-08-17T08:32:52Z")

</div>

Relative newbie question. As the library states, images in PDF export don’t look very good: \* Images don’t look great, mostly because of the difference of expectations in how a PDF should look (scalable and high res) ve…

---

## [Multiple images to video](https://discourse.processing.org/t/multiple-images-to-video/2703)

<div class="topic-metadata">

**Author:** [@barekatf](https://discourse.processing.org/u/barekatf)\
**Replies:** 6\
**Last updated:** [August 16, 2018, 10:46pm UTC](https://discourse.processing.org/t/multiple-images-to-video/2703 "2018-08-16T22:46:33Z")

</div>

Hi I have 140 folders, each having 35 pictures. All the images have the exact same resolution. I would like to make a video of all pictures in a way that each picture is shown for only 1/30th of a second. I need help …

---

## [Pattern Attractors](https://discourse.processing.org/t/pattern-attractors/2535)

<div class="topic-metadata">

**Author:** [@jakejake](https://discourse.processing.org/u/jakejake)\
**Replies:** 21\
**Last updated:** [August 16, 2018, 8:54pm UTC](https://discourse.processing.org/t/pattern-attractors/2535 "2018-08-16T20:54:30Z")

</div>

Trying figure out how to get this functionality with processing. I know how to map distance from a single point to something like a circle width / height, but I have no idea how to tackle this. Is there an example sc…

---

## [Saving data and timestamps to csv (noob)](https://discourse.processing.org/t/saving-data-and-timestamps-to-csv-noob/2674)

<div class="topic-metadata">

**Author:** [@ripple18](https://discourse.processing.org/u/ripple18)\
**Replies:** 3\
**Last updated:** [August 16, 2018, 6:56pm UTC](https://discourse.processing.org/t/saving-data-and-timestamps-to-csv-noob/2674 "2018-08-16T18:56:42Z")

</div>

Hello! I’m trying to save data from my Arduino to a csv file using Processing. I’ve successfully saved the raw data (one number at a time) to a txt file, but my goal is to save both that data and timestamps to a csv. I …

---

## [\[SOLVED\] Problem running exported jar on linux](https://discourse.processing.org/t/solved-problem-running-exported-jar-on-linux/2672)

<div class="topic-metadata">

**Author:** [@SimJ](https://discourse.processing.org/u/SimJ)\
**Replies:** 6\
**Last updated:** [August 16, 2018, 5:02pm UTC](https://discourse.processing.org/t/solved-problem-running-exported-jar-on-linux/2672 "2018-08-16T17:02:33Z")

</div>

Hi, I exported my sketch for linux successfully, but I can’t find a way to run it now. I got 4 folders after the export, for different architectures, the one interesting me being application.linux64. It contains a fold…

---

## [textSize causing OutOfMemoryError](https://discourse.processing.org/t/textsize-causing-outofmemoryerror/2678)

<div class="topic-metadata">

**Author:** [@geek96boolean10](https://discourse.processing.org/u/geek96boolean10)\
**Replies:** 2\
**Last updated:** [August 16, 2018, 4:39pm UTC](https://discourse.processing.org/t/textsize-causing-outofmemoryerror/2678 "2018-08-16T16:39:03Z")

</div>

I have a program that requires textSize to increase over time. When running it gradually, i.e. textSize(4),5,6,7,etc., the number can reach a very high value without anything bad happening. However, if I try to start off…

---

## [Getting Data From a .txt File](https://discourse.processing.org/t/getting-data-from-a-txt-file/2625)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 5\
**Last updated:** [August 16, 2018, 11:23am UTC](https://discourse.processing.org/t/getting-data-from-a-txt-file/2625 "2018-08-16T11:23:15Z")

</div>

Hello, I am having some trouble with the logic for a project. I am trying to extract data from a .txt file. The data comes in chunks within a single text file. As an example, a text document might look like this: Th…

---

## [Movement of shapes in an orbit](https://discourse.processing.org/t/movement-of-shapes-in-an-orbit/2688)

<div class="topic-metadata">

**Author:** [@Kirrat](https://discourse.processing.org/u/Kirrat)\
**Replies:** 4\
**Last updated:** [August 16, 2018, 10:47am UTC](https://discourse.processing.org/t/movement-of-shapes-in-an-orbit/2688 "2018-08-16T10:47:32Z")

</div>

Hi I’m trying to make a shape appear and start moving in an orbit whenever any of the shape above is clicked. So far i’m able to make shapes appear but i want a single shape to appear on a single click but as you can se…

---

## [Load sounds with an array of SoundFile](https://discourse.processing.org/t/load-sounds-with-an-array-of-soundfile/2659)

<div class="topic-metadata">

**Author:** [@math](https://discourse.processing.org/u/math)\
**Replies:** 2\
**Last updated:** [August 16, 2018, 9:18am UTC](https://discourse.processing.org/t/load-sounds-with-an-array-of-soundfile/2659 "2018-08-16T09:18:52Z")

</div>

I try to load multiple sounds with an array of SoundFile, but I keep getting a Error: Soundfile doesn't exist. Pleae check path when I try to initalize the array. Here’s my function (I want it to return a SoundFile arra…

---

## [What is the difference between bezierVertex() and curveVertex()?](https://discourse.processing.org/t/what-is-the-difference-between-beziervertex-and-curvevertex/2683)

<div class="topic-metadata">

**Author:** [@tony](https://discourse.processing.org/u/tony)\
**Replies:** 1\
**Last updated:** [August 16, 2018, 8:02am UTC](https://discourse.processing.org/t/what-is-the-difference-between-beziervertex-and-curvevertex/2683 "2018-08-16T08:02:00Z")

</div>

More specifically, when would I use one over the other? I’ve used bezier() more recently, so I’m familiar with it’s mechanics and the concept of control points, but curveVertex() remains more opaque. I have yet to come …

---

## [Text added letter by letter](https://discourse.processing.org/t/text-added-letter-by-letter/2660)

<div class="topic-metadata">

**Author:** [@Luke](https://discourse.processing.org/u/Luke)\
**Replies:** 1\
**Last updated:** [August 15, 2018, 2:14pm UTC](https://discourse.processing.org/t/text-added-letter-by-letter/2660 "2018-08-15T14:14:05Z")

</div>

Hey, so here is a quick sketch as an example. I have added text to the screen all at once, just wondering if its possible to make the text appear letter by letter on the screen and how would this be achieved? Thanks. v…

---

## [How to add stroke/fill/colour options to svg shape](https://discourse.processing.org/t/how-to-add-stroke-fill-colour-options-to-svg-shape/2666)

<div class="topic-metadata">

**Author:** [@12345](https://discourse.processing.org/u/12345)\
**Replies:** 3\
**Last updated:** [August 16, 2018, 4:57am UTC](https://discourse.processing.org/t/how-to-add-stroke-fill-colour-options-to-svg-shape/2666 "2018-08-16T04:57:30Z")

</div>

Hi, I’m new to this and currently trying to figure out how to add stroke fill and colour options to my shape? this is my code so far

---

## [Display Window does not load if proxy server set](https://discourse.processing.org/t/display-window-does-not-load-if-proxy-server-set/2652)

<div class="topic-metadata">

**Author:** [@LibraryIT](https://discourse.processing.org/u/LibraryIT)\
**Replies:** 2\
**Last updated:** [August 15, 2018, 11:49pm UTC](https://discourse.processing.org/t/display-window-does-not-load-if-proxy-server-set/2652 "2018-08-15T23:49:02Z")

</div>

Hi Our organization is looking at offering processing workshops on our Learning Centre computers. However on the Windows 10 PCs with a proxy server set processing v3.4 will not load the Display Window. As soon as the p…

---

## [How to get the position of moving pixel with camera](https://discourse.processing.org/t/how-to-get-the-position-of-moving-pixel-with-camera/2494)

<div class="topic-metadata">

**Author:** [@l-q-s](https://discourse.processing.org/u/l-q-s)\
**Replies:** 9\
**Last updated:** [August 15, 2018, 9:09pm UTC](https://discourse.processing.org/t/how-to-get-the-position-of-moving-pixel-with-camera/2494 "2018-08-15T21:09:12Z")

</div>

I tried to convert the code on this url into the code that processing could run. MotionDetectionTest In order to capture the position of multiple moving pixels with the camera, I completed the conversion of some of the…

---

## [Control servos with SSC-32U \[URGENT\]](https://discourse.processing.org/t/control-servos-with-ssc-32u-urgent/2662)

<div class="topic-metadata">

**Author:** [@parvinFrzd](https://discourse.processing.org/u/parvinFrzd)\
**Replies:** 2\
**Last updated:** [August 15, 2018, 1:49pm UTC](https://discourse.processing.org/t/control-servos-with-ssc-32u-urgent/2662 "2018-08-15T13:49:18Z")

</div>

Hi I’m trying to move a servo from a position to another position. I’m using SSC-32U and Processing. the function seems very easy but when I run it, it stays at the minimum position and never goes to the maximum position…

---

## [Alternative to using get() in a big PGraphics](https://discourse.processing.org/t/alternative-to-using-get-in-a-big-pgraphics/2654)

<div class="topic-metadata">

**Author:** [@Extension\_Shoe](https://discourse.processing.org/u/Extension_Shoe)\
**Replies:** 5\
**Last updated:** [August 15, 2018, 8:49am UTC](https://discourse.processing.org/t/alternative-to-using-get-in-a-big-pgraphics/2654 "2018-08-15T08:49:39Z")

</div>

Hey so I am trying to write a simple space fighting game that can be played on LAN I am using PGraphics to generate a map that has a size of 10000x10000 (I know a bit overkill but I also tried 5000x5000 and increasing di…

---

## [Using custom \`main(String\[\] args)\` breaks file reading functions in Windows (e.g. \`loadShader()\`, \`loadImage()\`)](https://discourse.processing.org/t/using-custom-main-string-args-breaks-file-reading-functions-in-windows-e-g-loadshader-loadimage/2572)

<div class="topic-metadata">

**Author:** [@haschdl](https://discourse.processing.org/u/haschdl)\
**Replies:** 14\
**Last updated:** [August 14, 2018, 7:47pm UTC](https://discourse.processing.org/t/using-custom-main-string-args-breaks-file-reading-functions-in-windows-e-g-loadshader-loadimage/2572 "2018-08-14T19:47:33Z")

</div>

Hello, I’m using loadShader() and loading a file which is saved to the data folder. I changed my sketch to include a custom main() function, however the loadShader function doesn’t work after that (Processing 3.3.7, Wi…

---

## [Split screen in 4 (Processing 3.3.6 - Windows + Kinect v2)](https://discourse.processing.org/t/split-screen-in-4-processing-3-3-6-windows-kinect-v2/2570)

<div class="topic-metadata">

**Author:** [@Niubbie](https://discourse.processing.org/u/Niubbie)\
**Replies:** 6\
**Last updated:** [August 14, 2018, 2:24pm UTC](https://discourse.processing.org/t/split-screen-in-4-processing-3-3-6-windows-kinect-v2/2570 "2018-08-14T14:24:42Z")

</div>

Hi! I’m new in the Processing world, really new. I was looking on the web to find a way to split the screen in 4 parts, but i can’t find a code that helps me do this. Now i am using (or try to ahah) the 3.3.6 Processing…

---

## [Draw shiny lines](https://discourse.processing.org/t/draw-shiny-lines/2630)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 9\
**Last updated:** [August 14, 2018, 12:06pm UTC](https://discourse.processing.org/t/draw-shiny-lines/2630 "2018-08-14T12:06:18Z")

</div>

I friends, How can I do shiny lines like that in P2D mode (it’s an image from the last Aphex Twin clip) ?

---

## [How to duplicate the array within different size and location](https://discourse.processing.org/t/how-to-duplicate-the-array-within-different-size-and-location/2611)

<div class="topic-metadata">

**Author:** [@plum.jungwoo](https://discourse.processing.org/u/plum.jungwoo)\
**Replies:** 3\
**Last updated:** [August 14, 2018, 4:07am UTC](https://discourse.processing.org/t/how-to-duplicate-the-array-within-different-size-and-location/2611 "2018-08-14T04:07:20Z")

</div>

I am making a set of algorithms using the box2d library. I made 10 small boxes of p1 to p5. However, if you choose one of the following choices (p1 to p5), I hope it will appear in the middle of the screen, but I have no…

---

## [Is it possible to construct PDFs by merging many PGraphics?](https://discourse.processing.org/t/is-it-possible-to-construct-pdfs-by-merging-many-pgraphics/2522)

<div class="topic-metadata">

**Author:** [@PerryJohnson](https://discourse.processing.org/u/PerryJohnson)\
**Replies:** 15\
**Last updated:** [August 13, 2018, 10:40pm UTC](https://discourse.processing.org/t/is-it-possible-to-construct-pdfs-by-merging-many-pgraphics/2522 "2018-08-13T22:40:57Z")

</div>

I’m writing a program with undo/redo functionality. It works fine using image() method to the screen renderer but I lose vector data if I use that technique in PDF. Is there a way to merge PGraphics, preserving the vect…

---

## [Specific Image fade issues](https://discourse.processing.org/t/specific-image-fade-issues/2582)

<div class="topic-metadata">

**Author:** [@Nedelstein](https://discourse.processing.org/u/Nedelstein)\
**Replies:** 3\
**Last updated:** [August 13, 2018, 7:52pm UTC](https://discourse.processing.org/t/specific-image-fade-issues/2582 "2018-08-13T19:52:40Z")

</div>

Hi all, I have multiple images on my sketch and am trying to only get one to fade out, but I can’t seem to get the fade to only work for the one image. It’s fading out everything when I run it. Any help would be really …

---

## [New to Processing and need a little help](https://discourse.processing.org/t/new-to-processing-and-need-a-little-help/2616)

<div class="topic-metadata">

**Author:** [@yxzageo](https://discourse.processing.org/u/yxzageo)\
**Replies:** 2\
**Last updated:** [August 13, 2018, 5:59pm UTC](https://discourse.processing.org/t/new-to-processing-and-need-a-little-help/2616 "2018-08-13T17:59:10Z")

</div>

Hello, I’m running a program that someone else written. It runs smoothly but I want to understand what the code does. I have the following snippet: for (int i = n-1; i \> 0; i–) { int j = rand()%(i+1); image.pixels\[j\]…

---

## [Link controlP5 controls to public variables exposed by an object?](https://discourse.processing.org/t/link-controlp5-controls-to-public-variables-exposed-by-an-object/2510)

<div class="topic-metadata">

**Author:** [@niftyc](https://discourse.processing.org/u/niftyc)\
**Replies:** 5\
**Last updated:** [August 13, 2018, 4:57pm UTC](https://discourse.processing.org/t/link-controlp5-controls-to-public-variables-exposed-by-an-object/2510 "2018-08-13T16:57:18Z")

</div>

I’m enjoying learning about processing and I love the features of ControlP5. I’ve been using ControlP5 controls that link to global variables in my script. Then I tried to make a class to organize my variables a little m…

---

## [Rotate model face towards camera using face normal](https://discourse.processing.org/t/rotate-model-face-towards-camera-using-face-normal/2614)

<div class="topic-metadata">

**Author:** [@nosarious](https://discourse.processing.org/u/nosarious)\
**Replies:** 1\
**Last updated:** [August 13, 2018, 3:36pm UTC](https://discourse.processing.org/t/rotate-model-face-towards-camera-using-face-normal/2614 "2018-08-13T15:36:08Z")

</div>

I am having trouble trying to rotate the face of a 3d model so it faces the camera directly. I have this function so far, but the result is inconsistent. I would normally call this just before drawing the model. Assume …

---

## [Smoothening EMG signals from Myo armband](https://discourse.processing.org/t/smoothening-emg-signals-from-myo-armband/2479)

<div class="topic-metadata">

**Author:** [@palashsomani](https://discourse.processing.org/u/palashsomani)\
**Replies:** 9\
**Last updated:** [August 13, 2018, 2:15pm UTC](https://discourse.processing.org/t/smoothening-emg-signals-from-myo-armband/2479 "2018-08-13T14:15:01Z")

</div>

Hello everyone! I am doing a project using Myo armband with Processing. Using the myo-for-processing library, the signal data processing receives for the device is raw and hence very jittery. I need to smoothen that sign…

---

## [Problem with opening files (explorer)](https://discourse.processing.org/t/problem-with-opening-files-explorer/1807)

<div class="topic-metadata">

**Author:** [@MxFxM](https://discourse.processing.org/u/MxFxM)\
**Replies:** 16\
**Last updated:** [August 13, 2018, 2:12pm UTC](https://discourse.processing.org/t/problem-with-opening-files-explorer/1807 "2018-08-13T14:12:35Z")

</div>

Hi everyone, since today I have the problem that whenever I try to open a file with this code: public void load\_document\_button\_click(GButton source, GEvent event) { //\_CODE\_:load\_document\_button:817988: println("loa…

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

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