# Latest

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

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

**Page:** 526

---

## [Detect when a button is being pressed down](https://discourse.processing.org/t/detect-when-a-button-is-being-pressed-down/8289)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 5\
**Last updated:** [February 11, 2019, 4:08pm UTC](https://discourse.processing.org/t/detect-when-a-button-is-being-pressed-down/8289 "2019-02-11T16:08:29Z")

</div>

Hey, a simple question: if I have an html button, how can I detect when the button is being pressed. I am not interested in doing something when the button is clicked, but instead in doing something for the entire time t…

---

## [Newbie - connecting txt file to this code](https://discourse.processing.org/t/newbie-connecting-txt-file-to-this-code/8284)

<div class="topic-metadata">

**Author:** [@rezaniik](https://discourse.processing.org/u/rezaniik)\
**Replies:** 3\
**Last updated:** [February 11, 2019, 3:34pm UTC](https://discourse.processing.org/t/newbie-connecting-txt-file-to-this-code/8284 "2019-02-11T15:34:01Z")

</div>

hi all, i am extremely new to processing, as of a few hours. perhaps i’m jumping too quickly and trying to do something more complex without know the basics but I have been messing around with the code below. And what…

---

## [How can I avoid this error on mobile browsers?](https://discourse.processing.org/t/how-can-i-avoid-this-error-on-mobile-browsers/8255)

<div class="topic-metadata">

**Author:** [@chrisjj](https://discourse.processing.org/u/chrisjj)\
**Replies:** 1\
**Last updated:** [February 10, 2019, 11:09pm UTC](https://discourse.processing.org/t/how-can-i-avoid-this-error-on-mobile-browsers/8255 "2019-02-10T23:09:25Z")

</div>

When I try to run this openprocessing sketch on any mobile browser, when the touch is ended, I get an error Unable to dispatch event. Could anyone verify this? And suggest how I can avoid it?

---

## [How to create ripple effects over an image?](https://discourse.processing.org/t/how-to-create-ripple-effects-over-an-image/8227)

<div class="topic-metadata">

**Author:** [@artisan](https://discourse.processing.org/u/artisan)\
**Replies:** 3\
**Last updated:** [February 10, 2019, 10:59pm UTC](https://discourse.processing.org/t/how-to-create-ripple-effects-over-an-image/8227 "2019-02-10T22:59:20Z")

</div>

Ok, I am fairly new to processing so forgive me if this question is stupid or if this is not a suitable place to ask. The following code is taken from Dan Shiffman, The only modification made to this Is that I draw the …

---

## [Toothpaste with Shapes3D](https://discourse.processing.org/t/toothpaste-with-shapes3d/8273)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 0\
**Last updated:** [February 10, 2019, 6:24pm UTC](https://discourse.processing.org/t/toothpaste-with-shapes3d/8273 "2019-02-10T18:24:03Z")

</div>

I have been working on V3 Shapes3D. This is a complete replacement for earlier versions and is being rebuilt from the ground up. As part of the testing I have been creating new examples because it helps show weaknesses i…

---

## [How to make this wave movement?](https://discourse.processing.org/t/how-to-make-this-wave-movement/7911)

<div class="topic-metadata">

**Author:** [@Murky](https://discourse.processing.org/u/Murky)\
**Replies:** 7\
**Last updated:** [February 9, 2019, 7:39pm UTC](https://discourse.processing.org/t/how-to-make-this-wave-movement/7911 "2019-02-09T19:39:28Z")

</div>

Hello! I have found this Gif very interesting (credits to @beesandbombs). I am able to make the still version of the Gif in Processing, but I have no idea how to make it move like that? I don’t really know how can I …

---

## [How to setup sketch path in atom.io?](https://discourse.processing.org/t/how-to-setup-sketch-path-in-atom-io/8191)

<div class="topic-metadata">

**Author:** [@TomblyBones](https://discourse.processing.org/u/TomblyBones)\
**Replies:** 2\
**Last updated:** [February 10, 2019, 2:47pm UTC](https://discourse.processing.org/t/how-to-setup-sketch-path-in-atom-io/8191 "2019-02-10T14:47:08Z")

</div>

Okay so I would like to start using processing in atom.io but whenever I try to run the code it tells me I need to specify a sketch folder with this “–sketch=/full/path/to/your/sketch/dir” however I am unsure of what thi…

---

## [FX2D mouseWheel don't work](https://discourse.processing.org/t/fx2d-mousewheel-dont-work/8263)

<div class="topic-metadata">

**Author:** [@Dennis](https://discourse.processing.org/u/Dennis)\
**Replies:** 2\
**Last updated:** [February 10, 2019, 1:19pm UTC](https://discourse.processing.org/t/fx2d-mousewheel-dont-work/8263 "2019-02-10T13:19:14Z")

</div>

Hi, today I find this strange behavior: when in the comand size() I set the render mode FX2D the function mouseWheel don’t recognize the count of wheel. This Example Work fine void setup() { size(100, 100); // basic …

---

## [Help with random map generator](https://discourse.processing.org/t/help-with-random-map-generator/8259)

<div class="topic-metadata">

**Author:** [@velosarahptor](https://discourse.processing.org/u/velosarahptor)\
**Replies:** 2\
**Last updated:** [February 10, 2019, 9:32am UTC](https://discourse.processing.org/t/help-with-random-map-generator/8259 "2019-02-10T09:32:03Z")

</div>

This is my first time using processing, and I’m creating a project for a class. I want to make a random map generator using 100x100 pixel image tiles. The idea is that the tiles are placed in random spots when certain ke…

---

## [Which JDK Version to build libraries with Eclipse](https://discourse.processing.org/t/which-jdk-version-to-build-libraries-with-eclipse/8193)

<div class="topic-metadata">

**Author:** [@f42ter](https://discourse.processing.org/u/f42ter)\
**Replies:** 2\
**Last updated:** [February 10, 2019, 12:06am UTC](https://discourse.processing.org/t/which-jdk-version-to-build-libraries-with-eclipse/8193 "2019-02-10T00:06:16Z")

</div>

Hi, which JDK version do I need to build my own libs using Eclipse on Windows 10. Thanks f41ardu

---

## [Why does obXX\[0\] below in openprocessing not cause an error?](https://discourse.processing.org/t/why-does-obxx-0-below-in-openprocessing-not-cause-an-error/8197)

<div class="topic-metadata">

**Author:** [@chrisjj](https://discourse.processing.org/u/chrisjj)\
**Replies:** 1\
**Last updated:** [February 9, 2019, 10:53pm UTC](https://discourse.processing.org/t/why-does-obxx-0-below-in-openprocessing-not-cause-an-error/8197 "2019-02-09T22:53:48Z")

</div>

Run this void setup(){ all = new obXX\[0\]; } here in Chrome. Expected: Error. Observed: No error. Why? PS all = new obXX; gives a ReferenceError as expected.

---

## [Color in constructor](https://discourse.processing.org/t/color-in-constructor/8254)

<div class="topic-metadata">

**Author:** [@ZAF](https://discourse.processing.org/u/ZAF)\
**Replies:** 6\
**Last updated:** [February 9, 2019, 8:39pm UTC](https://discourse.processing.org/t/color-in-constructor/8254 "2019-02-09T20:39:30Z")

</div>

Hello there. New to programming here, starting off with processing. How do i assign color to a constructor? I tried with a local variable and did not work out well when initializing it in set up with a color code (whet…

---

## [Why do my X/O's not show in my tictactoe game](https://discourse.processing.org/t/why-do-my-x-os-not-show-in-my-tictactoe-game/8244)

<div class="topic-metadata">

**Author:** [@MQXO](https://discourse.processing.org/u/MQXO)\
**Replies:** 5\
**Last updated:** [February 9, 2019, 7:30pm UTC](https://discourse.processing.org/t/why-do-my-x-os-not-show-in-my-tictactoe-game/8244 "2019-02-09T19:30:01Z")

</div>

hi, I was working on updating my code for my tictactoe, I’m only a beginner and thought this would be a good place to start, the game used to work, but when I added the minim library and set up a song to play in the back…

---

## [Add an ArrayList to another ArrayList](https://discourse.processing.org/t/add-an-arraylist-to-another-arraylist/8187)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 24\
**Last updated:** [February 9, 2019, 6:33pm UTC](https://discourse.processing.org/t/add-an-arraylist-to-another-arraylist/8187 "2019-02-09T18:33:39Z")

</div>

Hi, i have 2 almost identical classes of objects (the color change) they have the same action : a random position without overlapping. Its work, but now i wonder how do i manage to place every objects with a random posi…

---

## [Changing CENTER point of a vertex Shape for rotation](https://discourse.processing.org/t/changing-center-point-of-a-vertex-shape-for-rotation/8239)

<div class="topic-metadata">

**Author:** [@hellonearthis](https://discourse.processing.org/u/hellonearthis)\
**Replies:** 2\
**Last updated:** [February 9, 2019, 10:12am UTC](https://discourse.processing.org/t/changing-center-point-of-a-vertex-shape-for-rotation/8239 "2019-02-09T10:12:57Z")

</div>

In this sketch, I’m trying to changing CENTER point of a vertex Shape so I can easily do rotation on it. In processing there is shapeMode but P5 doesn’t currently have that. (well post a feature request soonish). I had…

---

## [Kinect v2 library](https://discourse.processing.org/t/kinect-v2-library/8224)

<div class="topic-metadata">

**Author:** [@Patrick](https://discourse.processing.org/u/Patrick)\
**Replies:** 1\
**Last updated:** [February 9, 2019, 4:05am UTC](https://discourse.processing.org/t/kinect-v2-library/8224 "2019-02-09T04:05:55Z")

</div>

Hi i have being trying to do the tutorial Getting Started with Kinect and Processing with the Kinect v2 but when i try and find library kinect v2 as in the video it does not come up can any 1 shed light on y

---

## [Processing (3.5) with kinectV2 on depth value](https://discourse.processing.org/t/processing-3-5-with-kinectv2-on-depth-value/8230)

<div class="topic-metadata">

**Author:** [@zznwsuaf](https://discourse.processing.org/u/zznwsuaf)\
**Replies:** 1\
**Last updated:** [February 9, 2019, 3:46am UTC](https://discourse.processing.org/t/processing-3-5-with-kinectv2-on-depth-value/8230 "2019-02-09T03:46:21Z")

</div>

Hello, I am working on using Processing 3.0 to get depth value of KinectV2 sensor. The data can show in the Console, but I just do not know how to save the depth data into a csv or txt file (preferred csv). Can someone …

---

## [Processing Community Day @ Seattle](https://discourse.processing.org/t/processing-community-day-seattle/7303)

<div class="topic-metadata">

**Author:** [@kai.curtis](https://discourse.processing.org/u/kai.curtis)\
**Replies:** 4\
**Last updated:** [February 8, 2019, 11:55pm UTC](https://discourse.processing.org/t/processing-community-day-seattle/7303 "2019-02-08T23:55:47Z")

</div>

Hey there! My name is Kai Curtis, and I’m trying to organize a Processing Community Day sometime in the coming month in Seattle! I’d love to get anyone who’s around and interested involved in planning things. I’m a dev…

---

## [Processing wont launch](https://discourse.processing.org/t/processing-wont-launch/8226)

<div class="topic-metadata">

**Author:** [@jamcdonald](https://discourse.processing.org/u/jamcdonald)\
**Replies:** 0\
**Last updated:** [February 8, 2019, 8:39pm UTC](https://discourse.processing.org/t/processing-wont-launch/8226 "2019-02-08T20:39:44Z")

</div>

When I click on processing.exe the loading screen starts, and then disappears without launching the IDE. It generates the following error file # # A fatal error has been detected by the Java Runtime Environment: # # E…

---

## [Broadcast from macosx to windows](https://discourse.processing.org/t/broadcast-from-macosx-to-windows/8198)

<div class="topic-metadata">

**Author:** [@litiec](https://discourse.processing.org/u/litiec)\
**Replies:** 5\
**Last updated:** [February 8, 2019, 8:03pm UTC](https://discourse.processing.org/t/broadcast-from-macosx-to-windows/8198 "2019-02-08T20:03:17Z")

</div>

Hello Everyone I am developing an application where I am using the oscP5 library. I want to set a server from my computer (macosx) and I want other computers to connect to my server. Since the ip address is constantly c…

---

## [Rotate lines in the middle of the square](https://discourse.processing.org/t/rotate-lines-in-the-middle-of-the-square/8215)

<div class="topic-metadata">

**Author:** [@ClashAdam](https://discourse.processing.org/u/ClashAdam)\
**Replies:** 4\
**Last updated:** [February 8, 2019, 4:43pm UTC](https://discourse.processing.org/t/rotate-lines-in-the-middle-of-the-square/8215 "2019-02-08T16:43:28Z")

</div>

Can some1 help me please? I want to make these lines in the middle of the square rotating but i actually can’t. I tried…again…some processing coding, and…unfortunately…it showed me rotate error. thx for help float angle…

---

## [PImage.resize() does not resize to specified width](https://discourse.processing.org/t/pimage-resize-does-not-resize-to-specified-width/8217)

<div class="topic-metadata">

**Author:** [@Lucca](https://discourse.processing.org/u/Lucca)\
**Replies:** 2\
**Last updated:** [February 8, 2019, 3:45pm UTC](https://discourse.processing.org/t/pimage-resize-does-not-resize-to-specified-width/8217 "2019-02-08T15:45:38Z")

</div>

Hey fellow Processors, I am trying to crop a PImage and then resize it to its original width. Essentially, I am trying to get rid of the black border on the left side of the PImage: Unfortunately, if I use PImage.ge…

---

## [Minim On RPI FilePlayer only can load 6 wav files](https://discourse.processing.org/t/minim-on-rpi-fileplayer-only-can-load-6-wav-files/8189)

<div class="topic-metadata">

**Author:** [@makerinchief](https://discourse.processing.org/u/makerinchief)\
**Replies:** 6\
**Last updated:** [February 8, 2019, 3:40pm UTC](https://discourse.processing.org/t/minim-on-rpi-fileplayer-only-can-load-6-wav-files/8189 "2019-02-08T15:40:21Z")

</div>

I’m writing code for an arcade game which involves taking in sensor input and playing sound during certain stages of the game. I’m using the Minim library to handle all of the sound. I’ve run into an issue when trying t…

---

## [I cant open P5.Js](https://discourse.processing.org/t/i-cant-open-p5-js/8194)

<div class="topic-metadata">

**Author:** [@Voltflo](https://discourse.processing.org/u/Voltflo)\
**Replies:** 5\
**Last updated:** [February 8, 2019, 2:48pm UTC](https://discourse.processing.org/t/i-cant-open-p5-js/8194 "2019-02-08T14:48:19Z")

</div>

So I want to dowload P5.js but everytime I try to open it, it just gives me an error. (I have Windows 10) Blockquote Windows Script Host

---

## [WIP 3d audio visualizer](https://discourse.processing.org/t/wip-3d-audio-visualizer/7902)

<div class="topic-metadata">

**Author:** [@Geeky](https://discourse.processing.org/u/Geeky)\
**Replies:** 2\
**Last updated:** [February 8, 2019, 12:07pm UTC](https://discourse.processing.org/t/wip-3d-audio-visualizer/7902 "2019-02-08T12:07:14Z")

</div>

Kindly review my work and give feedback for improvements.

---

## [P5 Questions! How to change direction of object](https://discourse.processing.org/t/p5-questions-how-to-change-direction-of-object/8209)

<div class="topic-metadata">

**Author:** [@ixd](https://discourse.processing.org/u/ixd)\
**Replies:** 1\
**Last updated:** [February 8, 2019, 10:20am UTC](https://discourse.processing.org/t/p5-questions-how-to-change-direction-of-object/8209 "2019-02-08T10:20:51Z")

</div>

Hi, I’m new to javascript and am having a hard time figuring out how to move the balls up and down instead of left to right. Thanks function setup() { createCanvas(600, 200); } var ball = 0; var ballSpeed = 10; var…

---

## [Way to organize many tabs?](https://discourse.processing.org/t/way-to-organize-many-tabs/8202)

<div class="topic-metadata">

**Author:** [@Mira](https://discourse.processing.org/u/Mira)\
**Replies:** 4\
**Last updated:** [February 8, 2019, 5:11am UTC](https://discourse.processing.org/t/way-to-organize-many-tabs/8202 "2019-02-08T05:11:15Z")

</div>

In a coding project that I’m working on, I have a need for having many tabs to stay organized. However, I already have 17 different tabs with a need for more. If I have too many, I’m sure that it will become a hassle to …

---

## [How do you use random without the numbers in between](https://discourse.processing.org/t/how-do-you-use-random-without-the-numbers-in-between/8144)

<div class="topic-metadata">

**Author:** [@Birnfeld](https://discourse.processing.org/u/Birnfeld)\
**Replies:** 3\
**Last updated:** [February 8, 2019, 5:06am UTC](https://discourse.processing.org/t/how-do-you-use-random-without-the-numbers-in-between/8144 "2019-02-08T05:06:06Z")

</div>

im doing a simple code and i want the variable to be -5 or +5 but i dont understand how you can do that without the numbers in between, for exemple sometimes i get -3,4,2,-1,2 ect…

---

## [How does Serial.readString() manage the serial buffer?](https://discourse.processing.org/t/how-does-serial-readstring-manage-the-serial-buffer/8206)

<div class="topic-metadata">

**Author:** [@Wangmaster](https://discourse.processing.org/u/Wangmaster)\
**Replies:** 4\
**Last updated:** [February 8, 2019, 4:11am UTC](https://discourse.processing.org/t/how-does-serial-readstring-manage-the-serial-buffer/8206 "2019-02-08T04:11:32Z")

</div>

I want to use Processing to read serial data from my Arduino, but first i want to understand how it interacts with the serial buffer. According to the documentation, Serial.readString() returns all information in the se…

---

## [PVector: setting force of vector to something](https://discourse.processing.org/t/pvector-setting-force-of-vector-to-something/7481)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 9\
**Last updated:** [February 7, 2019, 9:53pm UTC](https://discourse.processing.org/t/pvector-setting-force-of-vector-to-something/7481 "2019-02-07T21:53:33Z")

</div>

Recently 3Blue1Brown posted vid: calculating PI with physics, and i wanted to recreate it in processing. I know it would be inacurate representation of it, but i want to challenge myself. So, how can i se…

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

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