# Processing

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

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

**Page:** 300

---

## [Problem with Big Decimal - Calculation process slows down](https://discourse.processing.org/t/problem-with-big-decimal-calculation-process-slows-down/11144)

<div class="topic-metadata">

**Author:** [@humayung](https://discourse.processing.org/u/humayung)\
**Replies:** 4\
**Last updated:** [May 12, 2019, 11:14am UTC](https://discourse.processing.org/t/problem-with-big-decimal-calculation-process-slows-down/11144 "2019-05-12T11:14:48Z")

</div>

Hey guys! i’m very new to Big Decimal i attempting to calculate mandelbrot set with high precision for ultra zoom capability, so i’m using Big Decimal to perform calculation. while calculating, the loop slows down. i …

---

## [Functions argument](https://discourse.processing.org/t/functions-argument/11010)

<div class="topic-metadata">

**Author:** [@Reggi](https://discourse.processing.org/u/Reggi)\
**Replies:** 5\
**Last updated:** [May 12, 2019, 10:14am UTC](https://discourse.processing.org/t/functions-argument/11010 "2019-05-12T10:14:31Z")

</div>

Hi how can I return two values from a void function? I have already used c++ and there you could use & in these situations. Is there something like this in processing? void example (char c, int a, int b){ if(c=='y'…

---

## [Random Images loop](https://discourse.processing.org/t/random-images-loop/11159)

<div class="topic-metadata">

**Author:** [@bkielak](https://discourse.processing.org/u/bkielak)\
**Replies:** 2\
**Last updated:** [May 12, 2019, 10:04am UTC](https://discourse.processing.org/t/random-images-loop/11159 "2019-05-12T10:04:51Z")

</div>

Hi guys, I’m a graphic designer and I’m currently working on the project in regards to the computation so I wanted to create randomized images overlap in processing. So far I made a basic code but it doesn’t really work…

---

## [Processing test(I would need it solutions)](https://discourse.processing.org/t/processing-test-i-would-need-it-solutions/11154)

<div class="topic-metadata">

**Author:** [@derecH](https://discourse.processing.org/u/derecH)\
**Replies:** 3\
**Last updated:** [May 12, 2019, 8:34am UTC](https://discourse.processing.org/t/processing-test-i-would-need-it-solutions/11154 "2019-05-12T08:34:21Z")

</div>

During the course, the graphical functions of the language are displayed only for the graphical functions of the language point () function and color adjustment functions can be used. • Our applications should have the…

---

## [Alpha weird behaviour](https://discourse.processing.org/t/alpha-weird-behaviour/11132)

<div class="topic-metadata">

**Author:** [@litiec](https://discourse.processing.org/u/litiec)\
**Replies:** 2\
**Last updated:** [May 12, 2019, 7:59am UTC](https://discourse.processing.org/t/alpha-weird-behaviour/11132 "2019-05-12T07:59:31Z")

</div>

Dear All I tried to research about it but I couldn’t find anything. I have this simple example: void setup(){ size(600,600, P3D); } void draw(){ background(0); translate(width/2, height/2, 0); rotateY(radia…

---

## [Processing Script very slow or not running at all](https://discourse.processing.org/t/processing-script-very-slow-or-not-running-at-all/11061)

<div class="topic-metadata">

**Author:** [@ernestwzh](https://discourse.processing.org/u/ernestwzh)\
**Replies:** 1\
**Last updated:** [May 12, 2019, 7:40am UTC](https://discourse.processing.org/t/processing-script-very-slow-or-not-running-at-all/11061 "2019-05-12T07:40:01Z")

</div>

Hello, I am trying to get my Kinect to control the framerate and opacity of a video file that is playing. The script either runs really slowly or not at all. I tried troubleshooting: Before using the Kinect, I tried u…

---

## [Drawing with code](https://discourse.processing.org/t/drawing-with-code/11148)

<div class="topic-metadata">

**Author:** [@dianap](https://discourse.processing.org/u/dianap)\
**Replies:** 1\
**Last updated:** [May 12, 2019, 6:21am UTC](https://discourse.processing.org/t/drawing-with-code/11148 "2019-05-12T06:21:29Z")

</div>

Hi! so I found this artists page full of drawings with code and I love it so much, though I dont know how to do that so if anybody has any recommendations on tutorials or introduction to this kind of processing coding th…

---

## [How do I assign 2 specific colors to an array of objects](https://discourse.processing.org/t/how-do-i-assign-2-specific-colors-to-an-array-of-objects/10984)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 10\
**Last updated:** [May 12, 2019, 2:30am UTC](https://discourse.processing.org/t/how-do-i-assign-2-specific-colors-to-an-array-of-objects/10984 "2019-05-12T02:30:10Z")

</div>

I would like to assign 2 colors to this array. However, I do not want each color confined to an area within the sketch (as it appears currently). How do rewrite so that half of the jellybeans are dark red and hal…

---

## [Problem about creating water waves when using mass spring damper system](https://discourse.processing.org/t/problem-about-creating-water-waves-when-using-mass-spring-damper-system/3101)

<div class="topic-metadata">

**Author:** [@zzz.mcw](https://discourse.processing.org/u/zzz.mcw)\
**Replies:** 6\
**Last updated:** [May 11, 2019, 8:22pm UTC](https://discourse.processing.org/t/problem-about-creating-water-waves-when-using-mass-spring-damper-system/3101 "2019-05-11T20:22:15Z")

</div>

I got a problem when trying to make water waves.I only got one jumping surfacepoint on a still water surface. Here is the code. lake lake; void setup() { size(400, 500); lake = new lake(); } void draw() { backgro…

---

## [Run sketch on dedicated gpu](https://discourse.processing.org/t/run-sketch-on-dedicated-gpu/11135)

<div class="topic-metadata">

**Author:** [@b\_and\_z](https://discourse.processing.org/u/b_and_z)\
**Replies:** 2\
**Last updated:** [May 11, 2019, 6:12pm UTC](https://discourse.processing.org/t/run-sketch-on-dedicated-gpu/11135 "2019-05-11T18:12:10Z")

</div>

So my setup is a windows 10 with an integrated gpu (HD Graphics 4600) and a dedicated gpu (NVIDIA GeForce GT 750M). Now I’m trying to VJ with processing\>spout\>VJ software (Resolume). When I run the spout sender example f…

---

## [How make an interface where you can upload a file](https://discourse.processing.org/t/how-make-an-interface-where-you-can-upload-a-file/11024)

<div class="topic-metadata">

**Author:** [@niciaguero](https://discourse.processing.org/u/niciaguero)\
**Replies:** 2\
**Last updated:** [May 11, 2019, 6:07pm UTC](https://discourse.processing.org/t/how-make-an-interface-where-you-can-upload-a-file/11024 "2019-05-11T18:07:08Z")

</div>

Hi, How can I make an interface where the user can browse the computer and upload any audio file they want through processing? Thanks for the help, Niciaguero

---

## [Creating an ocean simulation using PixelFlow](https://discourse.processing.org/t/creating-an-ocean-simulation-using-pixelflow/11020)

<div class="topic-metadata">

**Author:** [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)\
**Replies:** 1\
**Last updated:** [May 11, 2019, 6:05pm UTC](https://discourse.processing.org/t/creating-an-ocean-simulation-using-pixelflow/11020 "2019-05-11T18:05:39Z")

</div>

I’m trying to create an interactive desktop background using Processing and I need a simulation of a 2d ocean. The idea is for you to be able to drag on the water creating waves which will move fish. I’ve started using t…

---

## [Video not playing on one particular computer bought only for this project](https://discourse.processing.org/t/video-not-playing-on-one-particular-computer-bought-only-for-this-project/11083)

<div class="topic-metadata">

**Author:** [@DanielHUN](https://discourse.processing.org/u/DanielHUN)\
**Replies:** 2\
**Last updated:** [May 11, 2019, 2:34pm UTC](https://discourse.processing.org/t/video-not-playing-on-one-particular-computer-bought-only-for-this-project/11083 "2019-05-11T14:34:15Z")

</div>

So we bought a machine for simple green screen with webcam should be up and running on an exhibition. I wrote a simple code wich works on any other computer we ve tested on. Not on the one it should. Weirdly enough if we…

---

## [Resolution and Listing of Webcams](https://discourse.processing.org/t/resolution-and-listing-of-webcams/10752)

<div class="topic-metadata">

**Author:** [@jimeex](https://discourse.processing.org/u/jimeex)\
**Replies:** 4\
**Last updated:** [May 11, 2019, 12:29pm UTC](https://discourse.processing.org/t/resolution-and-listing-of-webcams/10752 "2019-05-11T12:29:58Z")

</div>

Hello everyone, We have an art project and we call someone to build a code that will allow us to switch between 3 webcams, with a duration and choice of the webcam, like a musical partition. So he write this : // //…

---

## [Minim: sound cracks on Pan and Gain](https://discourse.processing.org/t/minim-sound-cracks-on-pan-and-gain/11102)

<div class="topic-metadata">

**Author:** [@morisil](https://discourse.processing.org/u/morisil)\
**Replies:** 6\
**Last updated:** [May 11, 2019, 10:52am UTC](https://discourse.processing.org/t/minim-sound-cracks-on-pan-and-gain/11102 "2019-05-11T10:52:05Z")

</div>

I am having problem with controlling the playback of my audio files. The sound is somehow slightly chopped when pan and gain values are adjusted, especially if it is happening rapidly. Here is the code to reproduce the i…

---

## [Help with class and draw](https://discourse.processing.org/t/help-with-class-and-draw/10979)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 10\
**Last updated:** [May 6, 2019, 7:13pm UTC](https://discourse.processing.org/t/help-with-class-and-draw/10979 "2019-05-06T19:13:36Z")

</div>

Hi, I have a class with the variable lvl=1;. the problem is I want to display the “1” in draw by doing something like this: text(“lvl”,200,200,100,100); however this doesn’t work

---

## [Different behaviors of default vs. P2D renderer with low-alpha curves](https://discourse.processing.org/t/different-behaviors-of-default-vs-p2d-renderer-with-low-alpha-curves/10982)

<div class="topic-metadata">

**Author:** [@blakej](https://discourse.processing.org/u/blakej)\
**Replies:** 12\
**Last updated:** [May 11, 2019, 8:11am UTC](https://discourse.processing.org/t/different-behaviors-of-default-vs-p2d-renderer-with-low-alpha-curves/10982 "2019-05-11T08:11:00Z")

</div>

Hi all, I’m trying to understand a difference in behavior between the default 2D renderer and the P2D renderer. In short, the default renderer seems to generate a “softer” texture when overlapping many curves with low …

---

## [Save to SVG with edges visible](https://discourse.processing.org/t/save-to-svg-with-edges-visible/11117)

<div class="topic-metadata">

**Author:** [@pierdr](https://discourse.processing.org/u/pierdr)\
**Replies:** 2\
**Last updated:** [May 11, 2019, 5:43am UTC](https://discourse.processing.org/t/save-to-svg-with-edges-visible/11117 "2019-05-11T05:43:03Z")

</div>

Hi, I’m trying to save a 3D canvas from Processing to SVG. I found great the use of beginRaw and endRaw. But I don’t understand how to save into the SVG just the edges that are visible. What I would like is to export …

---

## [Printing P3D sketch to PDF](https://discourse.processing.org/t/printing-p3d-sketch-to-pdf/10913)

<div class="topic-metadata">

**Author:** [@TobiasReber](https://discourse.processing.org/u/TobiasReber)\
**Replies:** 2\
**Last updated:** [May 10, 2019, 4:58pm UTC](https://discourse.processing.org/t/printing-p3d-sketch-to-pdf/10913 "2019-05-10T16:58:11Z")

</div>

Hi all, first time poster with a newbie question: I’d like to print to PDF the results of some sketches I’m doing with random walkers drawing lots spheres. I took Example 4 from the “Print” tutorial and modified it slig…

---

## [Help with a short game code](https://discourse.processing.org/t/help-with-a-short-game-code/11108)

<div class="topic-metadata">

**Author:** [@majR](https://discourse.processing.org/u/majR)\
**Replies:** 4\
**Last updated:** [May 10, 2019, 4:21pm UTC](https://discourse.processing.org/t/help-with-a-short-game-code/11108 "2019-05-10T16:21:02Z")

</div>

when i try to remove a part of a arraylist it says the error “ConcurrentModificationException” here is the file : https://drive.google.com/open?id=1-NATnwPv0Qw3abEjZzP8rBFMXgwngVrL here is what gives the error for(Las…

---

## [Moving objects with hand detection](https://discourse.processing.org/t/moving-objects-with-hand-detection/10999)

<div class="topic-metadata">

**Author:** [@zxcvbs](https://discourse.processing.org/u/zxcvbs)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 3:57pm UTC](https://discourse.processing.org/t/moving-objects-with-hand-detection/10999 "2019-05-10T15:57:12Z")

</div>

Hi, I’m trying to do something like this: Track each hand motion, and move objects around. I can detect hand blobs with blob scanner, but there are too many blobs. And I don’t know how to differentiate ea…

---

## [Circle Connection Diagram](https://discourse.processing.org/t/circle-connection-diagram/10952)

<div class="topic-metadata">

**Author:** [@kirstee\_baxt](https://discourse.processing.org/u/kirstee_baxt)\
**Replies:** 7\
**Last updated:** [May 10, 2019, 3:23pm UTC](https://discourse.processing.org/t/circle-connection-diagram/10952 "2019-05-10T15:23:10Z")

</div>

Hello! Wondering if anyone would have recommendations or resources for making a circular diagram containing nodes with connections linked across to other nodes. This would be pulling data from a .csv file. What I am look…

---

## ["\_\_\_ is not a constructor" Error message](https://discourse.processing.org/t/is-not-a-constructor-error-message/11104)

<div class="topic-metadata">

**Author:** [@Corephinx](https://discourse.processing.org/u/Corephinx)\
**Replies:** 3\
**Last updated:** [May 10, 2019, 1:53pm UTC](https://discourse.processing.org/t/is-not-a-constructor-error-message/11104 "2019-05-10T13:53:33Z")

</div>

I have been trying to get an old code I wrote, a long time ago, to work(its probably a mess). And I was wondering why it gives me the error message “\[something\] is not a constructor”. I do not expect anyone to read my me…

---

## [When button pressed, load a game](https://discourse.processing.org/t/when-button-pressed-load-a-game/11100)

<div class="topic-metadata">

**Author:** [@nliegeard](https://discourse.processing.org/u/nliegeard)\
**Replies:** 4\
**Last updated:** [May 10, 2019, 11:08am UTC](https://discourse.processing.org/t/when-button-pressed-load-a-game/11100 "2019-05-10T11:08:13Z")

</div>

Hello guys ! i started a programme where i did a home page with a start button, the button work’s good but i have no idea on how can i code that when button pressed then loadfile “test.pde”, if you help me i’l be tha…

---

## [for-Loop w/ Array of random RGB values](https://discourse.processing.org/t/for-loop-w-array-of-random-rgb-values/11084)

<div class="topic-metadata">

**Author:** [@r8th](https://discourse.processing.org/u/r8th)\
**Replies:** 2\
**Last updated:** [May 10, 2019, 5:18am UTC](https://discourse.processing.org/t/for-loop-w-array-of-random-rgb-values/11084 "2019-05-10T05:18:07Z")

</div>

Hi! I’m using Casey and Ben’s Getting Stared with Processing book. Example 11-8, pp 155-156, shows how to fill an ARRAY w RANDOM values using a FOR loop. The RANDOM values are passed to STROKE values. The example below i…

---

## [No sound in exported java with Beads](https://discourse.processing.org/t/no-sound-in-exported-java-with-beads/10532)

<div class="topic-metadata">

**Author:** [@Peachy](https://discourse.processing.org/u/Peachy)\
**Replies:** 13\
**Last updated:** [May 10, 2019, 4:52am UTC](https://discourse.processing.org/t/no-sound-in-exported-java-with-beads/10532 "2019-05-10T04:52:47Z")

</div>

Hi, I have been using the Beads library in my sketches in MacOS Mojave and Windows 10 with Processing 3.5.3. Everything works fine until I export the sketch to a Java applet. The Java applet no longer has audio ouput. I…

---

## [Why does my P3D sketch look weird as a PDF (and how to fix this?)](https://discourse.processing.org/t/why-does-my-p3d-sketch-look-weird-as-a-pdf-and-how-to-fix-this/11072)

<div class="topic-metadata">

**Author:** [@sorenkirk](https://discourse.processing.org/u/sorenkirk)\
**Replies:** 3\
**Last updated:** [May 10, 2019, 4:39am UTC](https://discourse.processing.org/t/why-does-my-p3d-sketch-look-weird-as-a-pdf-and-how-to-fix-this/11072 "2019-05-10T04:39:39Z")

</div>

I have a sketch which looks very different in the Processing window than it does as an actual PDF. Would anyone be able to help me get this sketch to render well as a PDF?

---

## [Repeating and randomizing string arrays](https://discourse.processing.org/t/repeating-and-randomizing-string-arrays/10811)

<div class="topic-metadata">

**Author:** [@AwreetusAwrightus](https://discourse.processing.org/u/AwreetusAwrightus)\
**Replies:** 7\
**Last updated:** [May 10, 2019, 3:29am UTC](https://discourse.processing.org/t/repeating-and-randomizing-string-arrays/10811 "2019-05-10T03:29:52Z")

</div>

hello everyone! it’s quite a simple question, but I tried to repeat values I have on an existing string array and then randomizing their positions. using a ‘for’ method I returned out of bounds, presumably because I di…

---

## [PImage in class](https://discourse.processing.org/t/pimage-in-class/11091)

<div class="topic-metadata">

**Author:** [@jashuman19](https://discourse.processing.org/u/jashuman19)\
**Replies:** 7\
**Last updated:** [May 10, 2019, 2:25am UTC](https://discourse.processing.org/t/pimage-in-class/11091 "2019-05-10T02:25:45Z")

</div>

When I try to create a PImage instance variable in a class file, I get the following error: Cannot find a class or type named “PImage” Does anyone know why this is? For reference, the (simplified) class looks like this…

---

## [Drawn shapes stay after frame they were drawn?](https://discourse.processing.org/t/drawn-shapes-stay-after-frame-they-were-drawn/11080)

<div class="topic-metadata">

**Author:** [@DerekCresswell](https://discourse.processing.org/u/DerekCresswell)\
**Replies:** 2\
**Last updated:** [May 9, 2019, 7:49pm UTC](https://discourse.processing.org/t/drawn-shapes-stay-after-frame-they-were-drawn/11080 "2019-05-09T19:49:50Z")

</div>

I know this is really stupid. Why are shapes staying on screen even if they weren’t drawn this frame? This hasn’t happened on my other projects. Basically my shapes are leaving trails of themselves.

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

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