# Latest

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

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

**Page:** 162

---

## [How does input() work?](https://discourse.processing.org/t/how-does-input-work/34844)

<div class="topic-metadata">

**Author:** [@btbamfan1](https://discourse.processing.org/u/btbamfan1)\
**Replies:** 2\
**Last updated:** [January 26, 2022, 9:08pm UTC](https://discourse.processing.org/t/how-does-input-work/34844 "2022-01-26T21:08:49Z")

</div>

Hello everyone, when I use the input() function, then run it, where should I write my user input? Right now my code looks like this: \` def userInput(): whereToGo = input(“Where would you like to go?”) userInput() \` …

---

## [I'm not able to run any code on Processing Python mode](https://discourse.processing.org/t/im-not-able-to-run-any-code-on-processing-python-mode/34730)

<div class="topic-metadata">

**Author:** [@noL](https://discourse.processing.org/u/noL)\
**Replies:** 4\
**Last updated:** [January 26, 2022, 8:38pm UTC](https://discourse.processing.org/t/im-not-able-to-run-any-code-on-processing-python-mode/34730 "2022-01-26T20:38:56Z")

</div>

I just installed processing and I can’t run any code. Not even print(‘hello, world!’). This error keeps popping up in the console panel. I couldn’t find anybody else who had this issue, can someone please help? java.la…

---

## [Processing 3.5.4 Python mode save result as SVG](https://discourse.processing.org/t/processing-3-5-4-python-mode-save-result-as-svg/34850)

<div class="topic-metadata">

**Author:** [@edipii](https://discourse.processing.org/u/edipii)\
**Replies:** 2\
**Last updated:** [January 26, 2022, 8:35pm UTC](https://discourse.processing.org/t/processing-3-5-4-python-mode-save-result-as-svg/34850 "2022-01-26T20:35:38Z")

</div>

Hi, I have some code, and the result I need save to SVG, but after all, I get PNG image, but SVG not, maybe someone can tell me, where is the problem add\_library('svg') save\_frame = False w, h = 800, 800 length\_depr = …

---

## [Refresh Run - Key Pressed](https://discourse.processing.org/t/refresh-run-key-pressed/34848)

<div class="topic-metadata">

**Author:** [@Copious-plains](https://discourse.processing.org/u/Copious-plains)\
**Replies:** 1\
**Last updated:** [January 26, 2022, 8:00pm UTC](https://discourse.processing.org/t/refresh-run-key-pressed/34848 "2022-01-26T20:00:05Z")

</div>

Hi, I have a problem. I want to write a code that will refresh an image (refresh the Run) after every key pressed and export/save image as a for example TIFF. or PNG. I’ve got this for now. Do you know how should I do …

---

## [Processing 4b3 and 4b2 with P2D & P3D in IntelliJ / Eclipse](https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822)

<div class="topic-metadata">

**Author:** [@Knut](https://discourse.processing.org/u/Knut)\
**Replies:** 6\
**Last updated:** [January 26, 2022, 10:34am UTC](https://discourse.processing.org/t/processing-4b3-and-4b2-with-p2d-p3d-in-intellij-eclipse/34822 "2022-01-26T10:34:25Z")

</div>

I’ve using Processing with Eclipse / IntelliJ and ported a lot of old projects to Processing & Java 11. Everything works great with the standard modus i.e size(xDimension, yDimension) but I’ve get an JOGL error whoever …

---

## [About loadImage() method](https://discourse.processing.org/t/about-loadimage-method/34814)

<div class="topic-metadata">

**Author:** [@MoathJ](https://discourse.processing.org/u/MoathJ)\
**Replies:** 8\
**Last updated:** [January 26, 2022, 7:41am UTC](https://discourse.processing.org/t/about-loadimage-method/34814 "2022-01-26T07:41:25Z")

</div>

Hi!! I have faced a problem in loadImage() function, which the p5.js editor doesn’t load a photos by there url, this is the code. function setup() { createCanvas(120, 120); } function draw() { let gender = “Female”…

---

## [Where to start contributing in Processing Foundation](https://discourse.processing.org/t/where-to-start-contributing-in-processing-foundation/34820)

<div class="topic-metadata">

**Author:** [@avinashbest](https://discourse.processing.org/u/avinashbest)\
**Replies:** 1\
**Last updated:** [January 26, 2022, 3:17am UTC](https://discourse.processing.org/t/where-to-start-contributing-in-processing-foundation/34820 "2022-01-26T03:17:10Z")

</div>

Hi, my name is Avinash Kumar and I’m a student from NSIT, majoring in Computer Science & Engineering. I’m currently in 3rd Year (5th Semester). I am interested in making contributions to open source projects and am a Go…

---

## [Using println to show a random color that's picked](https://discourse.processing.org/t/using-println-to-show-a-random-color-thats-picked/34367)

<div class="topic-metadata">

**Author:** [@jsco](https://discourse.processing.org/u/jsco)\
**Replies:** 7\
**Last updated:** [January 25, 2022, 9:31pm UTC](https://discourse.processing.org/t/using-println-to-show-a-random-color-thats-picked/34367 "2022-01-25T21:31:32Z")

</div>

Hi, I have set println for some different number variables and I have it working just fine. But I have a color picker set up as such; \< int selected = (int)random(0, 20); int choicesR\[\] = {51, 12, 25, 18, 33, 5, 15, 7…

---

## [Despite translation my square isn't rotating properly](https://discourse.processing.org/t/despite-translation-my-square-isnt-rotating-properly/34831)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 2\
**Last updated:** [January 25, 2022, 11:52am UTC](https://discourse.processing.org/t/despite-translation-my-square-isnt-rotating-properly/34831 "2022-01-25T11:52:25Z")

</div>

Hi, I’ve been struggling with rotating my squares. My rectmode is centered and I use degrees. I also understood I need to use translation as well but my square isn’t rotating properly. Here is my very simple code fun…

---

## [Editing window Cursor out of register Windows 10](https://discourse.processing.org/t/editing-window-cursor-out-of-register-windows-10/34622)

<div class="topic-metadata">

**Author:** [@Simon\_Schofield](https://discourse.processing.org/u/Simon_Schofield)\
**Replies:** 5\
**Last updated:** [January 25, 2022, 1:28pm UTC](https://discourse.processing.org/t/editing-window-cursor-out-of-register-windows-10/34622 "2022-01-25T13:28:28Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Not sure if this is the right place to report this. But for me it’s an app-killer problem for Processing 4 on Windows 10, and am surprised more ha…

---

## [MA Computational Arts, Goldsmiths - online and in-person open days (January, February, March)](https://discourse.processing.org/t/ma-computational-arts-goldsmiths-online-and-in-person-open-days-january-february-march/34837)

<div class="topic-metadata">

**Author:** [@jessewolpert](https://discourse.processing.org/u/jessewolpert)\
**Replies:** 0\
**Last updated:** [January 25, 2022, 12:41pm UTC](https://discourse.processing.org/t/ma-computational-arts-goldsmiths-online-and-in-person-open-days-january-february-march/34837 "2022-01-25T12:41:48Z")

</div>

Hi hacker-artists, We’re holding three open days at Goldsmiths, U of London, for the MA/MFA in Computational Arts. Come along to ask any questions you might have, speak to current students and learn more about the progr…

---

## [Code "if' and 'else if' error](https://discourse.processing.org/t/code-if-and-else-if-error/34804)

<div class="topic-metadata">

**Author:** [@Copious-plains](https://discourse.processing.org/u/Copious-plains)\
**Replies:** 4\
**Last updated:** [January 25, 2022, 1:46am UTC](https://discourse.processing.org/t/code-if-and-else-if-error/34804 "2022-01-25T01:46:10Z")

</div>

Hello, This is my first step in processing and I have had some coding lessons behind me. I have to make a pattern generator and I have almost 1 pattern behind me. However, I have a problem when it comes to code '50: 5…

---

## [saveBytes() in Android](https://discourse.processing.org/t/savebytes-in-android/4642)

<div class="topic-metadata">

**Author:** [@rva1945](https://discourse.processing.org/u/rva1945)\
**Replies:** 3\
**Last updated:** [January 25, 2022, 12:44am UTC](https://discourse.processing.org/t/savebytes-in-android/4642 "2022-01-25T00:44:16Z")

</div>

Hi: I’m successfully using saveBytes() and loadBytes() in my sketch, the values are stored and later read by the sketch, thought I can’t find the .dat file in the Android files manager tool. Not even in the sketch folde…

---

## [Move app to SD card](https://discourse.processing.org/t/move-app-to-sd-card/34828)

<div class="topic-metadata">

**Author:** [@PhoenixStormJr](https://discourse.processing.org/u/PhoenixStormJr)\
**Replies:** 0\
**Last updated:** [January 24, 2022, 7:17pm UTC](https://discourse.processing.org/t/move-app-to-sd-card/34828 "2022-01-24T19:17:59Z")

</div>

Before I begin I wanted to say I had a lot of trouble with this and couldn’t find anything for 6 months, BUT I figured out a way to move your program to the SD card WITH OR WITHOUT the APK file. Step 1: turn on develope…

---

## [After testing on x86 PC exported arm64 program does not run on Pi 4](https://discourse.processing.org/t/after-testing-on-x86-pc-exported-arm64-program-does-not-run-on-pi-4/34635)

<div class="topic-metadata">

**Author:** [@rajiv.tctech](https://discourse.processing.org/u/rajiv.tctech)\
**Replies:** 4\
**Last updated:** [January 24, 2022, 12:55pm UTC](https://discourse.processing.org/t/after-testing-on-x86-pc-exported-arm64-program-does-not-run-on-pi-4/34635 "2022-01-24T12:55:54Z")

</div>

I have a program written in Processing 3.x, which I have tested on an x86 PC, after exporting the program without bundling Java. The same process also exported an arm64 and armv6hf version. I tested the linux64 version w…

---

## [Hello i need help with my homework (cross with line hatching)](https://discourse.processing.org/t/hello-i-need-help-with-my-homework-cross-with-line-hatching/34771)

<div class="topic-metadata">

**Author:** [@alex5](https://discourse.processing.org/u/alex5)\
**Replies:** 11\
**Last updated:** [January 24, 2022, 10:06am UTC](https://discourse.processing.org/t/hello-i-need-help-with-my-homework-cross-with-line-hatching/34771 "2022-01-24T10:06:56Z")

</div>

please format code with \</\> button \* homework policy \* asking questions i need to draw this figure, the instructors are: do a line hatching with a 5 pixel interval in between each line thank you very much

---

## [Playing sound files in p5.js](https://discourse.processing.org/t/playing-sound-files-in-p5-js/28286)

<div class="topic-metadata">

**Author:** [@Annushka123](https://discourse.processing.org/u/Annushka123)\
**Replies:** 10\
**Last updated:** [January 23, 2022, 10:30pm UTC](https://discourse.processing.org/t/playing-sound-files-in-p5-js/28286 "2022-01-23T22:30:56Z")

</div>

Hi! I’m working through the p5.js course in Kadenze and I’m trying to play an audio sample while my mouse hovers over a section of my sketch: if (mouseX \> 600 && mouseX \<700){ sound\_out.play(); } else { sound\_out.st…

---

## [Draw-order based transparency issue](https://discourse.processing.org/t/draw-order-based-transparency-issue/22675)

<div class="topic-metadata">

**Author:** [@chittyxz](https://discourse.processing.org/u/chittyxz)\
**Replies:** 5\
**Last updated:** [January 23, 2022, 8:32pm UTC](https://discourse.processing.org/t/draw-order-based-transparency-issue/22675 "2022-01-23T20:32:36Z")

</div>

I am having a transparency issue with drawing multiple POINTS style PShapes into a P3D PGraphics object. Each Vertex inside the PShapes has its own image-driven alpha value. Vertices with partial transparency misbehave. …

---

## [Can't seen to make PostFx work on my computer](https://discourse.processing.org/t/cant-seen-to-make-postfx-work-on-my-computer/34809)

<div class="topic-metadata">

**Author:** [@lucaoskaique](https://discourse.processing.org/u/lucaoskaique)\
**Replies:** 0\
**Last updated:** [January 23, 2022, 5:50pm UTC](https://discourse.processing.org/t/cant-seen-to-make-postfx-work-on-my-computer/34809 "2022-01-23T17:50:08Z")

</div>

Hi guys, i’m trying to use postFX to render a video but i only got a black screen and only the audio is playing import processing.video.\*; import processing.sound.\*; import ch.bildspur.postfx.builder.\*; import ch.bildsp…

---

## [How do I measure the angle of a vertex?](https://discourse.processing.org/t/how-do-i-measure-the-angle-of-a-vertex/34511)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 4\
**Last updated:** [January 23, 2022, 5:11pm UTC](https://discourse.processing.org/t/how-do-i-measure-the-angle-of-a-vertex/34511 "2022-01-23T17:11:47Z")

</div>

Let me have three points, and the two lines from one of them, the vertex point, to the others two. How do I calculate the angle between the two lines? I am trying not to use PVectors.

---

## [Recording videos while minimal movement with android phone](https://discourse.processing.org/t/recording-videos-while-minimal-movement-with-android-phone/34807)

<div class="topic-metadata">

**Author:** [@Jeff](https://discourse.processing.org/u/Jeff)\
**Replies:** 0\
**Last updated:** [January 23, 2022, 4:25pm UTC](https://discourse.processing.org/t/recording-videos-while-minimal-movement-with-android-phone/34807 "2022-01-23T16:25:08Z")

</div>

My goal is to create an app that measures movement through the built in accelerometer in the phone and records video while there is little movement. I am easily able to get accelerometer readings from tutorial example an…

---

## [Background change based on music](https://discourse.processing.org/t/background-change-based-on-music/34794)

<div class="topic-metadata">

**Author:** [@Alix](https://discourse.processing.org/u/Alix)\
**Replies:** 3\
**Last updated:** [January 23, 2022, 3:56pm UTC](https://discourse.processing.org/t/background-change-based-on-music/34794 "2022-01-23T15:56:39Z")

</div>

Hey, I’ve been desperately searching for a solution. Is there any possibility that the background color changes from white to red, regarding the amplitude as how the circle does from black in this example? Thank you! …

---

## [Are contributed library examples Read Only?](https://discourse.processing.org/t/are-contributed-library-examples-read-only/34800)

<div class="topic-metadata">

**Author:** [@MJC](https://discourse.processing.org/u/MJC)\
**Replies:** 0\
**Last updated:** [January 23, 2022, 12:28pm UTC](https://discourse.processing.org/t/are-contributed-library-examples-read-only/34800 "2022-01-23T12:28:44Z")

</div>

Hi! I moved over to Processing 4, and made a new sketchbook folder. I also copied over the library I was using from my previous sketchbook folder to the new one (for reference the contributed library was HTTP Requests …

---

## [Proper way to do full screen](https://discourse.processing.org/t/proper-way-to-do-full-screen/34778)

<div class="topic-metadata">

**Author:** [@Slien](https://discourse.processing.org/u/Slien)\
**Replies:** 4\
**Last updated:** [January 23, 2022, 12:07pm UTC](https://discourse.processing.org/t/proper-way-to-do-full-screen/34778 "2022-01-23T12:07:48Z")

</div>

I’ve finished making a game (simple 2D platformer) and I’m trying to improve some aspects of it. One of those aspects is making the game full screen. I unfortunately wrote the entire game with a 1440 x 900 window in mind…

---

## [Plotting coordinates on the map (unfoldingmap)](https://discourse.processing.org/t/plotting-coordinates-on-the-map-unfoldingmap/34773)

<div class="topic-metadata">

**Author:** [@YueLiang](https://discourse.processing.org/u/YueLiang)\
**Replies:** 3\
**Last updated:** [January 22, 2022, 9:34pm UTC](https://discourse.processing.org/t/plotting-coordinates-on-the-map-unfoldingmap/34773 "2022-01-22T21:34:44Z")

</div>

Hello everyone Does anyone know if there are any libraries to build a route on the map? Search on the internet did not give anything, there are some examples with unfoldingmap but this library has not been updated for …

---

## [Processing 4 IDE Editor Colours for Source Code](https://discourse.processing.org/t/processing-4-ide-editor-colours-for-source-code/34792)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 0\
**Last updated:** [January 22, 2022, 6:07pm UTC](https://discourse.processing.org/t/processing-4-ide-editor-colours-for-source-code/34792 "2022-01-22T18:07:08Z")

</div>

Started using Processing 4 recently and I’m having another go at a dark theme with helpful colouring of the code. The colour definitions have been moved from preferences.txt to theme.txt. This is better because Processi…

---

## [How to connect/trigger elements in specific mouse-pressed combinations in p5.js (piano)](https://discourse.processing.org/t/how-to-connect-trigger-elements-in-specific-mouse-pressed-combinations-in-p5-js-piano/34758)

<div class="topic-metadata">

**Author:** [@Javrimir](https://discourse.processing.org/u/Javrimir)\
**Replies:** 11\
**Last updated:** [January 22, 2022, 4:42pm UTC](https://discourse.processing.org/t/how-to-connect-trigger-elements-in-specific-mouse-pressed-combinations-in-p5-js-piano/34758 "2022-01-22T16:42:56Z")

</div>

Hello everyone, I’m trying to visualize music in a concrete way: I built a keyboard with 60 keys, which I positioned at the bottom of the canvas. The whole visualization of every single key pressed, is supposed to be a…

---

## [PGS interpolate need holeless polygon - what it is?](https://discourse.processing.org/t/pgs-interpolate-need-holeless-polygon-what-it-is/34728)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 2\
**Last updated:** [January 22, 2022, 10:27am UTC](https://discourse.processing.org/t/pgs-interpolate-need-holeless-polygon-what-it-is/34728 "2022-01-22T10:27:33Z")

</div>

Hi, I’m trying to interpolate between two PShape loaded from SVG. I’ve got this error message : morph() accepts holeless single polygons only (for now). I created the svg with inkscape, here’s the files, where is t…

---

## [Firefox windowWidth and windowHeight return values that are slightly too high](https://discourse.processing.org/t/firefox-windowwidth-and-windowheight-return-values-that-are-slightly-too-high/34769)

<div class="topic-metadata">

**Author:** [@mtavictim](https://discourse.processing.org/u/mtavictim)\
**Replies:** 2\
**Last updated:** [January 22, 2022, 12:24am UTC](https://discourse.processing.org/t/firefox-windowwidth-and-windowheight-return-values-that-are-slightly-too-high/34769 "2022-01-22T00:24:29Z")

</div>

I’ve recently gotten back into p5 after a few months. In that time, I’ve switched browsers from Brave (a Chromium derivative, if I remember correctly) to Firefox. When I opened a p5 project from a while ago in Firefox, I…

---

## [Filling in a triangle with points](https://discourse.processing.org/t/filling-in-a-triangle-with-points/34765)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 3\
**Last updated:** [January 21, 2022, 10:51pm UTC](https://discourse.processing.org/t/filling-in-a-triangle-with-points/34765 "2022-01-21T22:51:17Z")

</div>

Hello, I’m drawing triangles. I’d like to fill in these triangles with lots of points. I believe in order to do so I’d need to know the coordinates of each point belonging within the triangle. I could find solutions …

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

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