# Latest

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

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

**Page:** 238

---

## [Help with operator "&&"](https://discourse.processing.org/t/help-with-operator/29103)

<div class="topic-metadata">

**Author:** [@Dialias](https://discourse.processing.org/u/Dialias)\
**Replies:** 3\
**Last updated:** [April 4, 2021, 12:22am UTC](https://discourse.processing.org/t/help-with-operator/29103 "2021-04-04T00:22:04Z")

</div>

Hey i have a problem with my code. the console says , unexpected tocen ,&&" in th lower code. import processing.pdf.\*; int money; int mpc; //money per click int owned1; //owned first upgrade boolean buy1;…

---

## [globalCompositeOperation in P5](https://discourse.processing.org/t/globalcompositeoperation-in-p5/29105)

<div class="topic-metadata">

**Author:** [@hellonearthis](https://discourse.processing.org/u/hellonearthis)\
**Replies:** 1\
**Last updated:** [April 4, 2021, 6:55am UTC](https://discourse.processing.org/t/globalcompositeoperation-in-p5/29105 "2021-04-04T06:55:30Z")

</div>

I was watching the video below talk about the globalCompositeOperation And I wondered how this is used in P5.js It’s similar but different to (blendmode)\[ \<blend-mode\> - CSS: Cascading Style Sheets | MDN\] So I made th…

---

## [Random Colors with Shapes](https://discourse.processing.org/t/random-colors-with-shapes/29034)

<div class="topic-metadata">

**Author:** [@bridgette](https://discourse.processing.org/u/bridgette)\
**Replies:** 12\
**Last updated:** [April 4, 2021, 12:29am UTC](https://discourse.processing.org/t/random-colors-with-shapes/29034 "2021-04-04T00:29:25Z")

</div>

Hello, I’m new to processing and my task is to display shapes with randomized colors. size(700,700) background('#FF4477') translate(random(100, 500), 30) fill('#E3AB62') noStroke() ellipse(random(100, 120), random (…

---

## [Is there a way to detect 2 key presses at once?](https://discourse.processing.org/t/is-there-a-way-to-detect-2-key-presses-at-once/29100)

<div class="topic-metadata">

**Author:** [@graph100](https://discourse.processing.org/u/graph100)\
**Replies:** 2\
**Last updated:** [April 3, 2021, 11:14pm UTC](https://discourse.processing.org/t/is-there-a-way-to-detect-2-key-presses-at-once/29100 "2021-04-03T23:14:39Z")

</div>

Hi, I’ve mainly been working in p5.js, and some time ago, I was porting one of my javascript games to processing and I noticed there isn’t really and equivalent in processing. I’ve tried: if (keyPressed) { switch key …

---

## [How to get and install Unfolding Map v0.9.9beta library?](https://discourse.processing.org/t/how-to-get-and-install-unfolding-map-v0-9-9beta-library/7363)

<div class="topic-metadata">

**Author:** [@fabwoj](https://discourse.processing.org/u/fabwoj)\
**Replies:** 21\
**Last updated:** [April 3, 2021, 1:57pm UTC](https://discourse.processing.org/t/how-to-get-and-install-unfolding-map-v0-9-9beta-library/7363 "2021-04-03T13:57:07Z")

</div>

Hi there, I would like to use unfolding maps under P3. I saw on the forum that this seems possible using Unfolding Map v0.9.9beta library. Where can I get this library ? Does it work fine ? Thank you very much. Best …

---

## [\[Bug\] java.lang.RuntimeException: onRequestPermission SaveSettings() already added for this instance](https://discourse.processing.org/t/bug-java-lang-runtimeexception-onrequestpermission-savesettings-already-added-for-this-instance/29074)

<div class="topic-metadata">

**Author:** [@Kitulous](https://discourse.processing.org/u/Kitulous)\
**Replies:** 1\
**Last updated:** [April 3, 2021, 5:35pm UTC](https://discourse.processing.org/t/bug-java-lang-runtimeexception-onrequestpermission-savesettings-already-added-for-this-instance/29074 "2021-04-03T17:35:56Z")

</div>

I had to edit the title because it didn’t let me post, the correct title is: “\[Bug\] java.lang.RuntimeException: onRequestPermissionSaveSettings() already added for this instance” Hi. So whenever I try to save a file, I …

---

## [SVG Element Explosion](https://discourse.processing.org/t/svg-element-explosion/29083)

<div class="topic-metadata">

**Author:** [@p\_a](https://discourse.processing.org/u/p_a)\
**Replies:** 9\
**Last updated:** [April 3, 2021, 12:54pm UTC](https://discourse.processing.org/t/svg-element-explosion/29083 "2021-04-03T12:54:45Z")

</div>

Hi! Is it possible to: Load an SVG get access to all elements (shapes) of that SVG let them drift apart and back together again? Should look like the whole shape explodes, but build itself back together. If it’s not …

---

## [PacMan moving left and right with chomp, not game](https://discourse.processing.org/t/pacman-moving-left-and-right-with-chomp-not-game/29067)

<div class="topic-metadata">

**Author:** [@Panda](https://discourse.processing.org/u/Panda)\
**Replies:** 7\
**Last updated:** [April 3, 2021, 11:56am UTC](https://discourse.processing.org/t/pacman-moving-left-and-right-with-chomp-not-game/29067 "2021-04-03T11:56:37Z")

</div>

Hello. Coding student here. Trying to understand how to make a Pacman character move across the screen while chomping. Once he hits the edge of the window, turns around and goes back the other way. This is one example o…

---

## [Is there any way to implement invisibility using opencv js framework](https://discourse.processing.org/t/is-there-any-way-to-implement-invisibility-using-opencv-js-framework/29079)

<div class="topic-metadata">

**Author:** [@bandhavya](https://discourse.processing.org/u/bandhavya)\
**Replies:** 3\
**Last updated:** [April 3, 2021, 11:46am UTC](https://discourse.processing.org/t/is-there-any-way-to-implement-invisibility-using-opencv-js-framework/29079 "2021-04-03T11:46:45Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Is there a possibility of implementing something like this https://analyticsindiamag.com/my-fun-ai-project-how-to-be-invisible/ Is this possibl…

---

## [Problems with converting a String to a float](https://discourse.processing.org/t/problems-with-converting-a-string-to-a-float/28761)

<div class="topic-metadata">

**Author:** [@Nick2](https://discourse.processing.org/u/Nick2)\
**Replies:** 12\
**Last updated:** [April 3, 2021, 9:46am UTC](https://discourse.processing.org/t/problems-with-converting-a-string-to-a-float/28761 "2021-04-03T09:46:15Z")

</div>

Hi! Im trying to display my sensor temperature thats hooked up with the arduino. The project is basiclly to display temperature in little rectangles with the colors:RGB, but to do that I first have to split my String an…

---

## [How to preview changes made in p5.js repository at ps.js web-editor at my localhost](https://discourse.processing.org/t/how-to-preview-changes-made-in-p5-js-repository-at-ps-js-web-editor-at-my-localhost/28014)

<div class="topic-metadata">

**Author:** [@Amit90113](https://discourse.processing.org/u/Amit90113)\
**Replies:** 6\
**Last updated:** [February 26, 2021, 5:57am UTC](https://discourse.processing.org/t/how-to-preview-changes-made-in-p5-js-repository-at-ps-js-web-editor-at-my-localhost/28014 "2021-02-26T05:57:15Z")

</div>

Hi, I am new to p5.js I have encountered some problems while rendering some GIFs as it is giving “uncaught type error” in the p5.js web-editor console. I have a quick fix also and made some changes in the p5.js repositor…

---

## [3 levels of generative colors](https://discourse.processing.org/t/3-levels-of-generative-colors/29056)

<div class="topic-metadata">

**Author:** [@musiciantriescoding](https://discourse.processing.org/u/musiciantriescoding)\
**Replies:** 3\
**Last updated:** [April 3, 2021, 5:35am UTC](https://discourse.processing.org/t/3-levels-of-generative-colors/29056 "2021-04-03T05:35:26Z")

</div>

Hello fellow generative artists! Many of us (including myself) often forget about color in our practice. So I made a resolution to myself to explore and learn it. I wrote this article along the way and there are tips and…

---

## [Proposal Review GSoC 2021 - Continued development of p5.js Showcase](https://discourse.processing.org/t/proposal-review-gsoc-2021-continued-development-of-p5-js-showcase/29015)

<div class="topic-metadata">

**Author:** [@two.ticks](https://discourse.processing.org/u/two.ticks)\
**Replies:** 2\
**Last updated:** [April 3, 2021, 4:25am UTC](https://discourse.processing.org/t/proposal-review-gsoc-2021-continued-development-of-p5-js-showcase/29015 "2021-04-03T04:25:54Z")

</div>

Hello everyone! Here is my proposal for Continued development of p5.js Showcase. Please take a look and suggest changes. proposal link @micuat @lmccart @mcintyre @saberkhan @jeremydouglass @Jithin

---

## [Storing all index permutations with Heap's algorithm](https://discourse.processing.org/t/storing-all-index-permutations-with-heaps-algorithm/22326)

<div class="topic-metadata">

**Author:** [@hsolatges](https://discourse.processing.org/u/hsolatges)\
**Replies:** 6\
**Last updated:** [April 3, 2021, 4:08am UTC](https://discourse.processing.org/t/storing-all-index-permutations-with-heaps-algorithm/22326 "2021-04-03T04:08:51Z")

</div>

Hi, I am new on Processing and I am struggling with Java. I am trying to use Heap’s algorithm to get the list of all the permutations of numbers. I want to store that list so I wan use it as a matrix for animation. I …

---

## [Conditioning the sketch on finding the COM port trouble](https://discourse.processing.org/t/conditioning-the-sketch-on-finding-the-com-port-trouble/28910)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 8\
**Last updated:** [April 3, 2021, 2:32am UTC](https://discourse.processing.org/t/conditioning-the-sketch-on-finding-the-com-port-trouble/28910 "2021-04-03T02:32:12Z")

</div>

I have a sketch that talks to an Arduino. I would like it to stop and warn me when the arduino is not present so I tried: void setup() { size(1900, 950, JAVA2D); printArray(Serial.list()); if (Serial.list().le…

---

## [Addon Library Development - p5-dsa.js (GSOC)](https://discourse.processing.org/t/addon-library-development-p5-dsa-js-gsoc/29073)

<div class="topic-metadata">

**Author:** [@sggts04](https://discourse.processing.org/u/sggts04)\
**Replies:** 2\
**Last updated:** [April 2, 2021, 11:35pm UTC](https://discourse.processing.org/t/addon-library-development-p5-dsa-js-gsoc/29073 "2021-04-02T23:35:21Z")

</div>

Hi team, as a recreational user of p5.js for small projects but recently getting into Algorithms and Data Structures, I noticed the lack of availability of efficient data structures/algorithms when trying to optimize. W…

---

## [Help with 3d object transfiguration/distortion effect](https://discourse.processing.org/t/help-with-3d-object-transfiguration-distortion-effect/28795)

<div class="topic-metadata">

**Author:** [@senhorcodigo](https://discourse.processing.org/u/senhorcodigo)\
**Replies:** 3\
**Last updated:** [April 2, 2021, 11:32pm UTC](https://discourse.processing.org/t/help-with-3d-object-transfiguration-distortion-effect/28795 "2021-04-02T23:32:34Z")

</div>

Hello, I’m trying to a project where there is an interaction with a 3d object and the user, and the interaction being when the user moves/clicks his mouse the vertices of the object move randomly. The project is still …

---

## [P2D vs JAVA2D Source-over alpha problems](https://discourse.processing.org/t/p2d-vs-java2d-source-over-alpha-problems/28957)

<div class="topic-metadata">

**Author:** [@plutovman](https://discourse.processing.org/u/plutovman)\
**Replies:** 4\
**Last updated:** [April 2, 2021, 7:24pm UTC](https://discourse.processing.org/t/p2d-vs-java2d-source-over-alpha-problems/28957 "2021-04-02T19:24:06Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I know this question has been asked in one form of another, but I wanted to pose it here in terms of getting the default blend drawing mode to w…

---

## [GSOC 21: Addon Library Development](https://discourse.processing.org/t/gsoc-21-addon-library-development/28689)

<div class="topic-metadata">

**Author:** [@prateek93a](https://discourse.processing.org/u/prateek93a)\
**Replies:** 7\
**Last updated:** [April 2, 2021, 5:51pm UTC](https://discourse.processing.org/t/gsoc-21-addon-library-development/28689 "2021-04-02T17:51:32Z")

</div>

Hey, I am a student aspiring for participating in GSOC 21. I found the project: Addon Library Development very interesting to work on, because this would give students a chance to build something that is not yet present…

---

## [GSOC 2021 Introduction and questions](https://discourse.processing.org/t/gsoc-2021-introduction-and-questions/28388)

<div class="topic-metadata">

**Author:** [@ReyzArtz](https://discourse.processing.org/u/ReyzArtz)\
**Replies:** 13\
**Last updated:** [April 1, 2021, 2:24pm UTC](https://discourse.processing.org/t/gsoc-2021-introduction-and-questions/28388 "2021-04-01T14:24:48Z")

</div>

Hey Guys! I’m Reyan, a current Computer Science undergraduate Student. I love the work that the Processing foundation has been doing so far and have been using p5.js and processing myself in many of my creative coding p…

---

## [3d view maze generator (java/android)](https://discourse.processing.org/t/3d-view-maze-generator-java-android/29057)

<div class="topic-metadata">

**Author:** [@JoseMY](https://discourse.processing.org/u/JoseMY)\
**Replies:** 4\
**Last updated:** [April 2, 2021, 4:53pm UTC](https://discourse.processing.org/t/3d-view-maze-generator-java-android/29057 "2021-04-02T16:53:29Z")

</div>

Hi! I made a small maze generator. My idea was to made a first-person maze escape game. But, as you can see in the code below, 3d view is weird. You can change the value of show3d to make sure the camera is not inside …

---

## [Drawing PImages or PShapes with color modulation](https://discourse.processing.org/t/drawing-pimages-or-pshapes-with-color-modulation/29052)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 8\
**Last updated:** [April 2, 2021, 3:28pm UTC](https://discourse.processing.org/t/drawing-pimages-or-pshapes-with-color-modulation/29052 "2021-04-02T15:28:25Z")

</div>

is there any native way to print a PImage (or a PShape) with additional arguments to change the hue saturation or brightness? i would love to be able to do like image(file,x,y,w,h,hueShift,saturationShift,brightnessShift…

---

## [Physics (Gravity)](https://discourse.processing.org/t/physics-gravity/29047)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 5\
**Last updated:** [April 2, 2021, 6:28am UTC](https://discourse.processing.org/t/physics-gravity/29047 "2021-04-02T06:28:23Z")

</div>

I am trying to simulate an object falling according to gravity. I have most of the simulation working, using Box2D, Bullet, etc. My problem is I want to incorporate all relevant laws of physics and there’s one I cannot f…

---

## [Proposal Review: Continued Development of p5.js Showcase](https://discourse.processing.org/t/proposal-review-continued-development-of-p5-js-showcase/29008)

<div class="topic-metadata">

**Author:** [@riteshsp2000](https://discourse.processing.org/u/riteshsp2000)\
**Replies:** 4\
**Last updated:** [April 2, 2021, 4:56am UTC](https://discourse.processing.org/t/proposal-review-continued-development-of-p5-js-showcase/29008 "2021-04-02T04:56:51Z")

</div>

Hello everyone. Here is my proposal for the development of p5.js Showcase. Can any mentors help me review it? Thank you. @lmccart @kjhollen @saberkhan https://docs.google.com/document/d/1SZf9sM-\_YSKFZx0dVNqRWQmhV0vfH…

---

## [How to incorporate exponential curve with a specified limit?](https://discourse.processing.org/t/how-to-incorporate-exponential-curve-with-a-specified-limit/28995)

<div class="topic-metadata">

**Author:** [@leatherbird](https://discourse.processing.org/u/leatherbird)\
**Replies:** 5\
**Last updated:** [April 2, 2021, 3:39am UTC](https://discourse.processing.org/t/how-to-incorporate-exponential-curve-with-a-specified-limit/28995 "2021-04-02T03:39:09Z")

</div>

Hello! I’m playing with randomGaussians, and gradual transitions, trying to understand the concept, and I’ve hit a bit of a snag. I’m hoping someone can help with the math involved. I’m drawing simple squares in a gri…

---

## [How and whom to submit new ideas for p5.js GSoC?](https://discourse.processing.org/t/how-and-whom-to-submit-new-ideas-for-p5-js-gsoc/28608)

<div class="topic-metadata">

**Author:** [@Aloneduckling](https://discourse.processing.org/u/Aloneduckling)\
**Replies:** 2\
**Last updated:** [April 1, 2021, 5:12pm UTC](https://discourse.processing.org/t/how-and-whom-to-submit-new-ideas-for-p5-js-gsoc/28608 "2021-04-01T17:12:15Z")

</div>

I am thinking of a new idea that is not mentioned in the idealist for GSoC and want to know if the idea would be suitable for p5.js or not? How do I do that and to whom should I contact?

---

## [createGraphics (width, height, renderer)](https://discourse.processing.org/t/creategraphics-width-height-renderer/29048)

<div class="topic-metadata">

**Author:** [@JoseMY](https://discourse.processing.org/u/JoseMY)\
**Replies:** 2\
**Last updated:** [April 1, 2021, 3:11pm UTC](https://discourse.processing.org/t/creategraphics-width-height-renderer/29048 "2021-04-01T15:11:06Z")

</div>

I’m compiling in my android phone with APDE. APDE 0.5.1 Android 9 (Pie). It seems you should explicitly set a renderer in size() if you are going to set a renderer in createGraphics. It should be documented, since us…

---

## [GSOC 2021 - Native Python and Processing Proposal](https://discourse.processing.org/t/gsoc-2021-native-python-and-processing-proposal/28940)

<div class="topic-metadata">

**Author:** [@natkoul](https://discourse.processing.org/u/natkoul)\
**Replies:** 4\
**Last updated:** [April 1, 2021, 3:00pm UTC](https://discourse.processing.org/t/gsoc-2021-native-python-and-processing-proposal/28940 "2021-04-01T15:00:39Z")

</div>

Hello Everyone, Here is my draft proposal for " Native Python and Processing". Please take a look and any feedback would be appreciated. Propsal Link @abhikpal @parsoyaarihant

---

## [I can't seem to play sounds in javascript using p5.js](https://discourse.processing.org/t/i-cant-seem-to-play-sounds-in-javascript-using-p5-js/29043)

<div class="topic-metadata">

**Author:** [@LaserDenis](https://discourse.processing.org/u/LaserDenis)\
**Replies:** 13\
**Last updated:** [April 1, 2021, 12:46pm UTC](https://discourse.processing.org/t/i-cant-seem-to-play-sounds-in-javascript-using-p5-js/29043 "2021-04-01T12:46:56Z")

</div>

I am new to Js, and p5 and I was trying to play a mp3 from my computer, but I continually get this errors: Uncaught (in promise) ReferenceError: loadSound is not defined Uncaught TypeError: Cannot read property 'play' of…

---

## [Get whole Spectrum of an audio file using p5 sound](https://discourse.processing.org/t/get-whole-spectrum-of-an-audio-file-using-p5-sound/29046)

<div class="topic-metadata">

**Author:** [@readera](https://discourse.processing.org/u/readera)\
**Replies:** 1\
**Last updated:** [April 1, 2021, 9:21am UTC](https://discourse.processing.org/t/get-whole-spectrum-of-an-audio-file-using-p5-sound/29046 "2021-04-01T09:21:52Z")

</div>

In the example examples | p5.js of the Frequency Spectrum you can show the spectrum of the sound which is currently played. Is it possible to get the whole spectrum of an file using FFT analyze from p5 sound without bei…

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

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