# Processing

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

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

**Page:** 392

---

## [Getting the sums of an array](https://discourse.processing.org/t/getting-the-sums-of-an-array/402)

<div class="topic-metadata">

**Author:** [@dereklop](https://discourse.processing.org/u/dereklop)\
**Replies:** 2\
**Last updated:** [May 26, 2018, 5:47pm UTC](https://discourse.processing.org/t/getting-the-sums-of-an-array/402 "2018-05-26T17:47:53Z")

</div>

This is my code i have cvs file with values and dates in it. I want to be able to get the average of each day and month. So far i am able to get the value for each month but it would require a lot of input to get all the…

---

## [Detecting large data-sets](https://discourse.processing.org/t/detecting-large-data-sets/358)

<div class="topic-metadata">

**Author:** [@shan](https://discourse.processing.org/u/shan)\
**Replies:** 15\
**Last updated:** [May 26, 2018, 1:51pm UTC](https://discourse.processing.org/t/detecting-large-data-sets/358 "2018-05-26T13:51:42Z")

</div>

Kindly help me to guide how should start implementing using processing. I have attach link below. https://youtu.be/EZgiYYxUT74

---

## [Circles appear each time the tool hits the player -beginner pls help](https://discourse.processing.org/t/circles-appear-each-time-the-tool-hits-the-player-beginner-pls-help/388)

<div class="topic-metadata">

**Author:** [@negulix\_niki](https://discourse.processing.org/u/negulix_niki)\
**Replies:** 5\
**Last updated:** [May 26, 2018, 1:20pm UTC](https://discourse.processing.org/t/circles-appear-each-time-the-tool-hits-the-player-beginner-pls-help/388 "2018-05-26T13:20:52Z")

</div>

I am to trying to complete a project . It is like a game each time the tools come down the screen a circle should appear and fill the screen and if the tools hit the person in the game the circles turn to red. I know th…

---

## [Assign random color to each circle](https://discourse.processing.org/t/assign-random-color-to-each-circle/348)

<div class="topic-metadata">

**Author:** [@jcw016](https://discourse.processing.org/u/jcw016)\
**Replies:** 7\
**Last updated:** [May 25, 2018, 11:49pm UTC](https://discourse.processing.org/t/assign-random-color-to-each-circle/348 "2018-05-25T23:49:20Z")

</div>

I am trying to complete a school project and this is what I have right now (see below). I want to assign a random color to each circle every time - but right now, I am stuck at where the same color is being assigned to a…

---

## [Date form a csv file](https://discourse.processing.org/t/date-form-a-csv-file/380)

<div class="topic-metadata">

**Author:** [@dereklop](https://discourse.processing.org/u/dereklop)\
**Replies:** 9\
**Last updated:** [May 25, 2018, 8:27pm UTC](https://discourse.processing.org/t/date-form-a-csv-file/380 "2018-05-25T20:27:42Z")

</div>

hey im trying to get the date and separate values by it form a csv file i got. Im trying this but im not sure why its now working. here is a preview of my csv file Imgur: The magic of the Internet Cross-posted: Reddit …

---

## [NullPointerExeption with loading images](https://discourse.processing.org/t/nullpointerexeption-with-loading-images/360)

<div class="topic-metadata">

**Author:** [@squatting\_potato](https://discourse.processing.org/u/squatting_potato)\
**Replies:** 2\
**Last updated:** [May 25, 2018, 6:07pm UTC](https://discourse.processing.org/t/nullpointerexeption-with-loading-images/360 "2018-05-25T18:07:40Z")

</div>

Hi, i need to load 4 images and draw them in a window, but i get this error. here’s my code PImage image; PImage image1; PImage image2; PImage image3; String path =""; void setup() { size(360, 240); text("click win…

---

## [Initial load & opening app](https://discourse.processing.org/t/initial-load-opening-app/366)

<div class="topic-metadata">

**Author:** [@processing2106](https://discourse.processing.org/u/processing2106)\
**Replies:** 1\
**Last updated:** [May 25, 2018, 5:57pm UTC](https://discourse.processing.org/t/initial-load-opening-app/366 "2018-05-25T17:57:37Z")

</div>

After I load the software and I go to open it, the first screen appears but then disappears. I can’t figure out what I’ve done wrong. Anyone help?

---

## [Play a video & a midi somehow in sync](https://discourse.processing.org/t/play-a-video-a-midi-somehow-in-sync/223)

<div class="topic-metadata">

**Author:** [@e.oelberg](https://discourse.processing.org/u/e.oelberg)\
**Replies:** 29\
**Last updated:** [May 25, 2018, 12:15pm UTC](https://discourse.processing.org/t/play-a-video-a-midi-somehow-in-sync/223 "2018-05-25T12:15:29Z")

</div>

Hi all I have a nice beginners question: I use a patch to play video over a led panel I built. For an installation I’d like to play a video and a midi file in the patch. both have to run somehow in sync. With somehow I …

---

## [Key out color from video](https://discourse.processing.org/t/key-out-color-from-video/324)

<div class="topic-metadata">

**Author:** [@dazadas\_k](https://discourse.processing.org/u/dazadas_k)\
**Replies:** 2\
**Last updated:** [May 25, 2018, 3:15am UTC](https://discourse.processing.org/t/key-out-color-from-video/324 "2018-05-25T03:15:30Z")

</div>

Hey guys! I was wondering - Is it possible to key out green screen from video and replace it with a picture? :roll\_eyes: In a result I imagined that the video is still playing, but all the green space is filled with …

---

## [Problems calculating an average angle](https://discourse.processing.org/t/problems-calculating-an-average-angle/345)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [May 25, 2018, 2:52am UTC](https://discourse.processing.org/t/problems-calculating-an-average-angle/345 "2018-05-25T02:52:26Z")

</div>

I try to calculate an average angle, but it flips on the left side. (And if I allow negative angles then it flips on the right side). (It’s about the purple line) \[37\] How can I correctly create the average angle? f…

---

## [Agents coding work but need add on two variable data](https://discourse.processing.org/t/agents-coding-work-but-need-add-on-two-variable-data/234)

<div class="topic-metadata">

**Author:** [@shan](https://discourse.processing.org/u/shan)\
**Replies:** 28\
**Last updated:** [May 25, 2018, 2:11am UTC](https://discourse.processing.org/t/agents-coding-work-but-need-add-on-two-variable-data/234 "2018-05-25T02:11:50Z")

</div>

\[image\] i need on this coding to add two variable data which i have in csv file format. please help me.

---

## [Strange results when exporting](https://discourse.processing.org/t/strange-results-when-exporting/288)

<div class="topic-metadata">

**Author:** [@akenaton](https://discourse.processing.org/u/akenaton)\
**Replies:** 16\
**Last updated:** [May 24, 2018, 5:56pm UTC](https://discourse.processing.org/t/strange-results-when-exporting/288 "2018-05-24T17:56:47Z")

</div>

I have a sketch which runs very well in the IDE; when exporting it runs also but changing its appearance: i mean that i get 3 or four times the images, as cloned from a point of the screen to another one; after some time…

---

## [Serial coms to Arduino SLOOOW](https://discourse.processing.org/t/serial-coms-to-arduino-slooow/174)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 6\
**Last updated:** [May 24, 2018, 2:55pm UTC](https://discourse.processing.org/t/serial-coms-to-arduino-slooow/174 "2018-05-24T14:55:04Z")

</div>

I have a Processing program emulating a radar screen. Bogies are generated and slowly move toward the center - the ship. An operator moves a joystick cursor to one of the bogies, clicks the button, and the target is de…

---

## [Pan Tompkins algorithm](https://discourse.processing.org/t/pan-tompkins-algorithm/295)

<div class="topic-metadata">

**Author:** [@netphysicist](https://discourse.processing.org/u/netphysicist)\
**Replies:** 1\
**Last updated:** [May 24, 2018, 1:36am UTC](https://discourse.processing.org/t/pan-tompkins-algorithm/295 "2018-05-24T01:36:54Z")

</div>

Hello, i am working on a project in processing IDE. Does anyone know a template or an example about Pan Tompkins algorithm???

---

## ["main" as name of method causes "Target VM failed to initialize" error](https://discourse.processing.org/t/main-as-name-of-method-causes-target-vm-failed-to-initialize-error/300)

<div class="topic-metadata">

**Author:** [@AFNordal](https://discourse.processing.org/u/AFNordal)\
**Replies:** 3\
**Last updated:** [May 23, 2018, 8:01pm UTC](https://discourse.processing.org/t/main-as-name-of-method-causes-target-vm-failed-to-initialize-error/300 "2018-05-23T20:01:37Z")

</div>

I discovered a problem when I used the name main for a class method; it made the sketch not run and gave me this error: Usage: PApplet \[options\] \<class name\> \[sketch args\] See the Javadoc for PApplet for an explanation.…

---

## [Heptagon drawing angle](https://discourse.processing.org/t/heptagon-drawing-angle/285)

<div class="topic-metadata">

**Author:** [@jclacko](https://discourse.processing.org/u/jclacko)\
**Replies:** 3\
**Last updated:** [May 23, 2018, 5:27pm UTC](https://discourse.processing.org/t/heptagon-drawing-angle/285 "2018-05-23T17:27:04Z")

</div>

Hey guys and girls. Could someone please help me with a project I am trying to complete. A really nice person over in the Reddit forums helped me get this far but I am stuck at the moment. I have an assignment for my B…

---

## [Add processing to web](https://discourse.processing.org/t/add-processing-to-web/291)

<div class="topic-metadata">

**Author:** [@SlumzGG](https://discourse.processing.org/u/SlumzGG)\
**Replies:** 0\
**Last updated:** [May 23, 2018, 1:47pm UTC](https://discourse.processing.org/t/add-processing-to-web/291 "2018-05-23T13:47:39Z")

</div>

How to add processing programm to a website ?

---

## [Sound - issue with reverb and delay](https://discourse.processing.org/t/sound-issue-with-reverb-and-delay/290)

<div class="topic-metadata">

**Author:** [@kmll](https://discourse.processing.org/u/kmll)\
**Replies:** 1\
**Last updated:** [May 23, 2018, 4:13pm UTC](https://discourse.processing.org/t/sound-issue-with-reverb-and-delay/290 "2018-05-23T16:13:06Z")

</div>

I have some issues adding effects for a sound playback. When I run the code below without line 12 then the music plays fine. But if I add line 12 then the signal turn into mono and there is no reverb effect. The same hap…

---

## [Displaying code on website](https://discourse.processing.org/t/displaying-code-on-website/208)

<div class="topic-metadata">

**Author:** [@norman521](https://discourse.processing.org/u/norman521)\
**Replies:** 5\
**Last updated:** [May 23, 2018, 4:20pm UTC](https://discourse.processing.org/t/displaying-code-on-website/208 "2018-05-23T16:20:22Z")

</div>

Hi, Newbie question… Once you have some code you are happy with is it possible to add it to an HTML page? One site I use is coded in HTML and PHP?

---

## [Draw() is lagging and not following frameRate](https://discourse.processing.org/t/draw-is-lagging-and-not-following-framerate/283)

<div class="topic-metadata">

**Author:** [@Enkrypton](https://discourse.processing.org/u/Enkrypton)\
**Replies:** 3\
**Last updated:** [May 23, 2018, 6:12am UTC](https://discourse.processing.org/t/draw-is-lagging-and-not-following-framerate/283 "2018-05-23T06:12:59Z")

</div>

I’m making an application using Processing-2. This means using the draw() method to generate GUI. However something messes with the frameRate of the program making it feel way slower and very laggy/choppy. I know my fram…

---

## [Loop arrayList Crossyroad](https://discourse.processing.org/t/loop-arraylist-crossyroad/258)

<div class="topic-metadata">

**Author:** [@BP3d](https://discourse.processing.org/u/BP3d)\
**Replies:** 3\
**Last updated:** [May 22, 2018, 8:50pm UTC](https://discourse.processing.org/t/loop-arraylist-crossyroad/258 "2018-05-22T20:50:15Z")

</div>

hi everyone im trying to loop the cars and train but cant figure out how to. ArrayList \<Car\> carsListTop; ArrayList \<Car\> carsListBelow; ArrayList \<TreeTrunk\> TrunkList; ArrayList \<Train\> TrainList; TreeTrunk \[\] ArrayT…

---

## [Need Help for Game Over / Timer](https://discourse.processing.org/t/need-help-for-game-over-timer/246)

<div class="topic-metadata">

**Author:** [@SlumzGG](https://discourse.processing.org/u/SlumzGG)\
**Replies:** 8\
**Last updated:** [May 22, 2018, 9:03am UTC](https://discourse.processing.org/t/need-help-for-game-over-timer/246 "2018-05-22T09:03:12Z")

</div>

Hello, i’m really new to Processing, i need to make a game over when the balls touch the top or the bottom edge of the screen, another thing to stop the timer when it’s a game over. My code is really bad ( sorry, it’s …

---

## [using javascript in html](https://discourse.processing.org/t/using-javascript-in-html/211)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 6\
**Last updated:** [May 22, 2018, 2:18am UTC](https://discourse.processing.org/t/using-javascript-in-html/211 "2018-05-22T02:18:47Z")

</div>

So I started using javascript and html to make website and thought it be fun to convert my java games to javascript and place them on my website. I wrote code trying to see my javascript game from the html webpage, but i…

---

## [Need Help: Zoomable interface for a procedural drawing program](https://discourse.processing.org/t/need-help-zoomable-interface-for-a-procedural-drawing-program/243)

<div class="topic-metadata">

**Author:** [@FyodorKrasniy](https://discourse.processing.org/u/FyodorKrasniy)\
**Replies:** 1\
**Last updated:** [May 22, 2018, 7:32am UTC](https://discourse.processing.org/t/need-help-zoomable-interface-for-a-procedural-drawing-program/243 "2018-05-22T07:32:41Z")

</div>

Heya, Ive been trying to figure out how to add a zoom function to this code, its a drawing program in the likes of Mr Doobs harmony - http://mrdoob.com/projects/harmony/ The thing Ive been trying to work out is how to z…

---

## [Can i import my stuff into wallpaper engine?](https://discourse.processing.org/t/can-i-import-my-stuff-into-wallpaper-engine/153)

<div class="topic-metadata">

**Author:** [@MelonGoggles](https://discourse.processing.org/u/MelonGoggles)\
**Replies:** 7\
**Last updated:** [May 21, 2018, 9:48pm UTC](https://discourse.processing.org/t/can-i-import-my-stuff-into-wallpaper-engine/153 "2018-05-21T21:48:32Z")

</div>

\*\*Welcome :slight\_smile: \*\* My name is Luc(16) and last week I installed processing. the past week I have been making quite some stuff with processing already. I showed what I made to a couple of friends and asked me if…

---

## [Reactivision processing loop issue](https://discourse.processing.org/t/reactivision-processing-loop-issue/112)

<div class="topic-metadata">

**Author:** [@Tonym](https://discourse.processing.org/u/Tonym)\
**Replies:** 5\
**Last updated:** [May 21, 2018, 4:27pm UTC](https://discourse.processing.org/t/reactivision-processing-loop-issue/112 "2018-05-21T16:27:41Z")

</div>

hi i am making a math game targeted at kids using reactivision and processing. i want there to be several questions generated randomly and once they have answered correctly a new question is generated. i have tried usin…

---

## [“loadImage() inside settings()” rule is unclear](https://discourse.processing.org/t/loadimage-inside-settings-rule-is-unclear/198)

<div class="topic-metadata">

**Author:** [@HGDoSNmPmz6fyxC](https://discourse.processing.org/u/HGDoSNmPmz6fyxC)\
**Replies:** 3\
**Last updated:** [May 21, 2018, 7:22pm UTC](https://discourse.processing.org/t/loadimage-inside-settings-rule-is-unclear/198 "2018-05-21T19:22:16Z")

</div>

The documentation on settings() says (emphasis added): The settings() method runs before the sketch has been set up, so other Processing functions cannot be used at that point. For instance, do not use loadImage() insi…

---

## [Export of an Java Sketch fails!](https://discourse.processing.org/t/export-of-an-java-sketch-fails/221)

<div class="topic-metadata">

**Author:** [@anongtr911](https://discourse.processing.org/u/anongtr911)\
**Replies:** 3\
**Last updated:** [May 21, 2018, 6:59pm UTC](https://discourse.processing.org/t/export-of-an-java-sketch-fails/221 "2018-05-21T18:59:00Z")

</div>

Dear Community! I am about to create an simple hookah-designer in Processing. Its working on linux, but I would need it on Windows 10. And is there any simple way to get that .java/.jar file running on a web-page? Or …

---

## [Got this error when trying to start Processing](https://discourse.processing.org/t/got-this-error-when-trying-to-start-processing/166)

<div class="topic-metadata">

**Author:** [@Null](https://discourse.processing.org/u/Null)\
**Replies:** 1\
**Last updated:** [May 21, 2018, 5:37pm UTC](https://discourse.processing.org/t/got-this-error-when-trying-to-start-processing/166 "2018-05-21T17:37:21Z")

</div>

I got a new computer ,and had no problems when downloading it on my old computer, but when i got my new computer and tried to download it worked fine, but when i reopened it today i got this error \[image\] i also did mak…

---

## [\[fullscreen()\] full screen problem](https://discourse.processing.org/t/fullscreen-full-screen-problem/141)

<div class="topic-metadata">

**Author:** [@Zipity](https://discourse.processing.org/u/Zipity)\
**Replies:** 4\
**Last updated:** [May 21, 2018, 5:02pm UTC](https://discourse.processing.org/t/fullscreen-full-screen-problem/141 "2018-05-21T17:02:16Z")

</div>

Hey guys, at first, I want to excuse myself for my bad English-level ^^ But let’s start solving my problem :slight\_smile: When I create a window in fullscreen I have the problem that I can leave that window on the rig…

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

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