# Latest

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

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

**Page:** 434

---

## [Problem with android mousePressed](https://discourse.processing.org/t/problem-with-android-mousepressed/14933)

<div class="topic-metadata">

**Author:** [@anony](https://discourse.processing.org/u/anony)\
**Replies:** 5\
**Last updated:** [October 25, 2019, 7:37pm UTC](https://discourse.processing.org/t/problem-with-android-mousepressed/14933 "2019-10-25T19:37:01Z")

</div>

First of all: sorry for my bad english, i’m not. I tried to use mousePressed in android, and initially works. But after some tests, i found a serius problem. By clicking quickly at the same time with two fingers and rele…

---

## [Rendering issues drawing primitives with stroke()](https://discourse.processing.org/t/rendering-issues-drawing-primitives-with-stroke/5921)

<div class="topic-metadata">

**Author:** [@stixan](https://discourse.processing.org/u/stixan)\
**Replies:** 4\
**Last updated:** [October 25, 2019, 5:22pm UTC](https://discourse.processing.org/t/rendering-issues-drawing-primitives-with-stroke/5921 "2019-10-25T17:22:48Z")

</div>

I am experiencing rendering issues when I try to draw lines between sub-pixel positions (i.e., specifying start-end-coordinates using float values). Lines drawn with a regular interval using a for loop should appear even…

---

## [Multiple filters live video feed possible?](https://discourse.processing.org/t/multiple-filters-live-video-feed-possible/14667)

<div class="topic-metadata">

**Author:** [@nmveld](https://discourse.processing.org/u/nmveld)\
**Replies:** 5\
**Last updated:** [October 25, 2019, 5:14pm UTC](https://discourse.processing.org/t/multiple-filters-live-video-feed-possible/14667 "2019-10-25T17:14:36Z")

</div>

Hi all, I’m trying to add two different filters to a video feed from a webcam. What I try to accomplish is an inverted, grayscale image to feed to multiple led strips. I also add a tint to make the strips a bit warmer. …

---

## [NullPointerException when after 2 secconds](https://discourse.processing.org/t/nullpointerexception-when-after-2-secconds/14871)

<div class="topic-metadata">

**Author:** [@DatSoi](https://discourse.processing.org/u/DatSoi)\
**Replies:** 4\
**Last updated:** [October 23, 2019, 7:57am UTC](https://discourse.processing.org/t/nullpointerexception-when-after-2-secconds/14871 "2019-10-23T07:57:57Z")

</div>

Hi so my code seems to give me NullPointerException when i get to the 86th line. Im not sure why could you help. import gab.opencv.\*; import processing.video.\*; import java.awt.\*; int maxImages = 61; //61 Frames int im…

---

## [Snake Game in Processing](https://discourse.processing.org/t/snake-game-in-processing/14921)

<div class="topic-metadata">

**Author:** [@Ephilorex](https://discourse.processing.org/u/Ephilorex)\
**Replies:** 10\
**Last updated:** [October 25, 2019, 2:14pm UTC](https://discourse.processing.org/t/snake-game-in-processing/14921 "2019-10-25T14:14:30Z")

</div>

Hello! I’m a complete beginner with Processing. For my assignment, I want to make a snake game in Processing. Here is what I want to do; Draw background Create apple system; spawn one in on the grid when another is eat…

---

## [SVG to vertex code for P5JS](https://discourse.processing.org/t/svg-to-vertex-code-for-p5js/14942)

<div class="topic-metadata">

**Author:** [@dehyde](https://discourse.processing.org/u/dehyde)\
**Replies:** 1\
**Last updated:** [October 25, 2019, 12:33pm UTC](https://discourse.processing.org/t/svg-to-vertex-code-for-p5js/14942 "2019-10-25T12:33:58Z")

</div>

Hi I’m trying to implement an SVG file into P5JS Since, as I currently understand, that is not supported, I was wondering if there is a known tool to parse the SVG to P5JS shape code (ie beingShape, vertex etc…). Addi…

---

## [SOLVED? Image drop() peculiarities?](https://discourse.processing.org/t/solved-image-drop-peculiarities/14940)

<div class="topic-metadata">

**Author:** [@everythingability](https://discourse.processing.org/u/everythingability)\
**Replies:** 3\
**Last updated:** [October 25, 2019, 12:03pm UTC](https://discourse.processing.org/t/solved-image-drop-peculiarities/14940 "2019-10-25T12:03:41Z")

</div>

I think I’ve found bugs in the file.drop() area that produces really weird results… Lauren’s example ( https://github.com/processing/p5.js/issues/3055 ) doesn’t quite cut it, for reasons I mention in the sketch… This so…

---

## [Turning Depth Buffer into a PGraphics element](https://discourse.processing.org/t/turning-depth-buffer-into-a-pgraphics-element/14184)

<div class="topic-metadata">

**Author:** [@dehyde](https://discourse.processing.org/u/dehyde)\
**Replies:** 8\
**Last updated:** [October 25, 2019, 11:10am UTC](https://discourse.processing.org/t/turning-depth-buffer-into-a-pgraphics-element/14184 "2019-10-25T11:10:04Z")

</div>

I want to create 2d outlines for objects on 3d space, to simulate some sort of “technical illustration” or Ikea instructions style rendering, similar to what SolidWorks Composer is doing (notice how external stroke is h…

---

## [Shape from Stroke](https://discourse.processing.org/t/shape-from-stroke/14893)

<div class="topic-metadata">

**Author:** [@dehyde](https://discourse.processing.org/u/dehyde)\
**Replies:** 7\
**Last updated:** [October 25, 2019, 11:02am UTC](https://discourse.processing.org/t/shape-from-stroke/14893 "2019-10-25T11:02:44Z")

</div>

Is there a known way to take the stroke of a bezier curve or PShape and turn it into a closed path / shape? for example:

---

## [Concurrent Modification Exception question](https://discourse.processing.org/t/concurrent-modification-exception-question/14905)

<div class="topic-metadata">

**Author:** [@robbyc23](https://discourse.processing.org/u/robbyc23)\
**Replies:** 5\
**Last updated:** [October 25, 2019, 10:43am UTC](https://discourse.processing.org/t/concurrent-modification-exception-question/14905 "2019-10-25T10:43:04Z")

</div>

Hello, I’ve been figuring out the cause of my issue (adding to an array while simultaneously deleting from it), but can’t figure out how to work around it…yet. I’ve repurposed some code from Shiffman’s Nature of Code t…

---

## [Idea: Library that involves drawing and sound](https://discourse.processing.org/t/idea-library-that-involves-drawing-and-sound/13790)

<div class="topic-metadata">

**Author:** [@tanhengyeow](https://discourse.processing.org/u/tanhengyeow)\
**Replies:** 4\
**Last updated:** [October 25, 2019, 2:57am UTC](https://discourse.processing.org/t/idea-library-that-involves-drawing-and-sound/13790 "2019-10-25T02:57:49Z")

</div>

Hi all! My name is Heng Yeow and I’m an open-source enthusiast. I’m interested in K12 education and developing creative learning experiences. I’m thinking of supporting a p5 library that combines audio and drawing on c…

---

## [Raspberry Pi and AR](https://discourse.processing.org/t/raspberry-pi-and-ar/14831)

<div class="topic-metadata">

**Author:** [@Rana\_Yehya](https://discourse.processing.org/u/Rana_Yehya)\
**Replies:** 1\
**Last updated:** [October 25, 2019, 2:44am UTC](https://discourse.processing.org/t/raspberry-pi-and-ar/14831 "2019-10-25T02:44:20Z")

</div>

Hello, all! I have a Raspberry Pi kit and I want to run an AR application on it using the Raspberry Pi camera as an input. Can Processing do such an application like this? Is there any resource can help me with that?

---

## [Why wont the train move?](https://discourse.processing.org/t/why-wont-the-train-move/14927)

<div class="topic-metadata">

**Author:** [@Mike](https://discourse.processing.org/u/Mike)\
**Replies:** 6\
**Last updated:** [October 25, 2019, 12:06am UTC](https://discourse.processing.org/t/why-wont-the-train-move/14927 "2019-10-25T00:06:02Z")

</div>

Hi everyone, Im back again with more issues haha. https://editor.p5js.org/mcfiorino624/sketches/xVaLKQ\_NF started writing a simple program I am putting together for my son. I have successfully written 2 separate prog…

---

## [Metadata-extractor](https://discourse.processing.org/t/metadata-extractor/14798)

<div class="topic-metadata">

**Author:** [@m47k0](https://discourse.processing.org/u/m47k0)\
**Replies:** 6\
**Last updated:** [October 24, 2019, 7:34pm UTC](https://discourse.processing.org/t/metadata-extractor/14798 "2019-10-24T19:34:28Z")

</div>

hi looking to read exif data & found: which led to metadata-extractor. https://drewnoakes.com/code/exif/ I appear to be able to import the jar after setting it up in the Processing library, but then it fails at…

---

## [Is there a similar function to modelX() in p5?](https://discourse.processing.org/t/is-there-a-similar-function-to-modelx-in-p5/13688)

<div class="topic-metadata">

**Author:** [@hmdeif](https://discourse.processing.org/u/hmdeif)\
**Replies:** 11\
**Last updated:** [October 24, 2019, 2:25pm UTC](https://discourse.processing.org/t/is-there-a-similar-function-to-modelx-in-p5/13688 "2019-10-24T14:25:26Z")

</div>

I built a program using processing, and now I’m trying to covert it to a web app using p5. As I’m transferring the code, I could not find anything in p5 like modelX() in processing? Any suggestions?

---

## [Moving from processing with java to P5.js](https://discourse.processing.org/t/moving-from-processing-with-java-to-p5-js/14912)

<div class="topic-metadata">

**Author:** [@Velouria](https://discourse.processing.org/u/Velouria)\
**Replies:** 8\
**Last updated:** [October 24, 2019, 12:58pm UTC](https://discourse.processing.org/t/moving-from-processing-with-java-to-p5-js/14912 "2019-10-24T12:58:37Z")

</div>

Hi there! Been using the java platform and recentley i’ve started to use the p5 platform. Really cool! However, I have this function for a bouncing ball that works perfectly in Java but doesnt work on js and I cant fin…

---

## [Is there a way to tell if an element is being hovered in G4P?](https://discourse.processing.org/t/is-there-a-way-to-tell-if-an-element-is-being-hovered-in-g4p/14897)

<div class="topic-metadata">

**Author:** [@carbonne](https://discourse.processing.org/u/carbonne)\
**Replies:** 2\
**Last updated:** [October 24, 2019, 9:33am UTC](https://discourse.processing.org/t/is-there-a-way-to-tell-if-an-element-is-being-hovered-in-g4p/14897 "2019-10-24T09:33:16Z")

</div>

I’m using this amazing library for the first time and the only thing it doesn’t have is a menu. So I’m trying to build my own menu using the elements provided by the library and I’m wondering if there is a simple way th…

---

## [Screen proportion for cellphones](https://discourse.processing.org/t/screen-proportion-for-cellphones/14908)

<div class="topic-metadata">

**Author:** [@kelwinzxu](https://discourse.processing.org/u/kelwinzxu)\
**Replies:** 7\
**Last updated:** [October 24, 2019, 9:16am UTC](https://discourse.processing.org/t/screen-proportion-for-cellphones/14908 "2019-10-24T09:16:28Z")

</div>

Hello I’m new in Processing so I have a question for cellphones proportion… Imagine that I have the following code: void setup(){ size(900,1600); } void draw(){ backgroud(0); ellipse(150,1200,300,300); ellipse…

---

## [Problem with loadImage()](https://discourse.processing.org/t/problem-with-loadimage/14907)

<div class="topic-metadata">

**Author:** [@vinceibay](https://discourse.processing.org/u/vinceibay)\
**Replies:** 5\
**Last updated:** [October 24, 2019, 7:46am UTC](https://discourse.processing.org/t/problem-with-loadimage/14907 "2019-10-24T07:46:17Z")

</div>

I am currently on Dan Shiffmans 7.8 p5js tutorial https://www.youtube.com/watch?v=i2C1hrJMwz0&list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA&index=36 and I have encountered this error “p5.js says: It looks like there was a prob…

---

## [A proposed fix for the stop() method in p5.Sound Part](https://discourse.processing.org/t/a-proposed-fix-for-the-stop-method-in-p5-sound-part/14785)

<div class="topic-metadata">

**Author:** [@leobrooks](https://discourse.processing.org/u/leobrooks)\
**Replies:** 3\
**Last updated:** [October 23, 2019, 8:58pm UTC](https://discourse.processing.org/t/a-proposed-fix-for-the-stop-method-in-p5-sound-part/14785 "2019-10-23T20:58:30Z")

</div>

Hello, I am a relative newbie to coding but I have been working really hard on a project that uses the p5.Sound library in p5.js. The problem was that the stop() method was not working the way it said it should on the d…

---

## [Webcam doesn't work on OSX Sierra 10.12.6](https://discourse.processing.org/t/webcam-doesnt-work-on-osx-sierra-10-12-6/14903)

<div class="topic-metadata">

**Author:** [@yrd214](https://discourse.processing.org/u/yrd214)\
**Replies:** 1\
**Last updated:** [October 23, 2019, 8:43pm UTC](https://discourse.processing.org/t/webcam-doesnt-work-on-osx-sierra-10-12-6/14903 "2019-10-23T20:43:51Z")

</div>

I’m trying to capture my webcam in Processing, but it doesn’t work. I’m using Processing 3.5.3 OSX Sierra 10.12.6 I used the code from the reference: import processing.video.\*; Capture cam; void setup() { size(640…

---

## [Synchronize access to array](https://discourse.processing.org/t/synchronize-access-to-array/14895)

<div class="topic-metadata">

**Author:** [@pcremades](https://discourse.processing.org/u/pcremades)\
**Replies:** 3\
**Last updated:** [October 23, 2019, 8:16pm UTC](https://discourse.processing.org/t/synchronize-access-to-array/14895 "2019-10-23T20:16:37Z")

</div>

Hi, I’m having problems with an array being updated inside SerialEvent handler. This is the case: I’m using grafica library I get some data from an Arduino through the serial port. I handle this through a SerialEvent …

---

## [Get class variables from another class](https://discourse.processing.org/t/get-class-variables-from-another-class/14866)

<div class="topic-metadata">

**Author:** [@HoboGreed](https://discourse.processing.org/u/HoboGreed)\
**Replies:** 6\
**Last updated:** [October 23, 2019, 5:23pm UTC](https://discourse.processing.org/t/get-class-variables-from-another-class/14866 "2019-10-23T17:23:41Z")

</div>

How do I get a variable from the class that created the class ? One a; void setup() { a=new One(); } void draw() {} public class One { Two b; int num; One() { num=9; println(num); b=new Two(); }…

---

## [Rotate and zoom question](https://discourse.processing.org/t/rotate-and-zoom-question/14891)

<div class="topic-metadata">

**Author:** [@companje](https://discourse.processing.org/u/companje)\
**Replies:** 3\
**Last updated:** [October 23, 2019, 4:53pm UTC](https://discourse.processing.org/t/rotate-and-zoom-question/14891 "2019-10-23T16:53:30Z")

</div>

Hi everyone, I’m trying to zoom in on a sphere. Instead of zooming in from the center I would like to zoom in such a way that the red square stays in the yellow ellipse. What would be a good way to achieve this do you …

---

## [Spawning Enemies](https://discourse.processing.org/t/spawning-enemies/14875)

<div class="topic-metadata">

**Author:** [@OrangeJuice](https://discourse.processing.org/u/OrangeJuice)\
**Replies:** 3\
**Last updated:** [October 23, 2019, 3:33pm UTC](https://discourse.processing.org/t/spawning-enemies/14875 "2019-10-23T15:33:35Z")

</div>

I’m trying to create a side scrolling shoot 'em up type game and I’m having trouble spawning the enemies, this is my code right now. if (r==1 && enemy==true) buggieY+=5; buggieX=750; buggieY=300; if (buggieY\>600 || …

---

## [How to start/stop individual windows in multiwindow project?](https://discourse.processing.org/t/how-to-start-stop-individual-windows-in-multiwindow-project/14761)

<div class="topic-metadata">

**Author:** [@NaniAromix](https://discourse.processing.org/u/NaniAromix)\
**Replies:** 7\
**Last updated:** [October 23, 2019, 12:51pm UTC](https://discourse.processing.org/t/how-to-start-stop-individual-windows-in-multiwindow-project/14761 "2019-10-23T12:51:16Z")

</div>

Hey there! I am having a bit of trouble with this and there seems to be no straightforward way to approach it. What I am working on is a multiwindow project, designed to be implemented in a yacht/boat display. Each of t…

---

## [Android mode error - Build does not run](https://discourse.processing.org/t/android-mode-error-build-does-not-run/14896)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [October 23, 2019, 12:20pm UTC](https://discourse.processing.org/t/android-mode-error-build-does-not-run/14896 "2019-10-23T12:20:53Z")

</div>

Please see the picture above. This error occurs. Is there a workaround? Help me.

---

## [\[Android\] 'Notification' does not work](https://discourse.processing.org/t/android-notification-does-not-work/14512)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 6\
**Last updated:** [October 23, 2019, 11:45am UTC](https://discourse.processing.org/t/android-notification-does-not-work/14512 "2019-10-23T11:45:10Z")

</div>

import android.os.Build; import android.app.NotificationChannel; import android.app.NotificationManager; import android.support.v4.app.NotificationCompat; import android.support.v4.app.NotificationManagerCompat; impor…

---

## [Help with functions](https://discourse.processing.org/t/help-with-functions/14885)

<div class="topic-metadata">

**Author:** [@JackBarrie1341](https://discourse.processing.org/u/JackBarrie1341)\
**Replies:** 1\
**Last updated:** [October 23, 2019, 1:36am UTC](https://discourse.processing.org/t/help-with-functions/14885 "2019-10-23T01:36:00Z")

</div>

Hello, I am trying to make a function that returns the string str in all lowercase. The console is saying that String allLowercase (String str) must return a result of type string. I’m stumped and obviously a little lo…

---

## [Restarting app programmatically](https://discourse.processing.org/t/restarting-app-programmatically/14658)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 6\
**Last updated:** [October 23, 2019, 6:30am UTC](https://discourse.processing.org/t/restarting-app-programmatically/14658 "2019-10-23T06:30:14Z")

</div>

Hi. I want to restart my app from startup and after googling some snippets I found code below. It gives however the Exception error. Until now I restart my program by emptying all arrays and images and run simply setup()…

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

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