# Latest

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

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

**Page:** 483

---

## [HTTP Request with JSON body](https://discourse.processing.org/t/http-request-with-json-body/11544)

<div class="topic-metadata">

**Author:** [@fedpep](https://discourse.processing.org/u/fedpep)\
**Replies:** 1\
**Last updated:** [May 25, 2019, 10:26am UTC](https://discourse.processing.org/t/http-request-with-json-body/11544 "2019-05-25T10:26:42Z")

</div>

Hello, I’m working with the TVDB API but I’m having trouble getting the access token as I normally do. This is what the documentation says: Authentication Authentication to use the API is similar to the How-to sectio…

---

## [How do I mirror the movement of another another shape?](https://discourse.processing.org/t/how-do-i-mirror-the-movement-of-another-another-shape/11573)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 9\
**Last updated:** [May 25, 2019, 2:16am UTC](https://discourse.processing.org/t/how-do-i-mirror-the-movement-of-another-another-shape/11573 "2019-05-25T02:16:01Z")

</div>

I would like the green rectangle on the right to mirror the movement of the pink rectangle on the left. (And sometimes randomly overlap.) Is there an easy way to draw the right side of the green rectangle so that it is …

---

## [Randomizing levels](https://discourse.processing.org/t/randomizing-levels/11572)

<div class="topic-metadata">

**Author:** [@clueless\_coder](https://discourse.processing.org/u/clueless_coder)\
**Replies:** 1\
**Last updated:** [May 25, 2019, 1:56am UTC](https://discourse.processing.org/t/randomizing-levels/11572 "2019-05-25T01:56:51Z")

</div>

I’m trying to code a game in which clicking ‘play’ would result in the player getting a random level out of a few set levels. However, the problem is that the levels have to be non-repeating. Does anyone know how to achi…

---

## [Processing won't run. Win10](https://discourse.processing.org/t/processing-wont-run-win10/11523)

<div class="topic-metadata">

**Author:** [@TomC](https://discourse.processing.org/u/TomC)\
**Replies:** 3\
**Last updated:** [May 24, 2019, 11:21pm UTC](https://discourse.processing.org/t/processing-wont-run-win10/11523 "2019-05-24T23:21:08Z")

</div>

Hello: I’m trying to run Processing on a Win10 machine. I’ve tried 64 and 32 bit variants, running as Administrator. Splash screen comes up for a few seconds, then nothing. I believe my Java is up to date. There may…

---

## [G4P text is blurred without background()](https://discourse.processing.org/t/g4p-text-is-blurred-without-background/11489)

<div class="topic-metadata">

**Author:** [@gyula](https://discourse.processing.org/u/gyula)\
**Replies:** 4\
**Last updated:** [May 24, 2019, 7:47pm UTC](https://discourse.processing.org/t/g4p-text-is-blurred-without-background/11489 "2019-05-24T19:47:56Z")

</div>

Using Processing 3.5.3 and G4P V4.2.1 on Windows 7. Why does G4P control text get blurred when not clearing the display window at the beginning of each frame? vs. Here’s a simple example: import g4p\_controls.\*; b…

---

## [Creative Coding for Artists workshop, Oxford (UK) - June 8th-9th](https://discourse.processing.org/t/creative-coding-for-artists-workshop-oxford-uk-june-8th-9th/11559)

<div class="topic-metadata">

**Author:** [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Replies:** 0\
**Last updated:** [May 24, 2019, 5:11pm UTC](https://discourse.processing.org/t/creative-coding-for-artists-workshop-oxford-uk-june-8th-9th/11559 "2019-05-24T17:11:58Z")

</div>

I’m going to be leading another Creative Coding for Artists workshop for OVADA in Oxford - this time a weekend intensive over June 8th-9th. Lots of Processing in PraxisLIVE, as well as a look at how artists are using, e…

---

## [COM Port Error: Port Not Found](https://discourse.processing.org/t/com-port-error-port-not-found/11504)

<div class="topic-metadata">

**Author:** [@davidbambalan](https://discourse.processing.org/u/davidbambalan)\
**Replies:** 21\
**Last updated:** [May 24, 2019, 4:38pm UTC](https://discourse.processing.org/t/com-port-error-port-not-found/11504 "2019-05-24T16:38:32Z")

</div>

I used a code here to detect on which port the Arduino is connected. However, I cannot run this code: mySerial = new Serial(this, detected\_port, 9600); as it says Error opening serial port COM#: Port not found. How do I …

---

## [Can't figure out how to fix this NullPointerException](https://discourse.processing.org/t/cant-figure-out-how-to-fix-this-nullpointerexception/11441)

<div class="topic-metadata">

**Author:** [@kiraraew](https://discourse.processing.org/u/kiraraew)\
**Replies:** 8\
**Last updated:** [May 24, 2019, 3:16pm UTC](https://discourse.processing.org/t/cant-figure-out-how-to-fix-this-nullpointerexception/11441 "2019-05-24T15:16:46Z")

</div>

I am new to Processing, only have been working with it for a few months now, and I’m trying to create a program that takes data from Arduino and uses that to send out a tweet using Twitter4j. I’ve narrowed down the code…

---

## [Creating a scrollable view](https://discourse.processing.org/t/creating-a-scrollable-view/11414)

<div class="topic-metadata">

**Author:** [@eang79](https://discourse.processing.org/u/eang79)\
**Replies:** 6\
**Last updated:** [May 24, 2019, 2:17pm UTC](https://discourse.processing.org/t/creating-a-scrollable-view/11414 "2019-05-24T14:17:23Z")

</div>

Hiya, I will like to find out how to create a scrollable view on a group. I am operating in Java mode, using the Controlp5 library. I wasn’t able to find examples online that helps. Could anyone put up some code stubs, …

---

## [Get data from ultrasonic sensor hc-sr04 on Raspberry Pi](https://discourse.processing.org/t/get-data-from-ultrasonic-sensor-hc-sr04-on-raspberry-pi/11478)

<div class="topic-metadata">

**Author:** [@petemanzel](https://discourse.processing.org/u/petemanzel)\
**Replies:** 1\
**Last updated:** [May 24, 2019, 2:12pm UTC](https://discourse.processing.org/t/get-data-from-ultrasonic-sensor-hc-sr04-on-raspberry-pi/11478 "2019-05-24T14:12:45Z")

</div>

Hello, i intend to visualize realtime sensor data from an ultrasonic sensor (hc-sr04) on an Raspberry Pi with p5.js. How can i read in the data? Thanks!

---

## [Collatz Counts Square](https://discourse.processing.org/t/collatz-counts-square/11467)

<div class="topic-metadata">

**Author:** [@InferNova](https://discourse.processing.org/u/InferNova)\
**Replies:** 3\
**Last updated:** [May 24, 2019, 1:47pm UTC](https://discourse.processing.org/t/collatz-counts-square/11467 "2019-05-24T13:47:51Z")

</div>

Taking the steps from random numbers between a range of ( 4 , random ( 5 , 20 ) ) and pulling them into 4 and plucking those into a line it creates a cool square I tried with larger values and it always comes up as drawi…

---

## [Writing a Search Function](https://discourse.processing.org/t/writing-a-search-function/11403)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 7\
**Last updated:** [May 24, 2019, 12:55pm UTC](https://discourse.processing.org/t/writing-a-search-function/11403 "2019-05-24T12:55:30Z")

</div>

Hello, I have a program that creates custom objects from text documents that contain certain pieces of data. Each object has its own Boolean tags that correspond to different states the object could be under based upon …

---

## [Where to Start? Generating Meshes from an Image](https://discourse.processing.org/t/where-to-start-generating-meshes-from-an-image/11501)

<div class="topic-metadata">

**Author:** [@rand\_colors](https://discourse.processing.org/u/rand_colors)\
**Replies:** 4\
**Last updated:** [May 23, 2019, 7:18pm UTC](https://discourse.processing.org/t/where-to-start-generating-meshes-from-an-image/11501 "2019-05-23T19:18:59Z")

</div>

Hi everyone, I took a look at the OF tutorials, and I’m trying to understand how to do this https://openframeworks.cc/ofBook/chapters/generativemesh.html in Processing. It’s not essential for this first step to make …

---

## [Square is not defined (?)](https://discourse.processing.org/t/square-is-not-defined/11536)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 1\
**Last updated:** [May 24, 2019, 9:09am UTC](https://discourse.processing.org/t/square-is-not-defined/11536 "2019-05-24T09:09:56Z")

</div>

Hi everyone, Sorry for this very basic question, but I’ve got the following error when using the square() function of p5.js, even if using the rect() function instead works very well : Uncaught ReferenceError: square i…

---

## [Processing Java and Webhooks](https://discourse.processing.org/t/processing-java-and-webhooks/11528)

<div class="topic-metadata">

**Author:** [@Birb](https://discourse.processing.org/u/Birb)\
**Replies:** 0\
**Last updated:** [May 24, 2019, 1:35am UTC](https://discourse.processing.org/t/processing-java-and-webhooks/11528 "2019-05-24T01:35:28Z")

</div>

How can we implement webhooks from a service like Zapier inside a processing Java app? I would like to make an app that listens for webhook posts to get realtime information from websites like twitter.

---

## [Trouble with mousePressed](https://discourse.processing.org/t/trouble-with-mousepressed/11529)

<div class="topic-metadata">

**Author:** [@clueless\_coder](https://discourse.processing.org/u/clueless_coder)\
**Replies:** 6\
**Last updated:** [May 24, 2019, 4:14am UTC](https://discourse.processing.org/t/trouble-with-mousepressed/11529 "2019-05-24T04:14:15Z")

</div>

I’m trying to make one part of the code transition to another with no luck. I’m trying to use mousePressed but it seems like the scene only appears for a moment before disappearing again. Is thi because of void draw()? …

---

## [Arrays and colors](https://discourse.processing.org/t/arrays-and-colors/11526)

<div class="topic-metadata">

**Author:** [@Darius](https://discourse.processing.org/u/Darius)\
**Replies:** 3\
**Last updated:** [May 23, 2019, 10:58pm UTC](https://discourse.processing.org/t/arrays-and-colors/11526 "2019-05-23T22:58:55Z")

</div>

Hi All, I am very new in processing and I am trying to use an array to change the color of my background color by clicking with the mouse to use numbers from 0 to 4. This seems not really working on my sketch, any sugges…

---

## [Character and button](https://discourse.processing.org/t/character-and-button/11436)

<div class="topic-metadata">

**Author:** [@macabol](https://discourse.processing.org/u/macabol)\
**Replies:** 3\
**Last updated:** [May 23, 2019, 3:33pm UTC](https://discourse.processing.org/t/character-and-button/11436 "2019-05-23T15:33:27Z")

</div>

hello I would add a button that can make me choose different character when I play. Thank you for your answer here is my script: PImage lapin;//image boule PImage fond;//fond PImage fleche;//fleche PImage fleche2;//flec…

---

## [Errors on sending serial data to Android](https://discourse.processing.org/t/errors-on-sending-serial-data-to-android/11430)

<div class="topic-metadata">

**Author:** [@mash](https://discourse.processing.org/u/mash)\
**Replies:** 1\
**Last updated:** [May 23, 2019, 3:27pm UTC](https://discourse.processing.org/t/errors-on-sending-serial-data-to-android/11430 "2019-05-23T15:27:04Z")

</div>

I am using a STM 32 to send serial data over to an android. I have edited the manifest file as well as the driver file before running it. It builds, but then shows the following error: (P.S: running it on Android 9, G…

---

## [How to fix my scoring code and how to input a game over feature/screen when the ball hit the ground?](https://discourse.processing.org/t/how-to-fix-my-scoring-code-and-how-to-input-a-game-over-feature-screen-when-the-ball-hit-the-ground/11402)

<div class="topic-metadata">

**Author:** [@grodothefrog](https://discourse.processing.org/u/grodothefrog)\
**Replies:** 34\
**Last updated:** [May 23, 2019, 10:09am UTC](https://discourse.processing.org/t/how-to-fix-my-scoring-code-and-how-to-input-a-game-over-feature-screen-when-the-ball-hit-the-ground/11402 "2019-05-23T10:09:46Z")

</div>

Hello, I’ve wondering of how I want my ball to score into the brown box and how to make a ball disappear upon collision with the brown box to score a goal. And how to place a game over feature/screen when the ball it the…

---

## [P5js + React + Web Workers Demo App](https://discourse.processing.org/t/p5js-react-web-workers-demo-app/11513)

<div class="topic-metadata">

**Author:** [@atoro](https://discourse.processing.org/u/atoro)\
**Replies:** 0\
**Last updated:** [May 23, 2019, 9:48am UTC](https://discourse.processing.org/t/p5js-react-web-workers-demo-app/11513 "2019-05-23T09:48:30Z")

</div>

Diagnosing Hypothermia Symptoms Main goals of the project This project demonstrates how to combine React (including the latest features such as hooks and context), p5.js and Web Workers: Build a single page applicati…

---

## [Save Arduino input in array, and THEN plot it](https://discourse.processing.org/t/save-arduino-input-in-array-and-then-plot-it/11499)

<div class="topic-metadata">

**Author:** [@Runzolf](https://discourse.processing.org/u/Runzolf)\
**Replies:** 3\
**Last updated:** [May 23, 2019, 2:31am UTC](https://discourse.processing.org/t/save-arduino-input-in-array-and-then-plot-it/11499 "2019-05-23T02:31:21Z")

</div>

So I’m getting quite mad not being able to accomplish something so easy. I’ve an Arduino sending various values through the serial port. The values appearing are for example 152,0,140,92,53…etc. I’d like to just save f…

---

## [Heat Mapping Solutions](https://discourse.processing.org/t/heat-mapping-solutions/11424)

<div class="topic-metadata">

**Author:** [@davidbambalan](https://discourse.processing.org/u/davidbambalan)\
**Replies:** 3\
**Last updated:** [May 23, 2019, 1:47am UTC](https://discourse.processing.org/t/heat-mapping-solutions/11424 "2019-05-23T01:47:44Z")

</div>

Are there any solutions to creating a heat map from collected data (i.e., gps location and temperature sensor), a library maybe? And the solution should be in real-time. Thanks! Here’s the code I found online but I don’…

---

## [Simulate a trigger as switch/case with the keyboard](https://discourse.processing.org/t/simulate-a-trigger-as-switch-case-with-the-keyboard/11420)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 5\
**Last updated:** [May 22, 2019, 11:51pm UTC](https://discourse.processing.org/t/simulate-a-trigger-as-switch-case-with-the-keyboard/11420 "2019-05-22T23:51:11Z")

</div>

Hi , I would like my program switch on the same case automatically, in order to actualise data from void draw. For the moment, I have to tap on the shift key to actualise the case ‘default’. In this way, each time I ta…

---

## [Export processing sketch with an image](https://discourse.processing.org/t/export-processing-sketch-with-an-image/11432)

<div class="topic-metadata">

**Author:** [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Replies:** 7\
**Last updated:** [May 22, 2019, 7:29pm UTC](https://discourse.processing.org/t/export-processing-sketch-with-an-image/11432 "2019-05-22T19:29:11Z")

</div>

I’d exported the sketch but on the folder doesen’t show the data folder (i’am using processing 3.5.3). Where should i put the images of my sketch?

---

## [Recursion Function or something different?](https://discourse.processing.org/t/recursion-function-or-something-different/11473)

<div class="topic-metadata">

**Author:** [@champagnepapi](https://discourse.processing.org/u/champagnepapi)\
**Replies:** 6\
**Last updated:** [May 22, 2019, 6:34pm UTC](https://discourse.processing.org/t/recursion-function-or-something-different/11473 "2019-05-22T18:34:22Z")

</div>

Hey, so I am fairly new to processing, my main area of interested is using processing to achieve effects which are primarily using typography. Recently I stumbled upon the following image —\> and it seems after a good…

---

## [\[SOLVED\] Kinect hands open close](https://discourse.processing.org/t/solved-kinect-hands-open-close/11391)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 3\
**Last updated:** [May 22, 2019, 4:41pm UTC](https://discourse.processing.org/t/solved-kinect-hands-open-close/11391 "2019-05-22T16:41:31Z")

</div>

Hallo, i am working on the following code to detect palm open or close. It ;s working quite nice. What i want to do is: On wave enable handtracking (it achieves it). When wave again (stop tracking) - not achieved. Seems…

---

## [MP3 track won't stop playing at the right time](https://discourse.processing.org/t/mp3-track-wont-stop-playing-at-the-right-time/11390)

<div class="topic-metadata">

**Author:** [@Sprocket](https://discourse.processing.org/u/Sprocket)\
**Replies:** 4\
**Last updated:** [May 20, 2019, 11:59am UTC](https://discourse.processing.org/t/mp3-track-wont-stop-playing-at-the-right-time/11390 "2019-05-20T11:59:58Z")

</div>

So this should have been super simple, and yet something is amiss! So I am using a supersonic range finder to trigger songs at different distances. The first track (player\[0\]) should come on when the sensor value is bet…

---

## [Fade in/out effect](https://discourse.processing.org/t/fade-in-out-effect/11483)

<div class="topic-metadata">

**Author:** [@clueless\_coder](https://discourse.processing.org/u/clueless_coder)\
**Replies:** 4\
**Last updated:** [May 22, 2019, 3:37pm UTC](https://discourse.processing.org/t/fade-in-out-effect/11483 "2019-05-22T15:37:03Z")

</div>

So I have this code and I’m trying to make the text fade in and out. I could make in fade in but I couldn’t make it fade out. Could anyone help me? int t=10; //transparency void setup() { size(200,200); } void draw() …

---

## [How to give suggestions in input box?](https://discourse.processing.org/t/how-to-give-suggestions-in-input-box/11492)

<div class="topic-metadata">

**Author:** [@CodeTime](https://discourse.processing.org/u/CodeTime)\
**Replies:** 3\
**Last updated:** [May 22, 2019, 2:27pm UTC](https://discourse.processing.org/t/how-to-give-suggestions-in-input-box/11492 "2019-05-22T14:27:20Z")

</div>

I have created an input box where a user can type and I do things later on with what they type in. I was wondering if there was any way in p5.js to put grey text in the input box to “suggest” what the user is to type in,…

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

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