# Latest

**URL:** https://discourse.processing.org/latest.md?page=505

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

**Page:** 506

---

## [Why am I getting a NullPointerException](https://discourse.processing.org/t/why-am-i-getting-a-nullpointerexception/9932)

<div class="topic-metadata">

**Author:** [@hasanfarhan33](https://discourse.processing.org/u/hasanfarhan33)\
**Replies:** 4\
**Last updated:** [April 3, 2019, 7:01pm UTC](https://discourse.processing.org/t/why-am-i-getting-a-nullpointerexception/9932 "2019-04-03T19:01:33Z")

</div>

Hello everyone, this is my first ever personal processing project. I am trying to create a game where you send the colored boxes to their particular location. For example, the red box should go to the red position and th…

---

## [GSOC 2019 : Video Processing](https://discourse.processing.org/t/gsoc-2019-video-processing/9575)

<div class="topic-metadata">

**Author:** [@Lesichkov](https://discourse.processing.org/u/Lesichkov)\
**Replies:** 2\
**Last updated:** [April 3, 2019, 4:47pm UTC](https://discourse.processing.org/t/gsoc-2019-video-processing/9575 "2019-04-03T16:47:54Z")

</div>

Hello, My name is Lachezar Lesichkov. I am a first-year Computer Science And Engineering student in TU Delft, Netherlands. I have been programming for 5 years now, with the last two specializing in Java and JavaFX. I wo…

---

## [P5.js Desktop Editor](https://discourse.processing.org/t/p5-js-desktop-editor/9728)

<div class="topic-metadata">

**Author:** [@zenemig](https://discourse.processing.org/u/zenemig)\
**Replies:** 10\
**Last updated:** [April 3, 2019, 4:34pm UTC](https://discourse.processing.org/t/p5-js-desktop-editor/9728 "2019-04-03T16:34:48Z")

</div>

Hello everyone. Please let me know if this is not the place for my question. Im trying to compile my own version of the old p5.js desktop editor but is an absolute headache, due to the fact that it is abandoned and som…

---

## [\[SOLVED\] Game Control Plus: how to reconnect wireless XBOX controller after it turned off](https://discourse.processing.org/t/solved-game-control-plus-how-to-reconnect-wireless-xbox-controller-after-it-turned-off/9698)

<div class="topic-metadata">

**Author:** [@clausrogisch](https://discourse.processing.org/u/clausrogisch)\
**Replies:** 12\
**Last updated:** [March 31, 2019, 11:38am UTC](https://discourse.processing.org/t/solved-game-control-plus-how-to-reconnect-wireless-xbox-controller-after-it-turned-off/9698 "2019-03-31T11:38:27Z")

</div>

I am writing on a programm where i am using the inputs of an wireless XBOX 360 controller with the gamecontrolplus library. In addition i am using a vJoy device and X2DCLI in order to split the left and right triggers. T…

---

## [Get returning incorrect pixel color](https://discourse.processing.org/t/get-returning-incorrect-pixel-color/9826)

<div class="topic-metadata">

**Author:** [@Nokuro](https://discourse.processing.org/u/Nokuro)\
**Replies:** 7\
**Last updated:** [April 3, 2019, 12:12pm UTC](https://discourse.processing.org/t/get-returning-incorrect-pixel-color/9826 "2019-04-03T12:12:49Z")

</div>

get returning incorrect pixel color. See the image, There is a big green rectangle behind those circles. when I use get(x,y) in one of those circles, in the picture you can see the black dot, it is the location wher…

---

## [Which video exporting methods have best quality?](https://discourse.processing.org/t/which-video-exporting-methods-have-best-quality/9505)

<div class="topic-metadata">

**Author:** [@janberkjk](https://discourse.processing.org/u/janberkjk)\
**Replies:** 8\
**Last updated:** [April 3, 2019, 10:51am UTC](https://discourse.processing.org/t/which-video-exporting-methods-have-best-quality/9505 "2019-04-03T10:51:59Z")

</div>

Hi, I am trying to add some frames that I created via Processing in a video clib. But when I try to record the sketch by using the code saveframes and video maker the video quality is so bed. Which way do you think is th…

---

## [NullPointerException with ArrayList of Objects](https://discourse.processing.org/t/nullpointerexception-with-arraylist-of-objects/9895)

<div class="topic-metadata">

**Author:** [@LordBruce](https://discourse.processing.org/u/LordBruce)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 10:04pm UTC](https://discourse.processing.org/t/nullpointerexception-with-arraylist-of-objects/9895 "2019-04-02T22:04:49Z")

</div>

So I am trying to get a list of objects, that when something is pressed, it will add new objects to the list to be checked. I keep getting NullPointerException and I can’t figure it out. I have tried adding a new item wh…

---

## [Snake: Will not ad cells to array with push. Why not?](https://discourse.processing.org/t/snake-will-not-ad-cells-to-array-with-push-why-not/9890)

<div class="topic-metadata">

**Author:** [@steinlav](https://discourse.processing.org/u/steinlav)\
**Replies:** 3\
**Last updated:** [April 3, 2019, 5:42am UTC](https://discourse.processing.org/t/snake-will-not-ad-cells-to-array-with-push-why-not/9890 "2019-04-03T05:42:28Z")

</div>

I am translating from Processing: http://vestera.as/processing/?id=23 to p5.js: https://editor.p5js.org/steinlav/sketches/1rkgu\_AGI Problem in p5.js line 57 Why is it not possible to ad object “head” to the array “b…

---

## [Keep P3D running when surface is not visible](https://discourse.processing.org/t/keep-p3d-running-when-surface-is-not-visible/9896)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [April 3, 2019, 2:19am UTC](https://discourse.processing.org/t/keep-p3d-running-when-surface-is-not-visible/9896 "2019-04-03T02:19:34Z")

</div>

Is there a way to keep P3D running when the surface is not visible? void setup() { size(600, 600, P3D); PSurfaceJOGL surface = (PSurfaceJOGL) getSurface(); surface.setVisible(false); } void draw() { println(fr…

---

## [Drew an Unwanted Circle on Screen](https://discourse.processing.org/t/drew-an-unwanted-circle-on-screen/9889)

<div class="topic-metadata">

**Author:** [@kirstee\_baxt](https://discourse.processing.org/u/kirstee_baxt)\
**Replies:** 2\
**Last updated:** [April 2, 2019, 9:45pm UTC](https://discourse.processing.org/t/drew-an-unwanted-circle-on-screen/9889 "2019-04-02T21:45:21Z")

</div>

Hello! Writing some code based here, and for some reason it is generating an outlined coral colored circle. I believe this is coming from the line graph I drew (in the first begin shape) but not sure where in the code I …

---

## [A p5js mode problem?](https://discourse.processing.org/t/a-p5js-mode-problem/9861)

<div class="topic-metadata">

**Author:** [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)\
**Replies:** 9\
**Last updated:** [April 2, 2019, 7:37pm UTC](https://discourse.processing.org/t/a-p5js-mode-problem/9861 "2019-04-02T19:37:55Z")

</div>

Hello, I tried a very P5JS simple sketch and it doesn’t work in the with P5JS mode. It works fine in P5JS webeditor. I’ve got : Syntax Error : “Expected an operand but found class” The code is "use strict"; let bu…

---

## [Defining Coordinates of a Sphere](https://discourse.processing.org/t/defining-coordinates-of-a-sphere/9813)

<div class="topic-metadata">

**Author:** [@kirstee\_baxt](https://discourse.processing.org/u/kirstee_baxt)\
**Replies:** 5\
**Last updated:** [April 2, 2019, 7:27pm UTC](https://discourse.processing.org/t/defining-coordinates-of-a-sphere/9813 "2019-04-02T19:27:47Z")

</div>

Hello! I’m interested in defining the coordinates of where a sphere lies in a 3D space. I know sphere uses just radius sphere(r); Is there a way to define (x,y,z) values?

---

## [How to use Processing to open a new ped file](https://discourse.processing.org/t/how-to-use-processing-to-open-a-new-ped-file/9829)

<div class="topic-metadata">

**Author:** [@SandCrocus](https://discourse.processing.org/u/SandCrocus)\
**Replies:** 4\
**Last updated:** [April 2, 2019, 5:04pm UTC](https://discourse.processing.org/t/how-to-use-processing-to-open-a-new-ped-file/9829 "2019-04-02T17:04:38Z")

</div>

I want to open a specified pde file when I press the mouse. I have tried the function runtime,getruntime().exec, but it can only open an exe file. How can I open the pde file?

---

## [Rotating rects around a circle perimeter pointing to the center](https://discourse.processing.org/t/rotating-rects-around-a-circle-perimeter-pointing-to-the-center/9868)

<div class="topic-metadata">

**Author:** [@Michalis](https://discourse.processing.org/u/Michalis)\
**Replies:** 7\
**Last updated:** [April 2, 2019, 3:13pm UTC](https://discourse.processing.org/t/rotating-rects-around-a-circle-perimeter-pointing-to-the-center/9868 "2019-04-02T15:13:09Z")

</div>

Hello, I want to achieve something like this but I have no idea how. I checked almost every example, on the application and on the website, checked libraries, googled, but still, I didn’t manage to find a solution (sorr…

---

## [Accessing nested values in a table](https://discourse.processing.org/t/accessing-nested-values-in-a-table/9761)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 16\
**Last updated:** [April 2, 2019, 12:31pm UTC](https://discourse.processing.org/t/accessing-nested-values-in-a-table/9761 "2019-04-02T12:31:43Z")

</div>

I have a CSV file with no headers and where each row contains multiple lists of floats. \[(40.65, 20.30, 120.92, 86.12, 99.33), (10.35, 90.10, 10.52, 1.12, 59.3), (10.65, 62.10, 12.12, 96.23, 19.3)\] \[(96.37, 67.13, 312.6…

---

## [First time working with beginShape and endShape](https://discourse.processing.org/t/first-time-working-with-beginshape-and-endshape/9810)

<div class="topic-metadata">

**Author:** [@ZachMcMkay](https://discourse.processing.org/u/ZachMcMkay)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 1:23am UTC](https://discourse.processing.org/t/first-time-working-with-beginshape-and-endshape/9810 "2019-04-02T01:23:12Z")

</div>

So basically this is code for a project. I have the circles rotating how I’d like them to, I also have a point on the inner circle rotating how i’d like it to. The point’s x and y positions are being saved in an array …

---

## [React and p5 integration demo](https://discourse.processing.org/t/react-and-p5-integration-demo/9848)

<div class="topic-metadata">

**Author:** [@parc6502](https://discourse.processing.org/u/parc6502)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 9:26pm UTC](https://discourse.processing.org/t/react-and-p5-integration-demo/9848 "2019-04-01T21:26:25Z")

</div>

Live demo | Basic version live demo | Github repo | Basic version repo I’ve made a little project that combines react and p5.js. I’m going to work on developing it a bit more and once I have something a bit more stabl…

---

## [How to check if 4 lines make a rectangle?](https://discourse.processing.org/t/how-to-check-if-4-lines-make-a-rectangle/9639)

<div class="topic-metadata">

**Author:** [@misho\_0501](https://discourse.processing.org/u/misho_0501)\
**Replies:** 6\
**Last updated:** [April 1, 2019, 7:33pm UTC](https://discourse.processing.org/t/how-to-check-if-4-lines-make-a-rectangle/9639 "2019-04-01T19:33:04Z")

</div>

I’ve been tring to make the game Connect the dots and now I have a question. What is the easiest or the right way to check when four dots are connected and are making a rectangle. Here is a link to my implementation so …

---

## [GSOC: P5 Web editor idea](https://discourse.processing.org/t/gsoc-p5-web-editor-idea/9781)

<div class="topic-metadata">

**Author:** [@ApoorvTaneja](https://discourse.processing.org/u/ApoorvTaneja)\
**Replies:** 6\
**Last updated:** [April 1, 2019, 8:25pm UTC](https://discourse.processing.org/t/gsoc-p5-web-editor-idea/9781 "2019-04-01T20:25:03Z")

</div>

Hello everyone, I just have one query regarding the ideas proposed. I would like to work on asset improvement - “Upload file through URL” and on implementing search functionality. Will it be a good idea to submit a pro…

---

## [Shape intersection (or a way to do raster)](https://discourse.processing.org/t/shape-intersection-or-a-way-to-do-raster/9741)

<div class="topic-metadata">

**Author:** [@igorguerrero](https://discourse.processing.org/u/igorguerrero)\
**Replies:** 2\
**Last updated:** [April 1, 2019, 6:12pm UTC](https://discourse.processing.org/t/shape-intersection-or-a-way-to-do-raster/9741 "2019-04-01T18:12:42Z")

</div>

Hello! I have a set of vectorial shapes (in processing, p5, inkscape…) that combined form a image. All shapes have solid colors and a layer ranking (I know which one is on top). All I want to do is, setting a new (“ran…

---

## [Text covered by an image](https://discourse.processing.org/t/text-covered-by-an-image/9723)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 2\
**Last updated:** [April 1, 2019, 3:25pm UTC](https://discourse.processing.org/t/text-covered-by-an-image/9723 "2019-04-01T15:25:11Z")

</div>

Hi guys I have a problem, the letters hide or disappear when I load the image. Maybe can someone help? I am new here so I think it’s very easy! Thank you. String\[\] headlines = { "3 3 3 3 3 3 3 3 3 3…

---

## [IP Camera Integration \\w GSVideo Lib](https://discourse.processing.org/t/ip-camera-integration-w-gsvideo-lib/9838)

<div class="topic-metadata">

**Author:** [@ikerkan](https://discourse.processing.org/u/ikerkan)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 2:00pm UTC](https://discourse.processing.org/t/ip-camera-integration-w-gsvideo-lib/9838 "2019-04-01T14:00:24Z")

</div>

Hello everyone, I want to get the IP camera image to my processing sketch, using RTSP protocol. I investigated the subject and found some code using the GSVideo library. When I use the library according to the examples …

---

## [displayWidth: deprecation?](https://discourse.processing.org/t/displaywidth-deprecation/9760)

<div class="topic-metadata">

**Author:** [@Eamoex](https://discourse.processing.org/u/Eamoex)\
**Replies:** 6\
**Last updated:** [April 1, 2019, 8:32am UTC](https://discourse.processing.org/t/displaywidth-deprecation/9760 "2019-04-01T08:32:50Z")

</div>

Hello All, coming back to Processing after a while. Actually I haven’t dealt much with 3.0 (it was already out when I still had my hands in 2.0, but all my sketches were 2.0 and I stuck there, being too lazy for rewrite…

---

## [Make different objects appear at different timing](https://discourse.processing.org/t/make-different-objects-appear-at-different-timing/9806)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 6\
**Last updated:** [April 1, 2019, 1:58am UTC](https://discourse.processing.org/t/make-different-objects-appear-at-different-timing/9806 "2019-04-01T01:58:27Z")

</div>

Hi, I have a code where I intend circles to appear on the canvas at different timing, then enlarge and disappear. Despite my attempts, they all seem to appear simultaneously. Anything wrong with setTimeout here? Thanks. …

---

## [My First Feedback (and a suggestion for a standard function for p5.js)](https://discourse.processing.org/t/my-first-feedback-and-a-suggestion-for-a-standard-function-for-p5-js/9798)

<div class="topic-metadata">

**Author:** [@NeilTheSeal](https://discourse.processing.org/u/NeilTheSeal)\
**Replies:** 4\
**Last updated:** [April 1, 2019, 2:19am UTC](https://discourse.processing.org/t/my-first-feedback-and-a-suggestion-for-a-standard-function-for-p5-js/9798 "2019-04-01T02:19:59Z")

</div>

Hi to the community, I have begun making p5.js sketches recently to help instruct math and science at my university, and it’s perfect for our applications. So first of all, thanks to all the contributors and our friends …

---

## [Color arithmetic (getting average, etc.)](https://discourse.processing.org/t/color-arithmetic-getting-average-etc/9801)

<div class="topic-metadata">

**Author:** [@cdaein](https://discourse.processing.org/u/cdaein)\
**Replies:** 4\
**Last updated:** [March 31, 2019, 8:21pm UTC](https://discourse.processing.org/t/color-arithmetic-getting-average-etc/9801 "2019-03-31T20:21:15Z")

</div>

I am trying to do calculation on color data type. Say, I want to get an average of two colors as below, and say I cannot access the color values 0 and 255 themselves directly: color c1 = color(0); color c2 = color(255);…

---

## [Time in Processing](https://discourse.processing.org/t/time-in-processing/9799)

<div class="topic-metadata">

**Author:** [@kaushalsapre](https://discourse.processing.org/u/kaushalsapre)\
**Replies:** 2\
**Last updated:** [March 31, 2019, 8:07pm UTC](https://discourse.processing.org/t/time-in-processing/9799 "2019-03-31T20:07:36Z")

</div>

I have a .csv file with a column for time in milliseconds and another for speed in kmph. I would like to create a visualization for a speedometer using processing. My framework for the solution was to create a counter t…

---

## [Using p5 without sketch.js, setup() and draw()](https://discourse.processing.org/t/using-p5-without-sketch-js-setup-and-draw/9766)

<div class="topic-metadata">

**Author:** [@Milky](https://discourse.processing.org/u/Milky)\
**Replies:** 3\
**Last updated:** [March 31, 2019, 5:09pm UTC](https://discourse.processing.org/t/using-p5-without-sketch-js-setup-and-draw/9766 "2019-03-31T17:09:35Z")

</div>

Hello again, So, I want to add a new JS file to my project that I would like to run instead of the sketch.js file as the “main” JS file. Not always but sometimes. This is because I would like to separate my games “core”…

---

## [CreateCapture(VIDEO)](https://discourse.processing.org/t/createcapture-video/9812)

<div class="topic-metadata">

**Author:** [@vidasdemo](https://discourse.processing.org/u/vidasdemo)\
**Replies:** 0\
**Last updated:** [March 31, 2019, 4:59pm UTC](https://discourse.processing.org/t/createcapture-video/9812 "2019-03-31T16:59:55Z")

</div>

irrespective of what webcam I use CreateCapture always returns a video of size 300 by 150 when using p5.js web editor. Although I can use the size function to change the display size it seems that image function still ex…

---

## [P5.js TWO\_PI not working?](https://discourse.processing.org/t/p5-js-two-pi-not-working/9439)

<div class="topic-metadata">

**Author:** [@Code\_Caffeine](https://discourse.processing.org/u/Code_Caffeine)\
**Replies:** 3\
**Last updated:** [March 31, 2019, 4:39pm UTC](https://discourse.processing.org/t/p5-js-two-pi-not-working/9439 "2019-03-31T16:39:05Z")

</div>

I am trying to make a clock in p5.js after watching the Coding Train video on the topic. However, when I try to create an arc, the angle TWO\_PI produces no output, where I expect a full circle. Every other angle I have t…

[Previous page](https://discourse.processing.org/latest.md?page=504)

[Next page](https://discourse.processing.org/latest.md?page=506)
