# Latest

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

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

**Page:** 191

---

## [Browser not refreshing](https://discourse.processing.org/t/browser-not-refreshing/32448)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 3\
**Last updated:** [September 27, 2021, 7:50pm UTC](https://discourse.processing.org/t/browser-not-refreshing/32448 "2021-09-27T19:50:19Z")

</div>

I am having an issue with a P5 sketch that won’t update in Chrome. If I do my tweaks, re-upload via FTP and refresh my browser, the updates don’t show in Chrome. If I open a new incognito tab I do see the updates as ex…

---

## [Android mode is incompatible for 4.01b](https://discourse.processing.org/t/android-mode-is-incompatible-for-4-01b/32436)

<div class="topic-metadata">

**Author:** [@EndlessNight](https://discourse.processing.org/u/EndlessNight)\
**Replies:** 1\
**Last updated:** [September 27, 2021, 6:30pm UTC](https://discourse.processing.org/t/android-mode-is-incompatible-for-4-01b/32436 "2021-09-27T18:30:50Z")

</div>

Hello guys I’m a new face in processing and I wonder how to use android mode in 4.01b. you see it said it is incompatible with this version, and I tried another version. but when I executed 3.5.1, it was loaded by 4.01…

---

## [SVG exception thrown on loadShape()](https://discourse.processing.org/t/svg-exception-thrown-on-loadshape/32422)

<div class="topic-metadata">

**Author:** [@strfry](https://discourse.processing.org/u/strfry)\
**Replies:** 6\
**Last updated:** [September 27, 2021, 5:52pm UTC](https://discourse.processing.org/t/svg-exception-thrown-on-loadshape/32422 "2021-09-27T17:52:33Z")

</div>

Hi, I’m new to processing, and I’m having an issue with loading a .svg saved in Adobe Illustrator using image trace. I get an error that looks like: RuntimeException: shape command not handled: .49 I believe the iss…

---

## [Problem with a loop](https://discourse.processing.org/t/problem-with-a-loop/3415)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 31\
**Last updated:** [September 11, 2018, 1:01pm UTC](https://discourse.processing.org/t/problem-with-a-loop/3415 "2018-09-11T13:01:32Z")

</div>

Hi i tried to use the code i recieve from my post “a pathfinding solution” to make my creatur find food. here is the case : my creatures walk randomly and when they are hungry they go to the closest food, but my foods …

---

## [How to add a target to a pong simulator game?](https://discourse.processing.org/t/how-to-add-a-target-to-a-pong-simulator-game/32427)

<div class="topic-metadata">

**Author:** [@Lulua](https://discourse.processing.org/u/Lulua)\
**Replies:** 1\
**Last updated:** [September 26, 2021, 8:38pm UTC](https://discourse.processing.org/t/how-to-add-a-target-to-a-pong-simulator-game/32427 "2021-09-26T20:38:05Z")

</div>

I have made a pong simulator game. I added a circle as a target but need to make it so that when the ball hits the target, the player wins and the game restarts. Help!!! PImage dragon; PFont font; int base=40; int x,…

---

## [Intermittent ArrayIndexOutOfBoundsException reading thermopile over serial](https://discourse.processing.org/t/intermittent-arrayindexoutofboundsexception-reading-thermopile-over-serial/32361)

<div class="topic-metadata">

**Author:** [@The\_Wolf\_of\_Walmart](https://discourse.processing.org/u/The_Wolf_of_Walmart)\
**Replies:** 9\
**Last updated:** [September 26, 2021, 5:09pm UTC](https://discourse.processing.org/t/intermittent-arrayindexoutofboundsexception-reading-thermopile-over-serial/32361 "2021-09-26T17:09:10Z")

</div>

Hello all. I’m trying to integrate the heatcam example sketches(Github) related to the Grid Eye Qwiik breakout from Sparkfun, into a bigger project, but am not able to it running reliably on it’s own. When it works, it w…

---

## [New release of PiCrate for RaspberryPI](https://discourse.processing.org/t/new-release-of-picrate-for-raspberrypi/32424)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [September 26, 2021, 9:49am UTC](https://discourse.processing.org/t/new-release-of-picrate-for-raspberrypi/32424 "2021-09-26T09:49:19Z")

</div>

I have just released a new version (2.5.0) of PiCrate for the RaspberryPI, tested on RaspberryPI4 with both the latest RaspbianOS (32 bit) and ManjaroArm (64 bit) operating systems. Ideally you should install JRuby-9.3.0…

---

## [randomSeed() reuse](https://discourse.processing.org/t/randomseed-reuse/32154)

<div class="topic-metadata">

**Author:** [@Hermes](https://discourse.processing.org/u/Hermes)\
**Replies:** 15\
**Last updated:** [September 26, 2021, 8:36am UTC](https://discourse.processing.org/t/randomseed-reuse/32154 "2021-09-26T08:36:03Z")

</div>

hello I’m a noob to Processing, I’ve figured out how to generate a seed for each image output but I can’t figure out how to reuse the same seed to generate the same image… I just need to know the format and where to put …

---

## [How do I use p5.js's accessibility features?](https://discourse.processing.org/t/how-do-i-use-p5-jss-accessibility-features/32412)

<div class="topic-metadata">

**Author:** [@Kevin](https://discourse.processing.org/u/Kevin)\
**Replies:** 0\
**Last updated:** [September 25, 2021, 6:39pm UTC](https://discourse.processing.org/t/how-do-i-use-p5-jss-accessibility-features/32412 "2021-09-25T18:39:31Z")

</div>

Hey all, long time no see. Hope all is well! Inspired by this tweet, I’ve been trying to learn how to use p5.js’s describe() function and other accessibility features. function setup() { createCanvas(400, 400); } fu…

---

## [Can't call simple function - missing semicolon syntax error](https://discourse.processing.org/t/cant-call-simple-function-missing-semicolon-syntax-error/32420)

<div class="topic-metadata">

**Author:** [@Chadmeistr](https://discourse.processing.org/u/Chadmeistr)\
**Replies:** 1\
**Last updated:** [September 26, 2021, 5:23am UTC](https://discourse.processing.org/t/cant-call-simple-function-missing-semicolon-syntax-error/32420 "2021-09-26T05:23:52Z")

</div>

Here is some code I am playing with, but it keeps giving me an error 'Syntax error - missin operator, semicolon or"}" near 2 void setup() { size(200, 200); } void sum(int a, int b, int c) { int total = a + b + c; …

---

## [setJSONArray should start a new line when inserting an array into a JSON object](https://discourse.processing.org/t/setjsonarray-should-start-a-new-line-when-inserting-an-array-into-a-json-object/32417)

<div class="topic-metadata">

**Author:** [@seanbetts](https://discourse.processing.org/u/seanbetts)\
**Replies:** 2\
**Last updated:** [September 25, 2021, 9:17pm UTC](https://discourse.processing.org/t/setjsonarray-should-start-a-new-line-when-inserting-an-array-into-a-json-object/32417 "2021-09-25T21:17:09Z")

</div>

I am trying to output a JSON file from my code which include some JSON objects and also a JSON array but the JSON array is not starting on a new line in the output JSON file, which causes problems when using the file. C…

---

## [saveFrames function not working in Firefox](https://discourse.processing.org/t/saveframes-function-not-working-in-firefox/32414)

<div class="topic-metadata">

**Author:** [@neto0291](https://discourse.processing.org/u/neto0291)\
**Replies:** 0\
**Last updated:** [September 25, 2021, 7:08pm UTC](https://discourse.processing.org/t/saveframes-function-not-working-in-firefox/32414 "2021-09-25T19:08:29Z")

</div>

Hello! I’m using the sameframe function to , save the images of a gif animation I have in my website. This is my function: saveFrames('out', 'png', 2, 25, function saveFrames(callbackData){ console.log(callback…

---

## [Oval with straight edges](https://discourse.processing.org/t/oval-with-straight-edges/32390)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 3\
**Last updated:** [September 25, 2021, 5:58pm UTC](https://discourse.processing.org/t/oval-with-straight-edges/32390 "2021-09-25T17:58:05Z")

</div>

is there a way to create this shape as a single thing instead of having an ellipse and a rect?

---

## [Visual studio code shows error on new p5 serial instance](https://discourse.processing.org/t/visual-studio-code-shows-error-on-new-p5-serial-instance/32406)

<div class="topic-metadata">

**Author:** [@processing\_user](https://discourse.processing.org/u/processing_user)\
**Replies:** 0\
**Last updated:** [September 25, 2021, 10:57am UTC](https://discourse.processing.org/t/visual-studio-code-shows-error-on-new-p5-serial-instance/32406 "2021-09-25T10:57:54Z")

</div>

hi, while using a working p5 serial library and sketch in VS code ide i get error on the line: serial = new p5.SerialPort(); error being: Property 'SerialPort' does not exist on type '(sketch: object, node: string | …

---

## [Alpha of Zero in first pixel makes whole image opaque](https://discourse.processing.org/t/alpha-of-zero-in-first-pixel-makes-whole-image-opaque/32400)

<div class="topic-metadata">

**Author:** [@stevensrmiller](https://discourse.processing.org/u/stevensrmiller)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 9:31pm UTC](https://discourse.processing.org/t/alpha-of-zero-in-first-pixel-makes-whole-image-opaque/32400 "2021-09-24T21:31:26Z")

</div>

When I use an image as a background, then set the alpha values for all pixels in a second image to something low, then draw that image, I can see “through” the second image to the background, just as I would expect. Here…

---

## [Disable ESC from exiting program in fullscreen?](https://discourse.processing.org/t/disable-esc-from-exiting-program-in-fullscreen/32383)

<div class="topic-metadata">

**Author:** [@jonnyetiz](https://discourse.processing.org/u/jonnyetiz)\
**Replies:** 3\
**Last updated:** [September 24, 2021, 4:27pm UTC](https://discourse.processing.org/t/disable-esc-from-exiting-program-in-fullscreen/32383 "2021-09-24T16:27:36Z")

</div>

I’m trying to use fullscreen and also bind escape to a button. Relevant code below (not complete obviously) void setup() { fullScreen(P2D); ... }

---

## [Moving an object ( ellipse ball) between two keypoints (from posenet /ml5)?](https://discourse.processing.org/t/moving-an-object-ellipse-ball-between-two-keypoints-from-posenet-ml5/32118)

<div class="topic-metadata">

**Author:** [@Timo](https://discourse.processing.org/u/Timo)\
**Replies:** 5\
**Last updated:** [September 24, 2021, 11:10am UTC](https://discourse.processing.org/t/moving-an-object-ellipse-ball-between-two-keypoints-from-posenet-ml5/32118 "2021-09-24T11:10:36Z")

</div>

Hi , I am trying exploring the ml5 library implementation of posenet. I am trying to implement a animation where a ball is rolling between the left ear and right ear in a straight line. For this I have done the followin…

---

## [P5.js with plotly.js](https://discourse.processing.org/t/p5-js-with-plotly-js/32393)

<div class="topic-metadata">

**Author:** [@processing\_user](https://discourse.processing.org/u/processing_user)\
**Replies:** 2\
**Last updated:** [September 24, 2021, 7:57am UTC](https://discourse.processing.org/t/p5-js-with-plotly-js/32393 "2021-09-24T07:57:31Z")

</div>

hi, how can i draw plotly.js based chart onto p5.js based canvas? for example, https://editor.p5js.org/ronraisch/sketches/SJbUMtYyM thank you

---

## [P5,js Smoothing Not Working?](https://discourse.processing.org/t/p5-js-smoothing-not-working/14585)

<div class="topic-metadata">

**Author:** [@graphicsguy](https://discourse.processing.org/u/graphicsguy)\
**Replies:** 10\
**Last updated:** [September 23, 2021, 8:04pm UTC](https://discourse.processing.org/t/p5-js-smoothing-not-working/14585 "2021-09-23T20:04:43Z")

</div>

Hi All. Is anyone else having problems with no antialiasing now in the Chrome browser? I swear it was working yesterday. I’ve tried forcing it using smooth(); in setup. Any help? Thanks.

---

## [Getting error while build with processing one simple code in sublime](https://discourse.processing.org/t/getting-error-while-build-with-processing-one-simple-code-in-sublime/32357)

<div class="topic-metadata">

**Author:** [@meanderquest](https://discourse.processing.org/u/meanderquest)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 7:26pm UTC](https://discourse.processing.org/t/getting-error-while-build-with-processing-one-simple-code-in-sublime/32357 "2021-09-22T19:26:38Z")

</div>

\[WinError 2\] The system cannot find the file specified \[cmd: \['processing-java', '--force', '--sketch=C:\\\\Users\\\\supriya\\\\Desktop\\\\test1\\\\build', '--output=C:\\\\Users\\\\supriya\\\\Desktop\\\\test1\\\\build/build-tmp', '--run'\]\] …

---

## [Can you use Processing in Android Studio?](https://discourse.processing.org/t/can-you-use-processing-in-android-studio/32396)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 1:57pm UTC](https://discourse.processing.org/t/can-you-use-processing-in-android-studio/32396 "2021-09-23T13:57:58Z")

</div>

can you use processing in android studio?

---

## [Processing in style with Java 11](https://discourse.processing.org/t/processing-in-style-with-java-11/13776)

<div class="topic-metadata">

**Author:** [@sampottinger](https://discourse.processing.org/u/sampottinger)\
**Replies:** 76\
**Last updated:** [September 23, 2021, 1:16pm UTC](https://discourse.processing.org/t/processing-in-style-with-java-11/13776 "2021-09-23T13:16:05Z")

</div>

Hello there! I have been working with some folks on a solution to https://github.com/processing/processing/issues/5750 that includes a bunch of fun things (support for generics, lambdas, local type inference, move to mo…

---

## [Processing Community Day Copenhagen October 2nd - open call](https://discourse.processing.org/t/processing-community-day-copenhagen-october-2nd-open-call/31642)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 12:37pm UTC](https://discourse.processing.org/t/processing-community-day-copenhagen-october-2nd-open-call/31642 "2021-09-23T12:37:07Z")

</div>

Processing Community Day Copenhagen is happening October 2nd at Det Kongelige Akademi from 10:00-15:00 and we have an Open Call for artists/designers/creative practitioners/computer scientists/amateurs or anyone in gener…

---

## [How to make my Android phone vibrate?](https://discourse.processing.org/t/how-to-make-my-android-phone-vibrate/32388)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 12:35pm UTC](https://discourse.processing.org/t/how-to-make-my-android-phone-vibrate/32388 "2021-09-23T12:35:23Z")

</div>

I’m running APDE v0.5.1 on my Android phone and trying to use vibration commands. I’ve found many variations on net. All of them end up with deprecated or unresolved symbol. Anywhere I can find more recent example?

---

## [What does it mean to say noise() returns a value between 0.0 and 1.0?](https://discourse.processing.org/t/what-does-it-mean-to-say-noise-returns-a-value-between-0-0-and-1-0/32387)

<div class="topic-metadata">

**Author:** [@norm\_krumpe](https://discourse.processing.org/u/norm_krumpe)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 12:09pm UTC](https://discourse.processing.org/t/what-does-it-mean-to-say-noise-returns-a-value-between-0-0-and-1-0/32387 "2021-09-23T12:09:24Z")

</div>

The documentation for noise() simply says that the function returns a value between 0.0 and 1.0. By contrast, the documentation for random(n) says that the function returns a value between 0.0 (inclusive) and n (exclusi…

---

## [PShape Error Fatal Error :1:1:](https://discourse.processing.org/t/pshape-error-fatal-error-1/32285)

<div class="topic-metadata">

**Author:** [@TomLeVeritable](https://discourse.processing.org/u/TomLeVeritable)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 8:18am UTC](https://discourse.processing.org/t/pshape-error-fatal-error-1/32285 "2021-09-23T08:18:45Z")

</div>

Hi I’m trying to use Pshape with this code PShape planet; void setup(){ size(600,600); planet = loadShape("sphere.svg"); } void draw(){ background(0); shape(planet, 250,250,150,100); } and I’ve got this error …

---

## [How do i make gradient lines?](https://discourse.processing.org/t/how-do-i-make-gradient-lines/32377)

<div class="topic-metadata">

**Author:** [@BAE](https://discourse.processing.org/u/BAE)\
**Replies:** 5\
**Last updated:** [September 23, 2021, 8:09am UTC](https://discourse.processing.org/t/how-do-i-make-gradient-lines/32377 "2021-09-23T08:09:30Z")

</div>

Sorry guys. I can’t English well So, I want to know How to make gradient line like this picture? I made shape size(600,600); background(255); fill(255); for(int a=1; a\<6; ++a) for(int b=1; b\<6; ++b) for(int c=1; c\<…

---

## [Session Shed - feed back sought and time for payback](https://discourse.processing.org/t/session-shed-feed-back-sought-and-time-for-payback/31657)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 4\
**Last updated:** [September 23, 2021, 6:36am UTC](https://discourse.processing.org/t/session-shed-feed-back-sought-and-time-for-payback/31657 "2021-09-23T06:36:37Z")

</div>

OK … I have been using Processing for a few years, initially the regular Java mode and then Android Mode. I have learned so much and it’s time to pay back (with cash!). I have built an Android App that I am planning to g…

---

## [Remove Audio Library](https://discourse.processing.org/t/remove-audio-library/32381)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 4:06am UTC](https://discourse.processing.org/t/remove-audio-library/32381 "2021-09-23T04:06:43Z")

</div>

Hi, I am getting an audio error when using P5 in chrome. p5 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. I understand why I’m getting the error. I am not…

---

## [Get position of PShape](https://discourse.processing.org/t/get-position-of-pshape/32362)

<div class="topic-metadata">

**Author:** [@shishironeal](https://discourse.processing.org/u/shishironeal)\
**Replies:** 3\
**Last updated:** [September 23, 2021, 1:13am UTC](https://discourse.processing.org/t/get-position-of-pshape/32362 "2021-09-23T01:13:00Z")

</div>

I’m loading an SVG using loadShape and I want to get the position of a child PShape so I can draw a bounding box around it. I tried looking through the PShape class and also tried getVertexX (which results in a NPE since…

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

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