# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=548

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

**Page:** 549

---

## [Tracking with a SEN0158](https://discourse.processing.org/t/tracking-with-a-sen0158/6370)

<div class="topic-metadata">

**Author:** [@POlefef](https://discourse.processing.org/u/POlefef)\
**Replies:** 1\
**Last updated:** [December 8, 2018, 6:41pm UTC](https://discourse.processing.org/t/tracking-with-a-sen0158/6370 "2018-12-08T18:41:22Z")

</div>

Hello everyone. I’m really new at processing and i have to display a graph that gives me the location of infrared sources by using processing and an IR camera (SEN0158) I’ve tried multiple times to run the following c…

---

## [Not sure how to slow down the randomizing color](https://discourse.processing.org/t/not-sure-how-to-slow-down-the-randomizing-color/6423)

<div class="topic-metadata">

**Author:** [@charmypatel](https://discourse.processing.org/u/charmypatel)\
**Replies:** 5\
**Last updated:** [December 8, 2018, 6:22pm UTC](https://discourse.processing.org/t/not-sure-how-to-slow-down-the-randomizing-color/6423 "2018-12-08T18:22:14Z")

</div>

I have this snip it from my code below, and I would like to slow down the rate at which the color randomly changes. I know that is the point of random, but I will be presenting this in class and anyone who has photosensi…

---

## [Match image to data, sequentially](https://discourse.processing.org/t/match-image-to-data-sequentially/6158)

<div class="topic-metadata">

**Author:** [@karinalopez87](https://discourse.processing.org/u/karinalopez87)\
**Replies:** 3\
**Last updated:** [December 8, 2018, 5:36pm UTC](https://discourse.processing.org/t/match-image-to-data-sequentially/6158 "2018-12-08T17:36:47Z")

</div>

Hello everyone, I have an array of numbers from my txt file, e.g. line\[0\] = img\[0\], line\[1\] = img\[1\], … it seems to read all of the images but it only saves one. the code doesn’t give me an error yet it’s not saving m…

---

## [Pixelgaps using scale on a 2D tile grid](https://discourse.processing.org/t/pixelgaps-using-scale-on-a-2d-tile-grid/6420)

<div class="topic-metadata">

**Author:** [@tony32](https://discourse.processing.org/u/tony32)\
**Replies:** 4\
**Last updated:** [December 8, 2018, 3:11pm UTC](https://discourse.processing.org/t/pixelgaps-using-scale-on-a-2d-tile-grid/6420 "2018-12-08T15:11:58Z")

</div>

Hey guys. I have an annoying issue on my project im working on. I’m generating a bunch of tiles, just with basic rects at a size of 32x32 pixels and putting them inside an array of arrays. Like Array\[0\]\[5\] would be ro…

---

## [The GT-P5100 impediment](https://discourse.processing.org/t/the-gt-p5100-impediment/6398)

<div class="topic-metadata">

**Author:** [@samolet4e](https://discourse.processing.org/u/samolet4e)\
**Replies:** 3\
**Last updated:** [December 8, 2018, 11:26am UTC](https://discourse.processing.org/t/the-gt-p5100-impediment/6398 "2018-12-08T11:26:08Z")

</div>

Hello! I am trying to build the simple sketch available in tutorial page: https://android.processing.org/tutorials/getting\_started/index.html on my Samsung GT-P5100 Galaxy TAB 2, Android version 4.0.4. The Processing v…

---

## [Eficiencia del codigo de este juego](https://discourse.processing.org/t/eficiencia-del-codigo-de-este-juego/6406)

<div class="topic-metadata">

**Author:** [@axel](https://discourse.processing.org/u/axel)\
**Replies:** 1\
**Last updated:** [December 8, 2018, 10:20am UTC](https://discourse.processing.org/t/eficiencia-del-codigo-de-este-juego/6406 "2018-12-08T10:20:11Z")

</div>

https://drive.google.com/file/d/1YvXGWhiLqIhwOJf-U5DAbg2K9qSYudWW/view hola soy nuevo entre para preguntar acerca de la eficiencia del codigo de este juego.

---

## [Fill a parabole track](https://discourse.processing.org/t/fill-a-parabole-track/6338)

<div class="topic-metadata">

**Author:** [@saotome](https://discourse.processing.org/u/saotome)\
**Replies:** 16\
**Last updated:** [December 8, 2018, 7:32am UTC](https://discourse.processing.org/t/fill-a-parabole-track/6338 "2018-12-08T07:32:54Z")

</div>

Hi I have this code and I want to draw each point of the parabole instead of viewing only the point moving. Code is the following float dx=10; // Inital x position float dy=620; // Inital y position float vx=0; // I…

---

## [Generating random images in an array one at a time](https://discourse.processing.org/t/generating-random-images-in-an-array-one-at-a-time/6413)

<div class="topic-metadata">

**Author:** [@Taikun649](https://discourse.processing.org/u/Taikun649)\
**Replies:** 2\
**Last updated:** [December 8, 2018, 5:00am UTC](https://discourse.processing.org/t/generating-random-images-in-an-array-one-at-a-time/6413 "2018-12-08T05:00:49Z")

</div>

Hello! I’m fairly new to this so please bear with me. I’ve been looking all over the place but I couldn’t find anything on this in particular. So I made a little game where you have different types of food moving from t…

---

## [How can I change the drawing style of a group of shapes?](https://discourse.processing.org/t/how-can-i-change-the-drawing-style-of-a-group-of-shapes/6330)

<div class="topic-metadata">

**Author:** [@mono](https://discourse.processing.org/u/mono)\
**Replies:** 3\
**Last updated:** [December 8, 2018, 2:42am UTC](https://discourse.processing.org/t/how-can-i-change-the-drawing-style-of-a-group-of-shapes/6330 "2018-12-08T02:42:21Z")

</div>

Hey guys. I have written this code here to draw a group of 3 shapes on the screen: PShape s; void setup() { size (40, 40); s = createShape(GROUP); ellipseMode(CENTER); PShape s1 = createShape(ELLIPSE, 0, 0, 1…

---

## [Can Streaming video be used in OpenCV?](https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 9\
**Last updated:** [December 8, 2018, 2:15am UTC](https://discourse.processing.org/t/can-streaming-video-be-used-in-opencv/6318 "2018-12-08T02:15:59Z")

</div>

I opened the example “backgroundSubstraction” and tried to replace movie file with streaming webcam video but no luck. this line is the trouble: opencv = new OpenCV(this, video); The error says" Width(0) and height (…

---

## [Urgent : Codes of autonomous agent](https://discourse.processing.org/t/urgent-codes-of-autonomous-agent/6403)

<div class="topic-metadata">

**Author:** [@gisue](https://discourse.processing.org/u/gisue)\
**Replies:** 5\
**Last updated:** [December 7, 2018, 11:41pm UTC](https://discourse.processing.org/t/urgent-codes-of-autonomous-agent/6403 "2018-12-07T23:41:48Z")

</div>

can any one help me with this code, I need it right now, since I have final submission and presentation today. please help me. my code runs the stop after 10 second // Path Following // Using this variable to decide wh…

---

## [Processing Community Day @ Minneapolis](https://discourse.processing.org/t/processing-community-day-minneapolis/6401)

<div class="topic-metadata">

**Author:** [@bmoren](https://discourse.processing.org/u/bmoren)\
**Replies:** 1\
**Last updated:** [December 7, 2018, 8:21pm UTC](https://discourse.processing.org/t/processing-community-day-minneapolis/6401 "2018-12-07T20:21:48Z")

</div>

Please let me know if you’d like to get involved in any way! More info at the website here: http://pcdmpls.org RSVP (not required, but appreciated): If you’re interested, or know anyone who might be, including stu…

---

## [Arraylist containing x sounds—How?](https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311)

<div class="topic-metadata">

**Author:** [@HelaRua](https://discourse.processing.org/u/HelaRua)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 8:06pm UTC](https://discourse.processing.org/t/arraylist-containing-x-sounds-how/6311 "2018-12-07T20:06:55Z")

</div>

Hiii~ Does anyone know how to make an arraylist consisting of x sounds? I just made one with images… but I can’t find the equivalent for sound. Bleh \>:-( Ty!!

---

## [Parabolic projectile launch](https://discourse.processing.org/t/parabolic-projectile-launch/6322)

<div class="topic-metadata">

**Author:** [@saotome](https://discourse.processing.org/u/saotome)\
**Replies:** 7\
**Last updated:** [December 7, 2018, 8:00pm UTC](https://discourse.processing.org/t/parabolic-projectile-launch/6322 "2018-12-07T20:00:49Z")

</div>

I,m trying to change the value of vi using left&rigth arrows and the theta value with up&down arrows, but i don’t know exactlu how to do it. The code is the following // based on Projectile Simulation by Hugo Meiring /…

---

## [Function as argument of another function](https://discourse.processing.org/t/function-as-argument-of-another-function/6383)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 4\
**Last updated:** [December 7, 2018, 7:51pm UTC](https://discourse.processing.org/t/function-as-argument-of-another-function/6383 "2018-12-07T19:51:21Z")

</div>

Hi everyone, I’m trying to pass a function as an argument of another function but can’t figure out how… I’ve found plenty of infos on solution for Java 8 but sadly we can’t use those solution with processing if I get i…

---

## [Cell Division and Growth Algorithm: Adding springs](https://discourse.processing.org/t/cell-division-and-growth-algorithm-adding-springs/6131)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 10\
**Last updated:** [December 7, 2018, 7:45pm UTC](https://discourse.processing.org/t/cell-division-and-growth-algorithm-adding-springs/6131 "2018-12-07T19:45:06Z")

</div>

Hi, I’m desperately trying to connect growing cells with springs using the toxiclibs library. More specifically, I’d like to to put a spring between a “mother” cell and its “child” after division. PROBLEMS: All cell…

---

## [Potential JSONObject bug?](https://discourse.processing.org/t/potential-jsonobject-bug/5930)

<div class="topic-metadata">

**Author:** [@RecursiveCursive](https://discourse.processing.org/u/RecursiveCursive)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 7:37pm UTC](https://discourse.processing.org/t/potential-jsonobject-bug/5930 "2018-12-07T19:37:55Z")

</div>

My project makes use of JSON to store user data, but I am having a strange issue with it. One of my methods is a delete method that is supposed to delete saved data and replace it with a single entry indicating no saved …

---

## [Simple live capture and scanner effect with mouse](https://discourse.processing.org/t/simple-live-capture-and-scanner-effect-with-mouse/6299)

<div class="topic-metadata">

**Author:** [@saskia\_NL](https://discourse.processing.org/u/saskia_NL)\
**Replies:** 5\
**Last updated:** [December 7, 2018, 7:11pm UTC](https://discourse.processing.org/t/simple-live-capture-and-scanner-effect-with-mouse/6299 "2018-12-07T19:11:21Z")

</div>

Hi all! I hope you can help me with this! I am trying to create sort of a scanner effect. When you move the mouse from left to right you’ll move the “beam” that’s capturing. I got this simple code working so far, but no…

---

## [360 Degree image](https://discourse.processing.org/t/360-degree-image/3090)

<div class="topic-metadata">

**Author:** [@shoaibmirza](https://discourse.processing.org/u/shoaibmirza)\
**Replies:** 9\
**Last updated:** [December 7, 2018, 4:15pm UTC](https://discourse.processing.org/t/360-degree-image/3090 "2018-12-07T16:15:51Z")

</div>

Hi. how can I load and draw a 360-degree image on processing?

---

## [Should negative width in image produce mirroring?](https://discourse.processing.org/t/should-negative-width-in-image-produce-mirroring/6366)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 9\
**Last updated:** [December 7, 2018, 3:43pm UTC](https://discourse.processing.org/t/should-negative-width-in-image-produce-mirroring/6366 "2018-12-07T15:43:03Z")

</div>

I wonder if this is a bug… PGraphics canvas; void setup() { size(600, 600); // P2D make no difference canvas = createGraphics(width, height); } void draw() { background(255); canvas.beginDraw(); canvas.clear(…

---

## [Accessing \`res/drawable' from loadImage()](https://discourse.processing.org/t/accessing-res-drawable-from-loadimage/6270)

<div class="topic-metadata">

**Author:** [@derekkinsman](https://discourse.processing.org/u/derekkinsman)\
**Replies:** 5\
**Last updated:** [December 7, 2018, 3:26pm UTC](https://discourse.processing.org/t/accessing-res-drawable-from-loadimage/6270 "2018-12-07T15:26:03Z")

</div>

Sorry if this is a stupid question. I’ve tried searching for an answer but have come up empty handed. I haven’t done any Android dev in maybe 3 years, and I generally just use the Processing IDE for any Processing stuff…

---

## [Processing SpaceInvaders-Game](https://discourse.processing.org/t/processing-spaceinvaders-game/6126)

<div class="topic-metadata">

**Author:** [@ProcessingHelp](https://discourse.processing.org/u/ProcessingHelp)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 2:53pm UTC](https://discourse.processing.org/t/processing-spaceinvaders-game/6126 "2018-12-07T14:53:38Z")

</div>

Delete this post.

---

## [Xml verification](https://discourse.processing.org/t/xml-verification/6253)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 1:51pm UTC](https://discourse.processing.org/t/xml-verification/6253 "2018-12-07T13:51:32Z")

</div>

Hi, I’m trying to load a xml file only if he’s correct (no tags errors) I’have try this void checkXml(String fileName) { try { data = loadXML(fileName); } catch(Exception e) { print(e); } } I put just …

---

## [Good practice for sending data from Arduino to Processing](https://discourse.processing.org/t/good-practice-for-sending-data-from-arduino-to-processing/6339)

<div class="topic-metadata">

**Author:** [@rodrigogamboa](https://discourse.processing.org/u/rodrigogamboa)\
**Replies:** 4\
**Last updated:** [December 6, 2018, 4:51pm UTC](https://discourse.processing.org/t/good-practice-for-sending-data-from-arduino-to-processing/6339 "2018-12-06T16:51:05Z")

</div>

Hi! This is the first question I make in the forum! Is in the context of good practices sending data from Arduino to Processing, and vice versa. Recenlty I made a VJ console that sends data from some potentiometers and…

---

## [Shader version error on mac](https://discourse.processing.org/t/shader-version-error-on-mac/6155)

<div class="topic-metadata">

**Author:** [@kosowski](https://discourse.processing.org/u/kosowski)\
**Replies:** 10\
**Last updated:** [December 7, 2018, 9:32am UTC](https://discourse.processing.org/t/shader-version-error-on-mac/6155 "2018-12-07T09:32:32Z")

</div>

Hi! What glsl version should I use on a shader for mac? I am working on a library thats uses a shader, works ok on Windows, but has compile errors on mac(tried El Capitan and High Sierra). A #version directive is requ…

---

## [LifeCycle callbacks](https://discourse.processing.org/t/lifecycle-callbacks/6378)

<div class="topic-metadata">

**Author:** [@tonlymutan](https://discourse.processing.org/u/tonlymutan)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 8:53am UTC](https://discourse.processing.org/t/lifecycle-callbacks/6378 "2018-12-07T08:53:45Z")

</div>

Hi ALL ! Just a quick one this… I’m exploring the lifecycle callbacks to gain a better understanding of what is going on, but I can’t call super.onRestart() or super.onCreate() … all others … .super.onStart() …onPause(…

---

## [I'm working with Kinect and need some guidance for skeleton interaction](https://discourse.processing.org/t/im-working-with-kinect-and-need-some-guidance-for-skeleton-interaction/6310)

<div class="topic-metadata">

**Author:** [@Brave33](https://discourse.processing.org/u/Brave33)\
**Replies:** 1\
**Last updated:** [December 7, 2018, 7:06am UTC](https://discourse.processing.org/t/im-working-with-kinect-and-need-some-guidance-for-skeleton-interaction/6310 "2018-12-07T07:06:07Z")

</div>

Hello everyone this is my first post so sorry if i make a mistake with the rules in general. First i’d like to explain my code, it’s a simple code to read skeleton with Kinect and add an image to the HEAD, i’d like to m…

---

## [Sound Mapping problem](https://discourse.processing.org/t/sound-mapping-problem/6154)

<div class="topic-metadata">

**Author:** [@Al3e](https://discourse.processing.org/u/Al3e)\
**Replies:** 6\
**Last updated:** [December 7, 2018, 1:09am UTC](https://discourse.processing.org/t/sound-mapping-problem/6154 "2018-12-07T01:09:05Z")

</div>

hello i have this code to visualize the songs according the frequency: import ddf.minim.\*; // minim library import processing.pdf.\*; // pdf export library import java.util.Calendar; // java timestamp Minim minim; // in…

---

## [The button code will not run with the rest of the code](https://discourse.processing.org/t/the-button-code-will-not-run-with-the-rest-of-the-code/6308)

<div class="topic-metadata">

**Author:** [@starkid](https://discourse.processing.org/u/starkid)\
**Replies:** 1\
**Last updated:** [December 7, 2018, 12:58am UTC](https://discourse.processing.org/t/the-button-code-will-not-run-with-the-rest-of-the-code/6308 "2018-12-07T00:58:55Z")

</div>

I’m trying to run the first 2 sections of code with the last section. The last section is a button, I tried rearranging everything and am still have trouble getting it to run. Please help in any way. //minim is the audi…

---

## [FTP: create new text file & save fileContent](https://discourse.processing.org/t/ftp-create-new-text-file-save-filecontent/6250)

<div class="topic-metadata">

**Author:** [@wieb](https://discourse.processing.org/u/wieb)\
**Replies:** 1\
**Last updated:** [December 7, 2018, 12:55am UTC](https://discourse.processing.org/t/ftp-create-new-text-file-save-filecontent/6250 "2018-12-07T00:55:45Z")

</div>

Hi everyone, Is it possible creating a new text file (which contains some string) on the fly then save it to FTP server with Processing? string fileContent = "test 12345 test 12345 test 12345 test 12345"; char fileName…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=547)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=549)
