# Latest

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

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

**Page:** 446

---

## [How do I draw something and then save it as an Image?](https://discourse.processing.org/t/how-do-i-draw-something-and-then-save-it-as-an-image/14033)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 14\
**Last updated:** [September 19, 2019, 10:08pm UTC](https://discourse.processing.org/t/how-do-i-draw-something-and-then-save-it-as-an-image/14033 "2019-09-19T22:08:21Z")

</div>

When I draw something on a custom offscreen PGraphics and then save the file it is a blank image with alpha 0 on all pixels. How is PImage and PGraphics supposed to be used to save an image drawn? Worth mentioning is t…

---

## [Easy 'for loop' question](https://discourse.processing.org/t/easy-for-loop-question/14075)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 3\
**Last updated:** [September 19, 2019, 8:44pm UTC](https://discourse.processing.org/t/easy-for-loop-question/14075 "2019-09-19T20:44:27Z")

</div>

What am I missing here? I’m expecting that the background should cycle through from black to white. …it’s not. function setup() { createCanvas(100, 100); } function draw() { for (let x = 0; x \< 256; x++) { backgrou…

---

## [Extra rotation added while using Proscene](https://discourse.processing.org/t/extra-rotation-added-while-using-proscene/14036)

<div class="topic-metadata">

**Author:** [@simCoder](https://discourse.processing.org/u/simCoder)\
**Replies:** 1\
**Last updated:** [September 19, 2019, 8:28pm UTC](https://discourse.processing.org/t/extra-rotation-added-while-using-proscene/14036 "2019-09-19T20:28:19Z")

</div>

Hello all! I am currently using the Proscene library to control 3D panning, rotation, and zooming, and one thing I noticed is that when rotating a scene by pressing on the left mouse button while dragging the mouse (or b…

---

## [Github: How to delete files or folder?](https://discourse.processing.org/t/github-how-to-delete-files-or-folder/14059)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 3\
**Last updated:** [September 19, 2019, 3:41pm UTC](https://discourse.processing.org/t/github-how-to-delete-files-or-folder/14059 "2019-09-19T15:41:10Z")

</div>

Github: How to delete files or folder? I don’t get it I use the browser version

---

## [Processing image not showing](https://discourse.processing.org/t/processing-image-not-showing/13986)

<div class="topic-metadata">

**Author:** [@uv\_100\_100](https://discourse.processing.org/u/uv_100_100)\
**Replies:** 9\
**Last updated:** [September 19, 2019, 5:12am UTC](https://discourse.processing.org/t/processing-image-not-showing/13986 "2019-09-19T05:12:22Z")

</div>

I am trying to make a Tic-tac-toe and all is good except for the fact that I want to show an image saying “X wins” until the user clicks the mouse. But somehow the mousePressed variable is true even when I don’t click an…

---

## [Urgent, comand ignored](https://discourse.processing.org/t/urgent-comand-ignored/14063)

<div class="topic-metadata">

**Author:** [@chaps421](https://discourse.processing.org/u/chaps421)\
**Replies:** 1\
**Last updated:** [September 19, 2019, 3:32am UTC](https://discourse.processing.org/t/urgent-comand-ignored/14063 "2019-09-19T03:32:03Z")

</div>

I have a team maker, but it has a little animation of randomness" the team only can be 3 people and every time you press enter it puts the name in the team that it shows the problem comes when the team is full and it ch…

---

## [How do you parse a nested JSON file like below using Processing JSON object?](https://discourse.processing.org/t/how-do-you-parse-a-nested-json-file-like-below-using-processing-json-object/14053)

<div class="topic-metadata">

**Author:** [@advancecoder](https://discourse.processing.org/u/advancecoder)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 6:18pm UTC](https://discourse.processing.org/t/how-do-you-parse-a-nested-json-file-like-below-using-processing-json-object/14053 "2019-09-18T18:18:17Z")

</div>

How do you parse a nested JSON file like below using Processing JSON object? { "info": { "description": "COCO 2014 Dataset", "url": "http://cocodataset.org", "version": "1.0", "year": 2014, "contri…

---

## [Help with sine waves](https://discourse.processing.org/t/help-with-sine-waves/14040)

<div class="topic-metadata">

**Author:** [@erinhasplants](https://discourse.processing.org/u/erinhasplants)\
**Replies:** 3\
**Last updated:** [September 18, 2019, 5:46pm UTC](https://discourse.processing.org/t/help-with-sine-waves/14040 "2019-09-18T17:46:31Z")

</div>

https://editor.p5js.org/johnbeesley/sketches/UBFN-z8ob i have this sketch ^ and its going all well, but i cant figure out how I can make the circles go different ways, and make a sine wave. i have the sine wave out of …

---

## [Speech recognition library issues (P5.speech)](https://discourse.processing.org/t/speech-recognition-library-issues-p5-speech/14014)

<div class="topic-metadata">

**Author:** [@feelthemall](https://discourse.processing.org/u/feelthemall)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 2:10am UTC](https://discourse.processing.org/t/speech-recognition-library-issues-p5-speech/14014 "2019-09-17T02:10:58Z")

</div>

The stop() method is not working in my scetch. The console throws out this message: sketch.js:28 Uncaught TypeError: myRec.stop is not a function and it doesn’t matter where I’m using it inside the scetch, the result i…

---

## [Performance loss with PGraphics and SVG](https://discourse.processing.org/t/performance-loss-with-pgraphics-and-svg/12897)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 25\
**Last updated:** [September 18, 2019, 5:09pm UTC](https://discourse.processing.org/t/performance-loss-with-pgraphics-and-svg/12897 "2019-09-18T17:09:03Z")

</div>

Hi there. I’m having a large issue with performance loss using PGraphics. The situation is: I’m importing an svg with 860 child Polygons. I need to do a color sampling for each and every child shape based on it’s centro…

---

## [createGraphics on mobile device](https://discourse.processing.org/t/creategraphics-on-mobile-device/13987)

<div class="topic-metadata">

**Author:** [@b\_and\_z](https://discourse.processing.org/u/b_and_z)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 3:43pm UTC](https://discourse.processing.org/t/creategraphics-on-mobile-device/13987 "2019-09-18T15:43:23Z")

</div>

so working with createGraphics and hi DPI screens is a known issue which apparently has been fixed. However, I still have some struggles with working with Graphics on mobile devices. I have this code where stuff is draw…

---

## [\[Android\] How to lock BACK button & keyboard // HELP ME~](https://discourse.processing.org/t/android-how-to-lock-back-button-keyboard-help-me/14024)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 24\
**Last updated:** [September 18, 2019, 3:28pm UTC](https://discourse.processing.org/t/android-how-to-lock-back-button-keyboard-help-me/14024 "2019-09-18T15:28:03Z")

</div>

Question 1 Hopefully the application won’t turn off to hit the back button. Is there a way to keep the app from turning off? Press the button to turn off. Is there a way to prevent the application from turning off? …

---

## [Strange offset between shader and encoded data](https://discourse.processing.org/t/strange-offset-between-shader-and-encoded-data/14048)

<div class="topic-metadata">

**Author:** [@Xelo](https://discourse.processing.org/u/Xelo)\
**Replies:** 4\
**Last updated:** [September 18, 2019, 1:58pm UTC](https://discourse.processing.org/t/strange-offset-between-shader-and-encoded-data/14048 "2019-09-18T13:58:29Z")

</div>

Hey, I am working on a real-time 2d radiosity lighting demo similar to the inactive pixelflow demo in pure processing. This uses no external libraries, and does not use pixelflow itself. So far the pipeline runs smooth…

---

## [Rotating an ellipse](https://discourse.processing.org/t/rotating-an-ellipse/13927)

<div class="topic-metadata">

**Author:** [@Katerina\_P](https://discourse.processing.org/u/Katerina_P)\
**Replies:** 17\
**Last updated:** [September 18, 2019, 10:41am UTC](https://discourse.processing.org/t/rotating-an-ellipse/13927 "2019-09-18T10:41:25Z")

</div>

Hi guys, I’m trying to get my ellipse to spin around on its axis but it doesn’t seem to be working. this is the section of the code that i want to rotate: fill(#EBF233); ellipse(700, 75, 75, 75);

---

## [JBox2D moving dynamic object](https://discourse.processing.org/t/jbox2d-moving-dynamic-object/14001)

<div class="topic-metadata">

**Author:** [@parmex](https://discourse.processing.org/u/parmex)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 8:02am UTC](https://discourse.processing.org/t/jbox2d-moving-dynamic-object/14001 "2019-09-18T08:02:25Z")

</div>

Hi, i am using the JBox2D library, I have a problem. I want to use a little square that is a dynamic object and when i press A or D it moves on left and right; but if i am over the platform it fall like a normal dynamic…

---

## [Exporting to OBJ](https://discourse.processing.org/t/exporting-to-obj/11051)

<div class="topic-metadata">

**Author:** [@PixelMx](https://discourse.processing.org/u/PixelMx)\
**Replies:** 4\
**Last updated:** [September 18, 2019, 1:52am UTC](https://discourse.processing.org/t/exporting-to-obj/11051 "2019-09-18T01:52:37Z")

</div>

I used to use Nervous System to export to OBJ, but it does not work for Processing 3, I even installed Processing 2 and won’t work there either. If there’s no similar library now I’ll try to code it directly in python/bl…

---

## [Difference between randomGaussian() and nextGaussian()](https://discourse.processing.org/t/difference-between-randomgaussian-and-nextgaussian/14008)

<div class="topic-metadata">

**Author:** [@nzfs](https://discourse.processing.org/u/nzfs)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 1:43am UTC](https://discourse.processing.org/t/difference-between-randomgaussian-and-nextgaussian/14008 "2019-09-18T01:43:32Z")

</div>

is there a difference between the randomGaussian() function in processing, and the nextGaussian() in the java.util class?

---

## [Sound crackles when using the amp method](https://discourse.processing.org/t/sound-crackles-when-using-the-amp-method/14032)

<div class="topic-metadata">

**Author:** [@thiblejack](https://discourse.processing.org/u/thiblejack)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 8:25pm UTC](https://discourse.processing.org/t/sound-crackles-when-using-the-amp-method/14032 "2019-09-17T20:25:21Z")

</div>

Hi, I’m trying to implement a polyphonic synthesizer with polyphonic aftertouch. But when I route the aftertouch events to the amplitude of my sine, it crackles a lot. I guess it’s happening because this method is not i…

---

## [Adding library in Processing IDE](https://discourse.processing.org/t/adding-library-in-processing-ide/14030)

<div class="topic-metadata">

**Author:** [@ruperty](https://discourse.processing.org/u/ruperty)\
**Replies:** 3\
**Last updated:** [September 17, 2019, 6:23pm UTC](https://discourse.processing.org/t/adding-library-in-processing-ide/14030 "2019-09-17T18:23:15Z")

</div>

I have loaded a library (grafica) in the Processing IDE, but the functions are not recognised. I notice that the library file does not appear in the folder. I guess I can do this manually, but shouldn’t the IDE do this? …

---

## [Display random image(s) according to random number](https://discourse.processing.org/t/display-random-image-s-according-to-random-number/14016)

<div class="topic-metadata">

**Author:** [@Drastard](https://discourse.processing.org/u/Drastard)\
**Replies:** 1\
**Last updated:** [September 16, 2019, 8:51pm UTC](https://discourse.processing.org/t/display-random-image-s-according-to-random-number/14016 "2019-09-16T20:51:51Z")

</div>

It’s been several years since I scraped through any kind of coding but I’ve come back to Processing as I finally have a problem to solve rather than completing something a teacher set! I would like to display a series o…

---

## [Load map API into Processing? (Leaflet.js equivalent)](https://discourse.processing.org/t/load-map-api-into-processing-leaflet-js-equivalent/14022)

<div class="topic-metadata">

**Author:** [@antoinesaurat](https://discourse.processing.org/u/antoinesaurat)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 6:26am UTC](https://discourse.processing.org/t/load-map-api-into-processing-leaflet-js-equivalent/14022 "2019-09-17T06:26:00Z")

</div>

Dear all, I am using the excellent library UnfoldingMaps to easily load map tiles API (Google, ESRI etc.) but I was wondering if anyone was aware of another library that would able to load other more modern map API espe…

---

## [Manually install Contributed Library fails](https://discourse.processing.org/t/manually-install-contributed-library-fails/13881)

<div class="topic-metadata">

**Author:** [@trob999](https://discourse.processing.org/u/trob999)\
**Replies:** 3\
**Last updated:** [September 17, 2019, 3:58am UTC](https://discourse.processing.org/t/manually-install-contributed-library-fails/13881 "2019-09-17T03:58:25Z")

</div>

Hi I’m new to processing and like to “run” the “Background Subtraction Processing Demo” from Jorge Cardoso.on my win 10 with Processing 5.3.5 http://jorgecardoso.eu/blog/index.php?/archives/105-Advanced-Background-Subt…

---

## [Processing.py issue with user-created generator (yield)](https://discourse.processing.org/t/processing-py-issue-with-user-created-generator-yield/14011)

<div class="topic-metadata">

**Author:** [@zlohner](https://discourse.processing.org/u/zlohner)\
**Replies:** 3\
**Last updated:** [September 17, 2019, 2:32am UTC](https://discourse.processing.org/t/processing-py-issue-with-user-created-generator-yield/14011 "2019-09-17T02:32:45Z")

</div>

New to Processing but experienced in programming, especially python. I decided implementing Conway’s Game of Life would be a good project to get a feel for how to use Processing.py My code involved a function that retur…

---

## [Help needed to fix Serial in Python Mode](https://discourse.processing.org/t/help-needed-to-fix-serial-in-python-mode/13431)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 1\
**Last updated:** [September 16, 2019, 3:53pm UTC](https://discourse.processing.org/t/help-needed-to-fix-serial-in-python-mode/13431 "2019-09-16T15:53:04Z")

</div>

I use Processing Python Mode in my classes, I really love this stuff. I also use Arduino with Firmata (Serial based) communication to integrate it with Processing. Serial is broken in Python Mode for quite a while now …

---

## [Loading images from a local Web Editor](https://discourse.processing.org/t/loading-images-from-a-local-web-editor/13972)

<div class="topic-metadata">

**Author:** [@leonardof131](https://discourse.processing.org/u/leonardof131)\
**Replies:** 6\
**Last updated:** [September 16, 2019, 1:57pm UTC](https://discourse.processing.org/t/loading-images-from-a-local-web-editor/13972 "2019-09-16T13:57:52Z")

</div>

So, I managed to run a version of the Web Editor for our ONG. You can check my post history to see what I’m talking about. The thing is, how can we have a folder with some images on it, so our students can use them ? F…

---

## [No Module named ast](https://discourse.processing.org/t/no-module-named-ast/13935)

<div class="topic-metadata">

**Author:** [@Troy](https://discourse.processing.org/u/Troy)\
**Replies:** 7\
**Last updated:** [September 16, 2019, 1:50pm UTC](https://discourse.processing.org/t/no-module-named-ast/13935 "2019-09-16T13:50:58Z")

</div>

I’m having a problem with Processing in python mode. I added the mode and it went through the installation process, but whether I have code to run or not, when pressing Run button I get: processing.app.SketchException:…

---

## [Fullscreen with P2D hangs Ubuntu 18.04](https://discourse.processing.org/t/fullscreen-with-p2d-hangs-ubuntu-18-04/13997)

<div class="topic-metadata">

**Author:** [@Alex\_Pr](https://discourse.processing.org/u/Alex_Pr)\
**Replies:** 20\
**Last updated:** [September 16, 2019, 12:33pm UTC](https://discourse.processing.org/t/fullscreen-with-p2d-hangs-ubuntu-18-04/13997 "2019-09-16T12:33:47Z")

</div>

I’m running Ubuntu 18.04 with an AMD Radeon R7 M445 GPU, the amdgpu drivers and Processing 3.5.1. When running a simple sketch like the one below, the entire system hangs after some time (70-120 seconds) and I have to po…

---

## [Process id issue](https://discourse.processing.org/t/process-id-issue/14012)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 0\
**Last updated:** [September 16, 2019, 10:20am UTC](https://discourse.processing.org/t/process-id-issue/14012 "2019-09-16T10:20:14Z")

</div>

Hi everyone.ive completed my project.but every time i debug my app it says cannot find process id…what is process id how to fix it? …will it be useful in implementing ads?

---

## [Desktop vs. Android](https://discourse.processing.org/t/desktop-vs-android/13604)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 6\
**Last updated:** [September 16, 2019, 4:11am UTC](https://discourse.processing.org/t/desktop-vs-android/13604 "2019-09-16T04:11:40Z")

</div>

I don’t get it, really don’t. I have a sketch which draws two spheres using code from the examples. The outer sphere is drawn just barely bigger than the inner sphere. The inner sphere uses an alpha image that is tran…

---

## [Get frequencies of sound](https://discourse.processing.org/t/get-frequencies-of-sound/14004)

<div class="topic-metadata">

**Author:** [@Loe159](https://discourse.processing.org/u/Loe159)\
**Replies:** 1\
**Last updated:** [September 16, 2019, 2:48am UTC](https://discourse.processing.org/t/get-frequencies-of-sound/14004 "2019-09-16T02:48:35Z")

</div>

Hi, to start, sorry for my English but I’m French so I’ll maybe do some mistakes. I’m totally new on Processing and I’d like to get bass of the song of my PC. To do it, I already found a code wich do a spectrograme of t…

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

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