# Latest

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

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

**Page:** 493

---

## [Simple arduino to processing serial not outputting anything](https://discourse.processing.org/t/simple-arduino-to-processing-serial-not-outputting-anything/10837)

<div class="topic-metadata">

**Author:** [@eezJerome](https://discourse.processing.org/u/eezJerome)\
**Replies:** 5\
**Last updated:** [May 3, 2019, 7:56am UTC](https://discourse.processing.org/t/simple-arduino-to-processing-serial-not-outputting-anything/10837 "2019-05-03T07:56:24Z")

</div>

I understand that it might be annoying that I am posting on a different thread for the same project, but it is a different code and approach, so I thought it was appropriate to do this. I have literally been at this thi…

---

## [Creating a shape using vertices of different color](https://discourse.processing.org/t/creating-a-shape-using-vertices-of-different-color/10842)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [May 3, 2019, 4:17am UTC](https://discourse.processing.org/t/creating-a-shape-using-vertices-of-different-color/10842 "2019-05-03T04:17:59Z")

</div>

Hi, so a little while ago I attempted Dan Shiffman’s code to make my own maze. It was a really nice maze, where lines where drawn top right bottom left to make a square grid of squares, and you could call one of the line…

---

## [Game Error (NullPointerException)](https://discourse.processing.org/t/game-error-nullpointerexception/10856)

<div class="topic-metadata">

**Author:** [@hannieways](https://discourse.processing.org/u/hannieways)\
**Replies:** 6\
**Last updated:** [May 3, 2019, 12:56am UTC](https://discourse.processing.org/t/game-error-nullpointerexception/10856 "2019-05-03T00:56:58Z")

</div>

I’m currently trying to create a game for my computer science class and I’m having a bit of a rocky start, to be honest. What I have below is the basis of the game but I’m running into a problem when I run the code. It d…

---

## [Why does Type inference not work in the Processing editor?](https://discourse.processing.org/t/why-does-type-inference-not-work-in-the-processing-editor/10467)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 24\
**Last updated:** [May 2, 2019, 9:41pm UTC](https://discourse.processing.org/t/why-does-type-inference-not-work-in-the-processing-editor/10467 "2019-05-02T21:41:25Z")

</div>

With Type inference I mean List\<Type\> list = new ArrayList\<\>(); unexpected token: \> Why is that? To provide “further research” (I can feel the toxicity of excessive StackOverflow usage flowing in my veins) I suspect…

---

## [Pixel distortion](https://discourse.processing.org/t/pixel-distortion/10783)

<div class="topic-metadata">

**Author:** [@Avishay](https://discourse.processing.org/u/Avishay)\
**Replies:** 4\
**Last updated:** [May 2, 2019, 9:33pm UTC](https://discourse.processing.org/t/pixel-distortion/10783 "2019-05-02T21:33:59Z")

</div>

Hey! I’m trying to understand which code was used on this work: Someone has an idea? :slight\_smile:

---

## [Why is the result fo the shader black?](https://discourse.processing.org/t/why-is-the-result-fo-the-shader-black/10850)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [May 2, 2019, 8:41pm UTC](https://discourse.processing.org/t/why-is-the-result-fo-the-shader-black/10850 "2019-05-02T20:41:25Z")

</div>

I try to port: https://www.shadertoy.com/view/XssSzN Here is the sketch: PShader shader; void setup() { size(800, 600, P2D); shader = loadShader("metaballs.frag"); } void draw() { shader.set("iTime", (…

---

## [Sharing a p5 sketch that has an array of images](https://discourse.processing.org/t/sharing-a-p5-sketch-that-has-an-array-of-images/10821)

<div class="topic-metadata">

**Author:** [@am\_i\_functional](https://discourse.processing.org/u/am_i_functional)\
**Replies:** 12\
**Last updated:** [May 2, 2019, 6:56pm UTC](https://discourse.processing.org/t/sharing-a-p5-sketch-that-has-an-array-of-images/10821 "2019-05-02T18:56:44Z")

</div>

My sketch which is just basically coding challenge 5 works great in the web editor. I used some of my own art in it and it works fine with my art. When i try to share online it has a problem. i saw in inspect element a …

---

## [Using Minim to Play Sounds in States](https://discourse.processing.org/t/using-minim-to-play-sounds-in-states/10639)

<div class="topic-metadata">

**Author:** [@danikc8](https://discourse.processing.org/u/danikc8)\
**Replies:** 5\
**Last updated:** [May 2, 2019, 4:49pm UTC](https://discourse.processing.org/t/using-minim-to-play-sounds-in-states/10639 "2019-05-02T16:49:27Z")

</div>

Hi there! This is my first Processing project and I’m having some difficulty with the sounds playing when I want them to. I want the player1 clip to start looping in the stateMainScreen but I can’t figure out how to get …

---

## [Loop a sound by using minim](https://discourse.processing.org/t/loop-a-sound-by-using-minim/10802)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 2\
**Last updated:** [May 2, 2019, 3:03pm UTC](https://discourse.processing.org/t/loop-a-sound-by-using-minim/10802 "2019-05-02T15:03:53Z")

</div>

Hi, I am trying to play a sound by using the library: minim when a variable becomes true. The problem occurs when I want to loop the sound when it is done playing so it would be nice if I could get a simple example to s…

---

## [Help with data.csv code](https://discourse.processing.org/t/help-with-data-csv-code/10763)

<div class="topic-metadata">

**Author:** [@Seyfi](https://discourse.processing.org/u/Seyfi)\
**Replies:** 11\
**Last updated:** [May 2, 2019, 2:53pm UTC](https://discourse.processing.org/t/help-with-data-csv-code/10763 "2019-05-02T14:53:07Z")

</div>

Hello I am trying to run the code which is from processing.org and using data.csv file, but I am getting the following error: This tabel has no column named x. The code is as following Table table; Bubble\[\] bubbles; …

---

## [Arraylist full of functions?](https://discourse.processing.org/t/arraylist-full-of-functions/10786)

<div class="topic-metadata">

**Author:** [@DerekCresswell](https://discourse.processing.org/u/DerekCresswell)\
**Replies:** 6\
**Last updated:** [May 2, 2019, 2:14pm UTC](https://discourse.processing.org/t/arraylist-full-of-functions/10786 "2019-05-02T14:14:22Z")

</div>

I need to store a list of functions that I can execute from said array. I also need to be able to pass them as variables. Lambda doesn’t seem to work in processing. How can I do this? Thanks!

---

## [Click event on two shape](https://discourse.processing.org/t/click-event-on-two-shape/10613)

<div class="topic-metadata">

**Author:** [@clingonboy](https://discourse.processing.org/u/clingonboy)\
**Replies:** 6\
**Last updated:** [May 2, 2019, 1:36pm UTC](https://discourse.processing.org/t/click-event-on-two-shape/10613 "2019-05-02T13:36:56Z")

</div>

If I have two rect one over enother, partially, if a click in the common area, how can I select the last above rectangle? like in this example: https://editor.p5js.org/Clingonboy/sketches/ja\_VJNrg4 Have I do andle mys…

---

## [Trouble with the Serial port read](https://discourse.processing.org/t/trouble-with-the-serial-port-read/10724)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 5\
**Last updated:** [May 2, 2019, 12:29pm UTC](https://discourse.processing.org/t/trouble-with-the-serial-port-read/10724 "2019-05-02T12:29:11Z")

</div>

I am getting a periodic string from an Arduino Mega, about once a second. I parse it and get various values from it. About every 20 messages I get this weird error, and I dont know why. Here is my receiving code wh…

---

## [Can "return" be applied to a String?](https://discourse.processing.org/t/can-return-be-applied-to-a-string/10823)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 3\
**Last updated:** [May 2, 2019, 12:08pm UTC](https://discourse.processing.org/t/can-return-be-applied-to-a-string/10823 "2019-05-02T12:08:43Z")

</div>

I wrote this little function to convert miliseconds to Human readible time. I would like to use “return” to make life simple. So I tried: void MsConversion(int MS) { int totalSec= (MS / 1000); int seconds = (MS / 10…

---

## [How to ask a question and receive and answer](https://discourse.processing.org/t/how-to-ask-a-question-and-receive-and-answer/10814)

<div class="topic-metadata">

**Author:** [@MichaelGuillet](https://discourse.processing.org/u/MichaelGuillet)\
**Replies:** 2\
**Last updated:** [May 2, 2019, 10:59am UTC](https://discourse.processing.org/t/how-to-ask-a-question-and-receive-and-answer/10814 "2019-05-02T10:59:27Z")

</div>

I am coming from a background in coding in scratch i know how lame that sounds but i have a couple of questions on how to ask a question like you can in scratch and set the answer to a variable. Also how to make clickabl…

---

## [If hovering over? pic paste, rotate friendly (detects if over transparent parts of img)](https://discourse.processing.org/t/if-hovering-over-pic-paste-rotate-friendly-detects-if-over-transparent-parts-of-img/10662)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 4\
**Last updated:** [May 2, 2019, 2:43am UTC](https://discourse.processing.org/t/if-hovering-over-pic-paste-rotate-friendly-detects-if-over-transparent-parts-of-img/10662 "2019-05-02T02:43:57Z")

</div>

Hi, i’ve been wondering how to detect if mouse (or just X and Y cords) is hovering over an image, and if the image is transparent at x y it isnt hovering over. So if you r hovering over transparent part of img it returns…

---

## [Animation (Link Isn't Showing!)](https://discourse.processing.org/t/animation-link-isnt-showing/10824)

<div class="topic-metadata">

**Author:** [@leeke](https://discourse.processing.org/u/leeke)\
**Replies:** 1\
**Last updated:** [May 2, 2019, 12:19am UTC](https://discourse.processing.org/t/animation-link-isnt-showing/10824 "2019-05-02T00:19:49Z")

</div>

I’m a beginner in coding and I’m trying to make a game. I only have the very basics right now but I seem to be having a problem. Link (the character I’m using for the game) Isn’t showing up on the screen when I run the p…

---

## [Maze Game Simple Question](https://discourse.processing.org/t/maze-game-simple-question/10816)

<div class="topic-metadata">

**Author:** [@GuerillaGirl](https://discourse.processing.org/u/GuerillaGirl)\
**Replies:** 1\
**Last updated:** [May 1, 2019, 10:29pm UTC](https://discourse.processing.org/t/maze-game-simple-question/10816 "2019-05-01T22:29:52Z")

</div>

Here is the code that we have. We need to know how to make the dot go faster because when we start it moves slow. We just need to know how to increase the speed of the ellipse. We are beginners! PImage GreenMaze; int x …

---

## [Creating a brush texture](https://discourse.processing.org/t/creating-a-brush-texture/10701)

<div class="topic-metadata">

**Author:** [@saitam95](https://discourse.processing.org/u/saitam95)\
**Replies:** 5\
**Last updated:** [May 1, 2019, 10:12pm UTC](https://discourse.processing.org/t/creating-a-brush-texture/10701 "2019-05-01T22:12:26Z")

</div>

Hi, english isn’t my native language so I’m sorry in advance for any spelling mistakes/awkward writing. I’m in need for some help for a college project and I’d appreciate any kind of guidance you can give me. So, the pr…

---

## [Trouble with Array and Multiple Classes](https://discourse.processing.org/t/trouble-with-array-and-multiple-classes/10731)

<div class="topic-metadata">

**Author:** [@hemicyon](https://discourse.processing.org/u/hemicyon)\
**Replies:** 1\
**Last updated:** [May 1, 2019, 9:12pm UTC](https://discourse.processing.org/t/trouble-with-array-and-multiple-classes/10731 "2019-05-01T21:12:35Z")

</div>

Goal: I am trying to create an array of amoebae (Amies) drawn with beginShape() inside their class (Amy). I am also trying to feed only one Amy within the array. Problem 1: I can create an array of Amies with food funct…

---

## [Using Processing Core Library like a console application, no window](https://discourse.processing.org/t/using-processing-core-library-like-a-console-application-no-window/10800)

<div class="topic-metadata">

**Author:** [@TheFoxarmy](https://discourse.processing.org/u/TheFoxarmy)\
**Replies:** 2\
**Last updated:** [May 1, 2019, 9:02pm UTC](https://discourse.processing.org/t/using-processing-core-library-like-a-console-application-no-window/10800 "2019-05-01T21:02:39Z")

</div>

Hello, I’d like to use the processing core library, however, I don’t actually want to use the processing window or draw function at all. I’m using processing because the PImage class and some other utilities are very use…

---

## [Movie Maker video doesn't sync](https://discourse.processing.org/t/movie-maker-video-doesnt-sync/9435)

<div class="topic-metadata">

**Author:** [@lnp](https://discourse.processing.org/u/lnp)\
**Replies:** 17\
**Last updated:** [May 1, 2019, 12:52pm UTC](https://discourse.processing.org/t/movie-maker-video-doesnt-sync/9435 "2019-05-01T12:52:22Z")

</div>

I’ve got an issue with the native Movie Maker where the video rate exports with a framerate greater than specified. My sketch reacts to sound input so it’s clear to see that the exported .mov visuals don’t sync with the …

---

## [Help with bezier for clock hand with teardrop shape](https://discourse.processing.org/t/help-with-bezier-for-clock-hand-with-teardrop-shape/10797)

<div class="topic-metadata">

**Author:** [@ottenm](https://discourse.processing.org/u/ottenm)\
**Replies:** 3\
**Last updated:** [May 1, 2019, 12:04pm UTC](https://discourse.processing.org/t/help-with-bezier-for-clock-hand-with-teardrop-shape/10797 "2019-05-01T12:04:17Z")

</div>

I’m hoping to draw a shape matching the hour hand on the clock below. I’ve made a few runs at the teardrop part with bezier(), but nothing clicking yet. Thanks for any help!

---

## [Intersection between point and plane in 3D or more](https://discourse.processing.org/t/intersection-between-point-and-plane-in-3d-or-more/10780)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 15\
**Last updated:** [May 1, 2019, 9:23am UTC](https://discourse.processing.org/t/intersection-between-point-and-plane-in-3d-or-more/10780 "2019-05-01T09:23:14Z")

</div>

I try to find a way to know if a 3D point is in a 3D plane or not, but I don’t find a clear topic to do that in Java or in Processing. If any body have a topic or code to do that I’m very interesting. Topics about 3D in…

---

## [Minim — getLineIn](https://discourse.processing.org/t/minim-getlinein/10801)

<div class="topic-metadata">

**Author:** [@lnp](https://discourse.processing.org/u/lnp)\
**Replies:** 2\
**Last updated:** [May 1, 2019, 9:22am UTC](https://discourse.processing.org/t/minim-getlinein/10801 "2019-05-01T09:22:41Z")

</div>

Hello Preeps! Loving Minim. What a great library! I have no problem reading an mp3 or getting a simple getLineIn() input from the microphone on my mac. All those tests work and my sketch reacts accordingly. My issue now…

---

## [Convert Code to Android](https://discourse.processing.org/t/convert-code-to-android/10788)

<div class="topic-metadata">

**Author:** [@mcd4u](https://discourse.processing.org/u/mcd4u)\
**Replies:** 1\
**Last updated:** [May 1, 2019, 7:52am UTC](https://discourse.processing.org/t/convert-code-to-android/10788 "2019-05-01T07:52:44Z")

</div>

Hi, Is it possible to convert/compile code written in an IDE (using processing’s jar) to an Android apk? Or do all of my classes need to be in .pde and then convert it? Thanks!

---

## [Sprites animation that use a lot of memory](https://discourse.processing.org/t/sprites-animation-that-use-a-lot-of-memory/10695)

<div class="topic-metadata">

**Author:** [@Summer](https://discourse.processing.org/u/Summer)\
**Replies:** 9\
**Last updated:** [May 1, 2019, 5:35am UTC](https://discourse.processing.org/t/sprites-animation-that-use-a-lot-of-memory/10695 "2019-05-01T05:35:01Z")

</div>

I made a program that animate sprites but it use a huge amount of memory (~ 3000 MB). I increased the memorry alowed in preference and the program run but it still laggy. Can someone help me to resolve this problem. Than…

---

## [Trying to get webcam feed to affect Pvector Array](https://discourse.processing.org/t/trying-to-get-webcam-feed-to-affect-pvector-array/10675)

<div class="topic-metadata">

**Author:** [@a\_primate](https://discourse.processing.org/u/a_primate)\
**Replies:** 2\
**Last updated:** [May 1, 2019, 1:53am UTC](https://discourse.processing.org/t/trying-to-get-webcam-feed-to-affect-pvector-array/10675 "2019-05-01T01:53:07Z")

</div>

Hello there Processing community! I hope you’re all doing well! :smiley: As the title says, I’m attempting to feed the brightness input from my webcam to a vector array that has certain curves and variations applied to …

---

## [Moving Balls & Shape Intersection](https://discourse.processing.org/t/moving-balls-shape-intersection/10792)

<div class="topic-metadata">

**Author:** [@Process321](https://discourse.processing.org/u/Process321)\
**Replies:** 1\
**Last updated:** [April 30, 2019, 6:29pm UTC](https://discourse.processing.org/t/moving-balls-shape-intersection/10792 "2019-04-30T18:29:08Z")

</div>

Hi! I am trying to find a way to bounce balls off a shape, but I am struggling to do so. I have included an expression at the end of the ‘void move()’ component, but with no success. Any help would be greatly appreciate…

---

## [Changing the size of a rectangle](https://discourse.processing.org/t/changing-the-size-of-a-rectangle/10592)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 19\
**Last updated:** [April 30, 2019, 4:01pm UTC](https://discourse.processing.org/t/changing-the-size-of-a-rectangle/10592 "2019-04-30T16:01:33Z")

</div>

I was asked to Write a program which allows the user to change the size of a rectangle with the arrow keys. The ‘R’ key should reset the size of the rectangle to 50 x 50. this is what i have so far. I believe the progra…

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

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