# Latest

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

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

**Page:** 544

---

## [Weird error nullPointerException](https://discourse.processing.org/t/weird-error-nullpointerexception/6814)

<div class="topic-metadata">

**Author:** [@akenaton](https://discourse.processing.org/u/akenaton)\
**Replies:** 3\
**Last updated:** [December 22, 2018, 9:44am UTC](https://discourse.processing.org/t/weird-error-nullpointerexception/6814 "2018-12-22T09:44:10Z")

</div>

I have a code in which i get 1/1000 times an error i cannot understand; as the code runs fine so many times i dont understand why this error is happening. And the error is not really clear to read: java.lang.NullPointer…

---

## [Advices for my code](https://discourse.processing.org/t/advices-for-my-code/6441)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 6\
**Last updated:** [December 22, 2018, 7:54am UTC](https://discourse.processing.org/t/advices-for-my-code/6441 "2018-12-22T07:54:46Z")

</div>

Hi everyone, i recieved a lot of help from here and i want to show you what i did for now with your help. here is a video i made: here is my code: So here i my question, im self-educated in java and proc…

---

## [Open a Link on a browser with keyPressed](https://discourse.processing.org/t/open-a-link-on-a-browser-with-keypressed/6740)

<div class="topic-metadata">

**Author:** [@\_megss0](https://discourse.processing.org/u/_megss0)\
**Replies:** 10\
**Last updated:** [December 21, 2018, 11:50pm UTC](https://discourse.processing.org/t/open-a-link-on-a-browser-with-keypressed/6740 "2018-12-21T23:50:04Z")

</div>

i want to open a new tab with a link but using the fuction keyPressed something like; if i press CTRL+A open a tab on the browser with a specif link

---

## [Processing program using OSC messages](https://discourse.processing.org/t/processing-program-using-osc-messages/6147)

<div class="topic-metadata">

**Author:** [@justin](https://discourse.processing.org/u/justin)\
**Replies:** 9\
**Last updated:** [December 21, 2018, 8:10pm UTC](https://discourse.processing.org/t/processing-program-using-osc-messages/6147 "2018-12-21T20:10:53Z")

</div>

Hello friends, I am beginner in this programming platform.Can anybody help me with a code to convert the below described program with OSC message using accelerometer data from an android phone.It is a simple program whi…

---

## [I made a game like Doodle Jump in p5js & Froobit](https://discourse.processing.org/t/i-made-a-game-like-doodle-jump-in-p5js-froobit/6659)

<div class="topic-metadata">

**Author:** [@r4nd0m](https://discourse.processing.org/u/r4nd0m)\
**Replies:** 5\
**Last updated:** [December 21, 2018, 5:42pm UTC](https://discourse.processing.org/t/i-made-a-game-like-doodle-jump-in-p5js-froobit/6659 "2018-12-21T17:42:12Z")

</div>

Hi, I just made a small game similar to Doodle Jump game using p5js & Froobit framework. Live demo here: Any feedback is appreciated!

---

## [Null type with variables](https://discourse.processing.org/t/null-type-with-variables/6782)

<div class="topic-metadata">

**Author:** [@josephh](https://discourse.processing.org/u/josephh)\
**Replies:** 4\
**Last updated:** [December 21, 2018, 5:26pm UTC](https://discourse.processing.org/t/null-type-with-variables/6782 "2018-12-21T17:26:33Z")

</div>

Hello there, I want to do this : I have a variable : color background\_color; and at the beginning, I don’t want to assign it because it’s an object property. Then if I call a fonction setWindowBackground(color c) on…

---

## [Missing characters of font exported PDF](https://discourse.processing.org/t/missing-characters-of-font-exported-pdf/6736)

<div class="topic-metadata">

**Author:** [@lumicon9](https://discourse.processing.org/u/lumicon9)\
**Replies:** 4\
**Last updated:** [December 21, 2018, 3:05pm UTC](https://discourse.processing.org/t/missing-characters-of-font-exported-pdf/6736 "2018-12-21T15:05:29Z")

</div>

hi, i want to make some ascii art exported as pdf for larger print. …tried with several fonts using processing.pdf some arn’t working at all some do partly, especially the extra characters i’d like to work with are alw…

---

## [Irregular image to button](https://discourse.processing.org/t/irregular-image-to-button/6786)

<div class="topic-metadata">

**Author:** [@IMTDSN](https://discourse.processing.org/u/IMTDSN)\
**Replies:** 5\
**Last updated:** [December 21, 2018, 9:48am UTC](https://discourse.processing.org/t/irregular-image-to-button/6786 "2018-12-21T09:48:48Z")

</div>

Is it possible to use an irregular image as a button? That is, an image that along the X has different measures of Y, and vice versa, I can use to MousePressed ? Thanks!

---

## [Need help going around "wall" with pathfinder](https://discourse.processing.org/t/need-help-going-around-wall-with-pathfinder/6785)

<div class="topic-metadata">

**Author:** [@Whahahahaha](https://discourse.processing.org/u/Whahahahaha)\
**Replies:** 2\
**Last updated:** [December 21, 2018, 8:48am UTC](https://discourse.processing.org/t/need-help-going-around-wall-with-pathfinder/6785 "2018-12-21T08:48:42Z")

</div>

I need help with the library for path planning from @quark, although it may not actually be specific for the library. I have the program from this thread: https://discourse.processing.org/t/path-finder-java-pathfinder-l…

---

## [BubbleSort Visualization (want to slow it down)](https://discourse.processing.org/t/bubblesort-visualization-want-to-slow-it-down/6742)

<div class="topic-metadata">

**Author:** [@Lillbre](https://discourse.processing.org/u/Lillbre)\
**Replies:** 3\
**Last updated:** [December 21, 2018, 12:23am UTC](https://discourse.processing.org/t/bubblesort-visualization-want-to-slow-it-down/6742 "2018-12-21T00:23:00Z")

</div>

I want to make a visualization of BubbleSort and make rectangles move to show the sorting. My code works “kind off” https://editor.p5js.org/Lillbre/sketches/HkkBABreN but I would love if every move could be seen more slo…

---

## [A universal ambilight](https://discourse.processing.org/t/a-universal-ambilight/1962)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 7\
**Last updated:** [December 20, 2018, 5:28pm UTC](https://discourse.processing.org/t/a-universal-ambilight/1962 "2018-12-20T17:28:40Z")

</div>

Hi everyone! This project is still a work in progress but I would like to share with you the progress I have made so far, the direction I want to follow and gather some feedback or advice about it. I wanted to build an…

---

## [Null Pointers that shouldnt be null](https://discourse.processing.org/t/null-pointers-that-shouldnt-be-null/6752)

<div class="topic-metadata">

**Author:** [@CallMeAza](https://discourse.processing.org/u/CallMeAza)\
**Replies:** 20\
**Last updated:** [December 20, 2018, 10:48am UTC](https://discourse.processing.org/t/null-pointers-that-shouldnt-be-null/6752 "2018-12-20T10:48:04Z")

</div>

Hello guys, i am getting a really weird error… And I hope you can help me. void show(int c) { noFill(); stroke(c); strokeWeight(2); ellipse(center.x, center.y, 2\*r, 2\*r); this.a.show(255); thi…

---

## [Integrate Sketch on website](https://discourse.processing.org/t/integrate-sketch-on-website/6778)

<div class="topic-metadata">

**Author:** [@res56](https://discourse.processing.org/u/res56)\
**Replies:** 0\
**Last updated:** [December 20, 2018, 9:05am UTC](https://discourse.processing.org/t/integrate-sketch-on-website/6778 "2018-12-20T09:05:32Z")

</div>

When i integrate my Sketch in html the Sketch is not displayed correctly. It is displayed magnified. My resolution is 1920x1080px and i set the same size for the Sketch. I am very grateful for help Check my sample on …

---

## [Put and Select an object variables in a list](https://discourse.processing.org/t/put-and-select-an-object-variables-in-a-list/6764)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 1\
**Last updated:** [December 20, 2018, 5:31am UTC](https://discourse.processing.org/t/put-and-select-an-object-variables-in-a-list/6764 "2018-12-20T05:31:22Z")

</div>

hello! i need some help to figure it out how can i put a few object variables into a list. What i want is to have a list with the names of the variables, select the variable and with a slider change it value. Here\`s my c…

---

## [How to create nested polygon](https://discourse.processing.org/t/how-to-create-nested-polygon/6312)

<div class="topic-metadata">

**Author:** [@OliviaJinkela](https://discourse.processing.org/u/OliviaJinkela)\
**Replies:** 14\
**Last updated:** [December 19, 2018, 11:49pm UTC](https://discourse.processing.org/t/how-to-create-nested-polygon/6312 "2018-12-19T23:49:13Z")

</div>

Hi, I’m new to processing, and this is my first post. I has some problem with a processing assignment in school, so I hope everyone can help me to see how to approach to this problem. So basically I want to create a nes…

---

## [Looking for a library to make tree plots](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 7\
**Last updated:** [December 19, 2018, 10:18pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393 "2018-12-19T22:18:10Z")

</div>

Hi, Do you know if there’s a Processing library to make node-based tree graphs (other than the correlation library that is unfortunaltely not P3 compatible) ? Thanks.

---

## [Creating animated Triangle Patterns](https://discourse.processing.org/t/creating-animated-triangle-patterns/6702)

<div class="topic-metadata">

**Author:** [@mmrpl](https://discourse.processing.org/u/mmrpl)\
**Replies:** 3\
**Last updated:** [December 19, 2018, 9:10pm UTC](https://discourse.processing.org/t/creating-animated-triangle-patterns/6702 "2018-12-19T21:10:30Z")

</div>

Hi there, I’d like to create a loop animation of a triangle mesh or pattern - like this. I started looking through toxiclibs and voronoi in general. My problem though is that I don’t really know where to start and what’…

---

## [How can you block the key "Escape"](https://discourse.processing.org/t/how-can-you-block-the-key-escape/6765)

<div class="topic-metadata">

**Author:** [@fritzpal](https://discourse.processing.org/u/fritzpal)\
**Replies:** 2\
**Last updated:** [December 19, 2018, 7:57pm UTC](https://discourse.processing.org/t/how-can-you-block-the-key-escape/6765 "2018-12-19T19:57:41Z")

</div>

Hi, does somebody know how to block processing from closing the sketch when you press escape? I tried this but it did not work: void draw(){ if(key == ESC)key = 0; } Thank you

---

## [Where to find GLSL ES tutorial?](https://discourse.processing.org/t/where-to-find-glsl-es-tutorial/6721)

<div class="topic-metadata">

**Author:** [@lord\_berto](https://discourse.processing.org/u/lord_berto)\
**Replies:** 1\
**Last updated:** [December 19, 2018, 7:34pm UTC](https://discourse.processing.org/t/where-to-find-glsl-es-tutorial/6721 "2018-12-19T19:34:38Z")

</div>

hello, I’m working on a paint program that I hope to port to mobile devices and want to use some shaders. GLSL ES is apparently the shader language to use, anywhere where I may find a website or videos to learn how to…

---

## [Disabling serialEvent() for COM11 null](https://discourse.processing.org/t/disabling-serialevent-for-com11-null/6689)

<div class="topic-metadata">

**Author:** [@shady24](https://discourse.processing.org/u/shady24)\
**Replies:** 1\
**Last updated:** [December 19, 2018, 1:44pm UTC](https://discourse.processing.org/t/disabling-serialevent-for-com11-null/6689 "2018-12-19T13:44:57Z")

</div>

Hi, I am trying to make a game controller using Arduino mega and ADXL 335 & linear potentiometer. The controller works fine but most of the time it gives the error Error, disabling serialEvent() for COM11 null I am…

---

## [Launch() function on linux (Ubuntu)](https://discourse.processing.org/t/launch-function-on-linux-ubuntu/6725)

<div class="topic-metadata">

**Author:** [@phoebus](https://discourse.processing.org/u/phoebus)\
**Replies:** 3\
**Last updated:** [December 19, 2018, 7:36am UTC](https://discourse.processing.org/t/launch-function-on-linux-ubuntu/6725 "2018-12-19T07:36:38Z")

</div>

Hello :slight\_smile: I’m trying to use the launch() function in a stketch I developped and exported for Linux. The machine I am trying it on is using Ubuntu it says " On Linux, it first tries gnome-open, then kde-op…

---

## [Can't use libraries](https://discourse.processing.org/t/cant-use-libraries/6735)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 7\
**Last updated:** [December 19, 2018, 2:43am UTC](https://discourse.processing.org/t/cant-use-libraries/6735 "2018-12-19T02:43:27Z")

</div>

Hello, I really want to use libraries on Android. Although if I import them, I get a few errors in the console: name.jar is mentioned in export.txt, but it'sa big fat lie and does not exist. I followed the manual inst…

---

## [How can I put a program into a pp presentation?](https://discourse.processing.org/t/how-can-i-put-a-program-into-a-pp-presentation/6645)

<div class="topic-metadata">

**Author:** [@daniel110066](https://discourse.processing.org/u/daniel110066)\
**Replies:** 8\
**Last updated:** [December 19, 2018, 12:56am UTC](https://discourse.processing.org/t/how-can-i-put-a-program-into-a-pp-presentation/6645 "2018-12-19T00:56:37Z")

</div>

Please answer my question, or ask for more details if you think you can help.

---

## [Start functions displaced in time?](https://discourse.processing.org/t/start-functions-displaced-in-time/6718)

<div class="topic-metadata">

**Author:** [@Anaibuk](https://discourse.processing.org/u/Anaibuk)\
**Replies:** 5\
**Last updated:** [December 19, 2018, 12:53am UTC](https://discourse.processing.org/t/start-functions-displaced-in-time/6718 "2018-12-19T00:53:59Z")

</div>

Hey, I’m just starting processing at university, so I feel a little lost in my code. I want to start my first void line1 and then, after some seconds, start the second void line2 too. I know that it should be possible t…

---

## [Custom world map how to draw country shapes](https://discourse.processing.org/t/custom-world-map-how-to-draw-country-shapes/6712)

<div class="topic-metadata">

**Author:** [@carlesgutierrez](https://discourse.processing.org/u/carlesgutierrez)\
**Replies:** 2\
**Last updated:** [December 19, 2018, 12:26am UTC](https://discourse.processing.org/t/custom-world-map-how-to-draw-country-shapes/6712 "2018-12-19T00:26:21Z")

</div>

Hi all, I’m wondering if anyone has an idea how to create a dynamic world map… I would love to get all the countries as vector of polygon, then redraw them in different shapes styles and positions. After this I want to…

---

## [VR help can it be done](https://discourse.processing.org/t/vr-help-can-it-be-done/6690)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 2\
**Last updated:** [December 18, 2018, 11:31pm UTC](https://discourse.processing.org/t/vr-help-can-it-be-done/6690 "2018-12-18T23:31:33Z")

</div>

Anyone know if it possible to create a VR in processing & what VR headset would i use if I even made one? Any suggestions will be great.

---

## [Trying to connect an ELP Camera , but i get an error](https://discourse.processing.org/t/trying-to-connect-an-elp-camera-but-i-get-an-error/6499)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 5\
**Last updated:** [December 18, 2018, 10:34pm UTC](https://discourse.processing.org/t/trying-to-connect-an-elp-camera-but-i-get-an-error/6499 "2018-12-18T22:34:53Z")

</div>

(java.exe:4496): GStreamer-CRITICAL \*\*: Trying to dispose element Video Capture, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference,…

---

## [Problem writing number on stripes. Drone interface](https://discourse.processing.org/t/problem-writing-number-on-stripes-drone-interface/6698)

<div class="topic-metadata">

**Author:** [@jcduino](https://discourse.processing.org/u/jcduino)\
**Replies:** 5\
**Last updated:** [December 18, 2018, 8:21pm UTC](https://discourse.processing.org/t/problem-writing-number-on-stripes-drone-interface/6698 "2018-12-18T20:21:11Z")

</div>

Hello I am implementing an interface for my drone and I am blocked in the algorithm that draws the course. The idea is to make vertical stripes along a landscape rectangle. The long lines are every 50px and they have t…

---

## [Marking code parts](https://discourse.processing.org/t/marking-code-parts/6655)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 6\
**Last updated:** [December 18, 2018, 6:07pm UTC](https://discourse.processing.org/t/marking-code-parts/6655 "2018-12-18T18:07:09Z")

</div>

Hi, ive been coding for past 6 months and i have a questions; i dont know how how or if its possible to “color” certain parts of code. Like rect touching part of code is completley unrecognisable between X check and Y …

---

## [Rotate an image when it's moving with "if"](https://discourse.processing.org/t/rotate-an-image-when-its-moving-with-if/6633)

<div class="topic-metadata">

**Author:** [@Alexander](https://discourse.processing.org/u/Alexander)\
**Replies:** 3\
**Last updated:** [December 18, 2018, 5:25pm UTC](https://discourse.processing.org/t/rotate-an-image-when-its-moving-with-if/6633 "2018-12-18T17:25:43Z")

</div>

Hello! My name is Alex and i want to was a question. i’ ve been doing a race game the previous 2 days and i got to a serious problem. I have the menus, the track and a car, i made the car move.In the first place it’s hor…

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

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