# Latest

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

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

**Page:** 198

---

## [\[YOLO\] Error msg : RuntimeException: java.lang.Error: Invalid memory access](https://discourse.processing.org/t/yolo-error-msg-runtimeexception-java-lang-error-invalid-memory-access/31822)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 7\
**Last updated:** [August 29, 2021, 11:01pm UTC](https://discourse.processing.org/t/yolo-error-msg-runtimeexception-java-lang-error-invalid-memory-access/31822 "2021-08-29T23:01:17Z")

</div>

library : GitHub - cansik/deep-vision-processing: Deep computer-vision algorithms for the Processing framewo import ch.bildspur.vision.\*; import ch.bildspur.vision.result.\*; DeepVision deepVision = new DeepVision(thi…

---

## [Upload processing file and be able to run it online](https://discourse.processing.org/t/upload-processing-file-and-be-able-to-run-it-online/31816)

<div class="topic-metadata">

**Author:** [@kylu](https://discourse.processing.org/u/kylu)\
**Replies:** 5\
**Last updated:** [August 29, 2021, 8:53pm UTC](https://discourse.processing.org/t/upload-processing-file-and-be-able-to-run-it-online/31816 "2021-08-29T20:53:11Z")

</div>

hi, I need to know a way to upload my files to a server so that they can be executed online, without having to download

---

## [Why am I having the NullPointerException error?](https://discourse.processing.org/t/why-am-i-having-the-nullpointerexception-error/31876)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 7:00pm UTC](https://discourse.processing.org/t/why-am-i-having-the-nullpointerexception-error/31876 "2021-08-27T19:00:23Z")

</div>

Hi guys. I can’t understand why I am getting this NullPointerException error, and the line “text(FileName, width/2, 146);” is highlighted. Thanks for your help once again. João import controlP5.\*; ControlP5 cp5; Dr…

---

## [P5.js goes to Processing abnormally slow！](https://discourse.processing.org/t/p5-js-goes-to-processing-abnormally-slow/31984)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 6\
**Last updated:** [August 29, 2021, 1:48pm UTC](https://discourse.processing.org/t/p5-js-goes-to-processing-abnormally-slow/31984 "2021-08-29T13:48:10Z")

</div>

Hello everyone! Does anyone have any research on the transition from p5js to processing? I tried to convert the p5js code to processing successfully but it runs abnormally slowly. I am not sure what went wrong. Can anyo…

---

## [Tabs, Set font and position with controlP5](https://discourse.processing.org/t/tabs-set-font-and-position-with-controlp5/31925)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 9\
**Last updated:** [August 29, 2021, 12:54pm UTC](https://discourse.processing.org/t/tabs-set-font-and-position-with-controlp5/31925 "2021-08-29T12:54:06Z")

</div>

Guys, I am trying to set the position of the tabs in “Processing” but that doesn’t work. Also using “.setFont(font1)” throws a “NullPointerException” error. :frowning: This also doesn’t do anything " setPosition(float,…

---

## [I'm trying to repeat schultzschultzgrafik](https://discourse.processing.org/t/im-trying-to-repeat-schultzschultzgrafik/23872)

<div class="topic-metadata">

**Author:** [@perelacha](https://discourse.processing.org/u/perelacha)\
**Replies:** 5\
**Last updated:** [August 29, 2021, 11:42am UTC](https://discourse.processing.org/t/im-trying-to-repeat-schultzschultzgrafik/23872 "2021-08-29T11:42:43Z")

</div>

Hello. I am new to coding. I’m trying to repeat schultzschultzgrafik https://www.instagram.com/p/CD4h9QCirXH/ That’s what I did. PImage img; float xStep, yStep; int xCount = 100; int yCount = 100; int m = 10, s = 5, …

---

## [Copy image from clipboard processing 3.x](https://discourse.processing.org/t/copy-image-from-clipboard-processing-3-x/31994)

<div class="topic-metadata">

**Author:** [@robottini](https://discourse.processing.org/u/robottini)\
**Replies:** 1\
**Last updated:** [August 29, 2021, 9:59am UTC](https://discourse.processing.org/t/copy-image-from-clipboard-processing-3-x/31994 "2021-08-29T09:59:20Z")

</div>

Hi I have this code for clipboard image copy to processing. It works well for processing 2.x but not for processing 3.x. I know that java.awt.Applet is no longer the base class used by PApplet, but I can’t identify an al…

---

## [Loops with diagonal queues](https://discourse.processing.org/t/loops-with-diagonal-queues/31850)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 18\
**Last updated:** [August 26, 2021, 4:01pm UTC](https://discourse.processing.org/t/loops-with-diagonal-queues/31850 "2021-08-26T16:01:53Z")

</div>

Hi there! I am learning about loops with “for” with a useful tutorial. I have made a pattern with few lines of code (amazing!). But the pattern that I really want to do has diagonal lines of points, as you can see on the…

---

## [Access and delete a file in a specific path](https://discourse.processing.org/t/access-and-delete-a-file-in-a-specific-path/31988)

<div class="topic-metadata">

**Author:** [@Fofana](https://discourse.processing.org/u/Fofana)\
**Replies:** 4\
**Last updated:** [August 28, 2021, 9:37pm UTC](https://discourse.processing.org/t/access-and-delete-a-file-in-a-specific-path/31988 "2021-08-28T21:37:48Z")

</div>

I want’t to access a file in a specific path. I tried this but its not working. File copyFile = dataFile(dataPath("C:\\\\wamp64\\\\www\\\\VD\\\\tempCopy.txt")); if(copyFile.isFile()){ copyFile.delete(); }

---

## [SelectFile library generates a “FATAL EXCEPTION: main” error](https://discourse.processing.org/t/selectfile-library-generates-a-fatal-exception-main-error/30175)

<div class="topic-metadata">

**Author:** [@mmuylle](https://discourse.processing.org/u/mmuylle)\
**Replies:** 22\
**Last updated:** [August 28, 2021, 8:49pm UTC](https://discourse.processing.org/t/selectfile-library-generates-a-fatal-exception-main-error/30175 "2021-08-28T20:49:05Z")

</div>

Running the example sketch (provided on the Processing website) “Select\_All\_Features” using the SelectFile library on my Android phone (Moto g7/Android 10) I get an error. When I tap one of the icons on the screen e.g. t…

---

## [Passing an Argument to a Function](https://discourse.processing.org/t/passing-an-argument-to-a-function/31933)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 7\
**Last updated:** [August 28, 2021, 2:39pm UTC](https://discourse.processing.org/t/passing-an-argument-to-a-function/31933 "2021-08-28T14:39:12Z")

</div>

Hi - I’m new to Processing and I’m trying to make a simple function that allows me to make grids out of a variably-input shapes. I am not exactly sure how this would work - I still don’t understand a lot of the termino…

---

## [Getting PShape vertex coordinates relative to scene](https://discourse.processing.org/t/getting-pshape-vertex-coordinates-relative-to-scene/31981)

<div class="topic-metadata">

**Author:** [@dehyde](https://discourse.processing.org/u/dehyde)\
**Replies:** 1\
**Last updated:** [August 28, 2021, 12:07pm UTC](https://discourse.processing.org/t/getting-pshape-vertex-coordinates-relative-to-scene/31981 "2021-08-28T12:07:02Z")

</div>

Hi all :slight\_smile: The problem: I’m trying to get set of 3 groups of 3 floats that the relationship between them is a representation of equilateral triangle in a limited space (each number 0.0-\>0.1). x1,y1,z1 x2,y2…

---

## [What is the target field in fromAngle() in PVector?](https://discourse.processing.org/t/what-is-the-target-field-in-fromangle-in-pvector/31982)

<div class="topic-metadata">

**Author:** [@whhyyy123](https://discourse.processing.org/u/whhyyy123)\
**Replies:** 4\
**Last updated:** [August 28, 2021, 7:30am UTC](https://discourse.processing.org/t/what-is-the-target-field-in-fromangle-in-pvector/31982 "2021-08-28T07:30:43Z")

</div>

Hi! I was looking at the fromAngle documentation and saw this: .fromAngle(angle, target) What is target here? Does that mean I can do this PVector p; PVector.fromAngle(90, p); Will this mean the new vector is in p? I…

---

## [No Python in Processing 4?](https://discourse.processing.org/t/no-python-in-processing-4/31979)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 1\
**Last updated:** [August 28, 2021, 4:47am UTC](https://discourse.processing.org/t/no-python-in-processing-4/31979 "2021-08-28T04:47:08Z")

</div>

Hi there - I am trying to run Processing 4 with “Python Mode for Processing 3” on OSX 10.14.16. As of now, no example seems to work. I tried simply printing a message to the console - and no luck. I tried a clean inst…

---

## [Is there an elegant way to generate the permutations of all the members of a set?](https://discourse.processing.org/t/is-there-an-elegant-way-to-generate-the-permutations-of-all-the-members-of-a-set/31810)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 26\
**Last updated:** [August 28, 2021, 4:36am UTC](https://discourse.processing.org/t/is-there-an-elegant-way-to-generate-the-permutations-of-all-the-members-of-a-set/31810 "2021-08-28T04:36:23Z")

</div>

Is there an elegant way to use Processing to generate the permutations of all the members of a set? I have done it in a long winded, clumsy, inelegant way for six elements by having an array of all 720 permutation of si…

---

## [Defining setup() and draw() at runtime](https://discourse.processing.org/t/defining-setup-and-draw-at-runtime/31728)

<div class="topic-metadata">

**Author:** [@javagar](https://discourse.processing.org/u/javagar)\
**Replies:** 8\
**Last updated:** [August 27, 2021, 11:26pm UTC](https://discourse.processing.org/t/defining-setup-and-draw-at-runtime/31728 "2021-08-27T23:26:17Z")

</div>

The following probably ought not be done, as it seems, at best, poor programming style. Perhaps, even worse, it could break in the future. However, as of this time, it does work without any obvious problem, so here goes,…

---

## [Using twitter4j](https://discourse.processing.org/t/using-twitter4j/31719)

<div class="topic-metadata">

**Author:** [@garrettlynch](https://discourse.processing.org/u/garrettlynch)\
**Replies:** 2\
**Last updated:** [August 14, 2021, 6:59pm UTC](https://discourse.processing.org/t/using-twitter4j/31719 "2021-08-14T18:59:53Z")

</div>

Is twitter4j now integrated into Processing (3.5.4)? I’m using it without problems and its not in the code folder of the sketch.

---

## [How make the display window no overlap the text editor window?](https://discourse.processing.org/t/how-make-the-display-window-no-overlap-the-text-editor-window/31840)

<div class="topic-metadata">

**Author:** [@AshSnaga](https://discourse.processing.org/u/AshSnaga)\
**Replies:** 1\
**Last updated:** [August 22, 2021, 8:19pm UTC](https://discourse.processing.org/t/how-make-the-display-window-no-overlap-the-text-editor-window/31840 "2021-08-22T20:19:26Z")

</div>

Hi, there. I had this excruciating problem :wink: I want to see both windows at the same time when coding. Each time I run a sketch I must move the display window to see the text editor window. I know that people work w…

---

## [Getting A Sketch's Window's Position](https://discourse.processing.org/t/getting-a-sketchs-windows-position/31772)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 6\
**Last updated:** [August 27, 2021, 9:27pm UTC](https://discourse.processing.org/t/getting-a-sketchs-windows-position/31772 "2021-08-27T21:27:51Z")

</div>

Hello, I’ve been searching for an answer to this for a while now and have been unable to find any solutions that work for the most recent versions of processing. Does anyone know how you would get the X and Y coordinate…

---

## [How to fade between multiple colors?](https://discourse.processing.org/t/how-to-fade-between-multiple-colors/31968)

<div class="topic-metadata">

**Author:** [@jimjimmer](https://discourse.processing.org/u/jimjimmer)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 7:28pm UTC](https://discourse.processing.org/t/how-to-fade-between-multiple-colors/31968 "2021-08-27T19:28:46Z")

</div>

Hi I can understand how to fade from one color (and back again) using code such as the one bellow. But what if I want to move through a series of 3 or more color’s? Have you managed it?? ; void setup() { size ( 300,…

---

## [Textwrap is not defined](https://discourse.processing.org/t/textwrap-is-not-defined/31967)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 9\
**Last updated:** [August 27, 2021, 3:32pm UTC](https://discourse.processing.org/t/textwrap-is-not-defined/31967 "2021-08-27T15:32:35Z")

</div>

Hey, I’m trying to use the textWrap function but I got an error: “Uncaught (in promise) ReferenceError: textwrap is not defined”. I suspect that the problem is maybe in the p5.min.js library, is that make sense? how ca…

---

## [P2D & PGraphics Movie not displaying across render modes? + BONUS P2D performance issue](https://discourse.processing.org/t/p2d-pgraphics-movie-not-displaying-across-render-modes-bonus-p2d-performance-issue/31944)

<div class="topic-metadata">

**Author:** [@rapatski](https://discourse.processing.org/u/rapatski)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 12:38pm UTC](https://discourse.processing.org/t/p2d-pgraphics-movie-not-displaying-across-render-modes-bonus-p2d-performance-issue/31944 "2021-08-27T12:38:58Z")

</div>

Hi friends, Again, sad to come back to the forum with some puzzling behaviour. Maybe someone can point me towards something I’m doing wrong or perhaps a workaround? I currently have a sketch that draws into an off-scre…

---

## [Collision in 2D-Game](https://discourse.processing.org/t/collision-in-2d-game/31914)

<div class="topic-metadata">

**Author:** [@Braunstein](https://discourse.processing.org/u/Braunstein)\
**Replies:** 3\
**Last updated:** [August 27, 2021, 10:01am UTC](https://discourse.processing.org/t/collision-in-2d-game/31914 "2021-08-27T10:01:15Z")

</div>

Heya, i have been making some progress on a 2D-open-world-“game”. So far, you can move into eight directions (thanks to the user @CodeMasterX) on a 200000 by 200000 pixel world and increase your speed by holding the spri…

---

## [createSlider does not work sometimes](https://discourse.processing.org/t/createslider-does-not-work-sometimes/31935)

<div class="topic-metadata">

**Author:** [@Ariadne](https://discourse.processing.org/u/Ariadne)\
**Replies:** 2\
**Last updated:** [August 27, 2021, 4:21am UTC](https://discourse.processing.org/t/createslider-does-not-work-sometimes/31935 "2021-08-27T04:21:29Z")

</div>

So in the start of my code, I define time as the return value of createSlider(0, 1, 1 / animationSmoothness, where animationSmoothness is 16. But when I try to call the value() method of time, an error shows up. Why? Co…

---

## [Read a file generated by another sketch](https://discourse.processing.org/t/read-a-file-generated-by-another-sketch/31889)

<div class="topic-metadata">

**Author:** [@MPROCD](https://discourse.processing.org/u/MPROCD)\
**Replies:** 2\
**Last updated:** [August 26, 2021, 6:46pm UTC](https://discourse.processing.org/t/read-a-file-generated-by-another-sketch/31889 "2021-08-26T18:46:07Z")

</div>

I have one sketch which writes a file in its directory. Some time later, I run another sketch which needs the data from this file. Today I pass the data between these two sketches manually. How can the second sketch r…

---

## [Random rows/columns in a csv file and print text with typewriter effect](https://discourse.processing.org/t/random-rows-columns-in-a-csv-file-and-print-text-with-typewriter-effect/12889)

<div class="topic-metadata">

**Author:** [@OptOut](https://discourse.processing.org/u/OptOut)\
**Replies:** 82\
**Last updated:** [August 26, 2021, 5:38pm UTC](https://discourse.processing.org/t/random-rows-columns-in-a-csv-file-and-print-text-with-typewriter-effect/12889 "2021-08-26T17:38:34Z")

</div>

Hi all, I am starting on a project that involves using data from a large csv. For now I am just playing with the processing Table/row documentation and have created a mammals.csv file containing amount, species, name …

---

## [Sound Library examples all return errors, make no sound](https://discourse.processing.org/t/sound-library-examples-all-return-errors-make-no-sound/15383)

<div class="topic-metadata">

**Author:** [@m11](https://discourse.processing.org/u/m11)\
**Replies:** 7\
**Last updated:** [August 26, 2021, 5:31pm UTC](https://discourse.processing.org/t/sound-library-examples-all-return-errors-make-no-sound/15383 "2021-08-26T17:31:01Z")

</div>

Hi everyone - I’m trying to use the official Sound library, but can’t get it to make any sound - and this is only through running the official examples included with the library, so far. Here’s a typical error message,…

---

## [Problems with exporting to SVG](https://discourse.processing.org/t/problems-with-exporting-to-svg/31950)

<div class="topic-metadata">

**Author:** [@liogra](https://discourse.processing.org/u/liogra)\
**Replies:** 4\
**Last updated:** [August 26, 2021, 4:00pm UTC](https://discourse.processing.org/t/problems-with-exporting-to-svg/31950 "2021-08-26T16:00:37Z")

</div>

Quite new to processing so might be overlooking something. I’m trying to export the following as SVG. but it hangs at the for statements. also tried without screen display but that is also not working. PImage img; impo…

---

## [RPi, camera module and face detection – possible?](https://discourse.processing.org/t/rpi-camera-module-and-face-detection-possible/31917)

<div class="topic-metadata">

**Author:** [@figle](https://discourse.processing.org/u/figle)\
**Replies:** 5\
**Last updated:** [August 26, 2021, 2:06pm UTC](https://discourse.processing.org/t/rpi-camera-module-and-face-detection-possible/31917 "2021-08-26T14:06:01Z")

</div>

Hello, I just started out playing with Processing on macOS but ultimately I’d like to use Raspberry Pi for a bunch of potential projects. One idea is to use a camera module and face detection to drive visualisations bea…

---

## [Game control plus bluetooth controller](https://discourse.processing.org/t/game-control-plus-bluetooth-controller/5268)

<div class="topic-metadata">

**Author:** [@Whahahahaha](https://discourse.processing.org/u/Whahahahaha)\
**Replies:** 10\
**Last updated:** [August 26, 2021, 11:30am UTC](https://discourse.processing.org/t/game-control-plus-bluetooth-controller/5268 "2021-08-26T11:30:59Z")

</div>

@quark, sorry to bother you… I was wondering if it were possible to connect a bluetooth controller to processing with the game control plus library. I have a playstation 4 2nd gen controller which can connect to my lap…

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

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