# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=94

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

**Page:** 95

---

## [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 …

---

## [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…

---

## [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…

---

## [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…

---

## [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

---

## [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.

---

## [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…

---

## [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…

---

## [How to Restart or Shutdown Windows 10 PC using Processing 3](https://discourse.processing.org/t/how-to-restart-or-shutdown-windows-10-pc-using-processing-3/34687)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 7\
**Last updated:** [January 21, 2022, 8:52pm UTC](https://discourse.processing.org/t/how-to-restart-or-shutdown-windows-10-pc-using-processing-3/34687 "2022-01-21T20:52:01Z")

</div>

I am making an arcade station with a Latte Panda v1.0 as the main computer which plays fun games like “The Game of Life” an others. In the middle there is a “World Reset” button and pressing it is supposed to reset the …

---

## [Line not drawing (PVector)](https://discourse.processing.org/t/line-not-drawing-pvector/34776)

<div class="topic-metadata">

**Author:** [@Ex1ne](https://discourse.processing.org/u/Ex1ne)\
**Replies:** 5\
**Last updated:** [January 21, 2022, 3:09pm UTC](https://discourse.processing.org/t/line-not-drawing-pvector/34776 "2022-01-21T15:09:15Z")

</div>

I’m about done scratching my head over this. What I’m trying to do is this: Make a point A. Make a new point B in refference to point A with an added x and y using PVector, aswell as rotate by an amount. Make a line b…

---

## [Even stroke weight on distorted svg](https://discourse.processing.org/t/even-stroke-weight-on-distorted-svg/34749)

<div class="topic-metadata">

**Author:** [@danielkozma](https://discourse.processing.org/u/danielkozma)\
**Replies:** 3\
**Last updated:** [January 21, 2022, 9:17am UTC](https://discourse.processing.org/t/even-stroke-weight-on-distorted-svg/34749 "2022-01-21T09:17:50Z")

</div>

Hi! I would like to use an imported svg in various distorted aspect ratios. Is there a way to get an even stroke weight on the distorted versions (right), just like on the original (left)? PShape gl; void setup() { …

---

## [Switching title images](https://discourse.processing.org/t/switching-title-images/34735)

<div class="topic-metadata">

**Author:** [@cisky](https://discourse.processing.org/u/cisky)\
**Replies:** 9\
**Last updated:** [January 20, 2022, 11:32pm UTC](https://discourse.processing.org/t/switching-title-images/34735 "2022-01-20T23:32:39Z")

</div>

Hi everyone, I’ve just started working with Processing and I need your help on my project. I’m tryna make the classic “Breakout” game and, to start, I’d like to have a “blinking” title. My goal is to have this red and …

---

## [P3D performance with 62500 boxes](https://discourse.processing.org/t/p3d-performance-with-62500-boxes/3821)

<div class="topic-metadata">

**Author:** [@coco](https://discourse.processing.org/u/coco)\
**Replies:** 56\
**Last updated:** [January 20, 2022, 4:38pm UTC](https://discourse.processing.org/t/p3d-performance-with-62500-boxes/3821 "2022-01-20T16:38:24Z")

</div>

I have a program that I wrote a long time ago using the GLGraphics library and that I’m trying to port into Processing 3.0. It is a program that has 62500 boxes independently moving all over the place. In P151 I used coo…

---

## [How to packed JSON object over serial port (Serialise JSON object)](https://discourse.processing.org/t/how-to-packed-json-object-over-serial-port-serialise-json-object/34686)

<div class="topic-metadata">

**Author:** [@avong](https://discourse.processing.org/u/avong)\
**Replies:** 5\
**Last updated:** [January 20, 2022, 5:44am UTC](https://discourse.processing.org/t/how-to-packed-json-object-over-serial-port-serialise-json-object/34686 "2022-01-20T05:44:01Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I wish to set PC to communicate with my microcontroller over serial port. The data format i use JSON. The microcontroller to PC is working well …

---

## [Access Elgato Stream Deck from Processing](https://discourse.processing.org/t/access-elgato-stream-deck-from-processing/34724)

<div class="topic-metadata">

**Author:** [@stixan](https://discourse.processing.org/u/stixan)\
**Replies:** 0\
**Last updated:** [January 19, 2022, 10:42am UTC](https://discourse.processing.org/t/access-elgato-stream-deck-from-processing/34724 "2022-01-19T10:42:28Z")

</div>

I got myself an Elgato Stream Deck XL that I want to use to control my Processing sketches on my Mac. Ideally, I would connect to my Stream Deck directly from Processing to be able to send text/images to buttons and lis…

---

## [Get correct geometry and scale using photo or vision... Is this possible with Processing?](https://discourse.processing.org/t/get-correct-geometry-and-scale-using-photo-or-vision-is-this-possible-with-processing/25806)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 5\
**Last updated:** [January 19, 2022, 8:46am UTC](https://discourse.processing.org/t/get-correct-geometry-and-scale-using-photo-or-vision-is-this-possible-with-processing/25806 "2022-01-19T08:46:19Z")

</div>

Hi, This would be my long topic title: Take a photo with reference points for scale or use camera vision save contour as DXF or SVG in the correct dimensions/scale. Is this possible in Processing? I have a couple of p…

---

## [Webcam capture not working on Microsoft Surface](https://discourse.processing.org/t/webcam-capture-not-working-on-microsoft-surface/34719)

<div class="topic-metadata">

**Author:** [@ctbrahmstedt](https://discourse.processing.org/u/ctbrahmstedt)\
**Replies:** 0\
**Last updated:** [January 19, 2022, 3:30am UTC](https://discourse.processing.org/t/webcam-capture-not-working-on-microsoft-surface/34719 "2022-01-19T03:30:16Z")

</div>

I just bought a brand new Microsoft Surface 8, x64 variety, and I’m trying to get a basic video capture sketch working. I’m using this for a product demo, so this is literally the first app I’m installing on this machine…

---

## [I want it to look like a real brush](https://discourse.processing.org/t/i-want-it-to-look-like-a-real-brush/34684)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 7\
**Last updated:** [January 18, 2022, 6:28pm UTC](https://discourse.processing.org/t/i-want-it-to-look-like-a-real-brush/34684 "2022-01-18T18:28:10Z")

</div>

I am willing to create a random spline, that it would look like it was made by brush any idea where to begin?

---

## [A Processing precision problem?](https://discourse.processing.org/t/a-processing-precision-problem/34693)

<div class="topic-metadata">

**Author:** [@coderambler](https://discourse.processing.org/u/coderambler)\
**Replies:** 2\
**Last updated:** [January 18, 2022, 5:45pm UTC](https://discourse.processing.org/t/a-processing-precision-problem/34693 "2022-01-18T17:45:33Z")

</div>

The code example below inscribes a circle within a square. In the result however, the circle is moved one point up and one point left, relative to the square. Check the picture: The borderless circle is tipping over th…

---

## [Grain texture in Processing](https://discourse.processing.org/t/grain-texture-in-processing/34694)

<div class="topic-metadata">

**Author:** [@Nik](https://discourse.processing.org/u/Nik)\
**Replies:** 5\
**Last updated:** [January 18, 2022, 4:56pm UTC](https://discourse.processing.org/t/grain-texture-in-processing/34694 "2022-01-18T16:56:52Z")

</div>

Hello! Does anyone know how to make such textures in Processing as in the photo. Maybe it’s some kind of GLSL shader?

---

## [Text inaccuracies in P2D/P3D mode](https://discourse.processing.org/t/text-inaccuracies-in-p2d-p3d-mode/34634)

<div class="topic-metadata">

**Author:** [@macwarrior](https://discourse.processing.org/u/macwarrior)\
**Replies:** 8\
**Last updated:** [January 18, 2022, 11:53am UTC](https://discourse.processing.org/t/text-inaccuracies-in-p2d-p3d-mode/34634 "2022-01-18T11:53:33Z")

</div>

I have been working on a project that involves a lot of text handling, and I’ve recently started trying to add some 3D rotations and transformations to some of the graphics. However, when I switch to the P3D renderer, th…

---

## [selectInput() not opening file dialogue when used as intended](https://discourse.processing.org/t/selectinput-not-opening-file-dialogue-when-used-as-intended/34697)

<div class="topic-metadata">

**Author:** [@Crysp](https://discourse.processing.org/u/Crysp)\
**Replies:** 7\
**Last updated:** [January 18, 2022, 10:07am UTC](https://discourse.processing.org/t/selectinput-not-opening-file-dialogue-when-used-as-intended/34697 "2022-01-18T10:07:43Z")

</div>

Hello. I am on a Macbook running macOS Monterey 12.0.1 and I found an issue (or a mistake I wasn’t able to solve) with selectInput() in Processing. My goal was to use it to pass an image to the program which I then do wh…

---

## [Performance Bugs - Computationally Low Sketches take up 11GB of memory](https://discourse.processing.org/t/performance-bugs-computationally-low-sketches-take-up-11gb-of-memory/34586)

<div class="topic-metadata">

**Author:** [@arkwl](https://discourse.processing.org/u/arkwl)\
**Replies:** 3\
**Last updated:** [January 17, 2022, 10:54pm UTC](https://discourse.processing.org/t/performance-bugs-computationally-low-sketches-take-up-11gb-of-memory/34586 "2022-01-17T22:54:22Z")

</div>

Hello, I’ve been using Processing for the past 4 weeks and it’s my new favorite IDE! I’ll work on a sketch for about an hour, and when I frequently re-run a sketch, my computer will freeze. The last time it happened, I w…

---

## [Delete leftmost circle on the canvas](https://discourse.processing.org/t/delete-leftmost-circle-on-the-canvas/34663)

<div class="topic-metadata">

**Author:** [@processingboy1](https://discourse.processing.org/u/processingboy1)\
**Replies:** 2\
**Last updated:** [January 17, 2022, 7:14pm UTC](https://discourse.processing.org/t/delete-leftmost-circle-on-the-canvas/34663 "2022-01-17T19:14:54Z")

</div>

I was able to write a code that draws different circles on a canvas and i need to find a way i could delete the leftmost circle when any key is pressed. i’ve been at this for hours and i feel like i am close to the answe…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=93)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=95)
