# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=116

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

**Page:** 117

---

## [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(); }

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Problem with translate() in class when using arraylist](https://discourse.processing.org/t/problem-with-translate-in-class-when-using-arraylist/31732)

<div class="topic-metadata">

**Author:** [@chaotic.rabbit](https://discourse.processing.org/u/chaotic.rabbit)\
**Replies:** 8\
**Last updated:** [August 26, 2021, 8:46am UTC](https://discourse.processing.org/t/problem-with-translate-in-class-when-using-arraylist/31732 "2021-08-26T08:46:41Z")

</div>

Hi, I really need help with this code. I’ve been trying to make infinite jellyfish appear from the bottom of the screen and move upwards until they disappear. For some reason after a while the jellyfish start appearing f…

---

## [‘Seek operation failed’ error after updating processing](https://discourse.processing.org/t/seek-operation-failed-error-after-updating-processing/31942)

<div class="topic-metadata">

**Author:** [@eda](https://discourse.processing.org/u/eda)\
**Replies:** 0\
**Last updated:** [August 26, 2021, 8:35am UTC](https://discourse.processing.org/t/seek-operation-failed-error-after-updating-processing/31942 "2021-08-26T08:35:13Z")

</div>

Hello I have written an easy code that loops a video. I have no issues on Processing 3. But I recently updated to the new Processing 4 and the code only plays out the video once and stops. Below I get the ‘Seek operation…

---

## [Looking for Tutorial to make library of various functions](https://discourse.processing.org/t/looking-for-tutorial-to-make-library-of-various-functions/7380)

<div class="topic-metadata">

**Author:** [@fabwoj](https://discourse.processing.org/u/fabwoj)\
**Replies:** 23\
**Last updated:** [August 26, 2021, 8:35am UTC](https://discourse.processing.org/t/looking-for-tutorial-to-make-library-of-various-functions/7380 "2021-08-26T08:35:46Z")

</div>

Hi there, I would like to learn how to make a simple java library containing various functions usable in Processing. A simple jar file that I put in a sketchbook directory called code … Does a tutorial exist somewhere…

---

## [Controlling drawing speed](https://discourse.processing.org/t/controlling-drawing-speed/31929)

<div class="topic-metadata">

**Author:** [@mews](https://discourse.processing.org/u/mews)\
**Replies:** 2\
**Last updated:** [August 26, 2021, 1:13am UTC](https://discourse.processing.org/t/controlling-drawing-speed/31929 "2021-08-26T01:13:04Z")

</div>

Hi Folks, I’m having a bit of an issue which I feel is probably simple but I’m just not getting it. I’m trying to make a simple Missile Control clone where missiles are drawn via a basic line drawing algorithm. They com…

---

## [Problem with the Sound library](https://discourse.processing.org/t/problem-with-the-sound-library/25920)

<div class="topic-metadata">

**Author:** [@Electronix](https://discourse.processing.org/u/Electronix)\
**Replies:** 4\
**Last updated:** [August 24, 2021, 3:25pm UTC](https://discourse.processing.org/t/problem-with-the-sound-library/25920 "2021-08-24T15:25:43Z")

</div>

Hi everyone, I use usually Minim library in Java mode but Minim don’t work in Android mode. So I would like to use the Sound library because It looks like Sound works with Java and Android. To begin with Sound I first…

---

## [How to do the same as "uint16\_t read\_data\[8192\];" in Processing?](https://discourse.processing.org/t/how-to-do-the-same-as-uint16-t-read-data-8192-in-processing/31891)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 24\
**Last updated:** [August 25, 2021, 3:29pm UTC](https://discourse.processing.org/t/how-to-do-the-same-as-uint16-t-read-data-8192-in-processing/31891 "2021-08-25T15:29:42Z")

</div>

As the title says, How to do the same as “uint16\_t read\_data\[8192\];” in processing? Thank you in advance for your answers. João

---

## [How to assign random colors to multiple objects](https://discourse.processing.org/t/how-to-assign-random-colors-to-multiple-objects/31919)

<div class="topic-metadata">

**Author:** [@jimjimmer](https://discourse.processing.org/u/jimjimmer)\
**Replies:** 3\
**Last updated:** [August 25, 2021, 1:33pm UTC](https://discourse.processing.org/t/how-to-assign-random-colors-to-multiple-objects/31919 "2021-08-25T13:33:38Z")

</div>

I’m trying to write a code which draws a circle at each of a series of coordinates given from a csv file. I want to give each circle a random color but my code at present gives the same color to all the circles. How ca…

---

## [How to combine mouse history code and mouseXY-based rotation code](https://discourse.processing.org/t/how-to-combine-mouse-history-code-and-mousexy-based-rotation-code/31910)

<div class="topic-metadata">

**Author:** [@wwoni](https://discourse.processing.org/u/wwoni)\
**Replies:** 0\
**Last updated:** [August 25, 2021, 4:43am UTC](https://discourse.processing.org/t/how-to-combine-mouse-history-code-and-mousexy-based-rotation-code/31910 "2021-08-25T04:43:03Z")

</div>

Hello, I am a self-taught student. I’d like to combine the mouse history code and mouse rotation code below. But when I put it together, the larger the x- and y-coordinates of the mousexy, the farther away the object i…

---

## [How to use Uniform in PixelFlow library](https://discourse.processing.org/t/how-to-use-uniform-in-pixelflow-library/31895)

<div class="topic-metadata">

**Author:** [@Riemo](https://discourse.processing.org/u/Riemo)\
**Replies:** 0\
**Last updated:** [August 24, 2021, 7:16pm UTC](https://discourse.processing.org/t/how-to-use-uniform-in-pixelflow-library/31895 "2021-08-24T19:16:53Z")

</div>

Hi I’m studying Processing library “PixelFlow”. I want send Int variable to fragment shader. How to send variable from Processing to fragmet Shader. I’m using “Fluid\_StreamLines\_CustomRender” example in “Processing Ex…

---

## [Processing Sketch to auto launch not happening (cron, launchd, nor exported sketch)](https://discourse.processing.org/t/processing-sketch-to-auto-launch-not-happening-cron-launchd-nor-exported-sketch/31867)

<div class="topic-metadata">

**Author:** [@LadyK](https://discourse.processing.org/u/LadyK)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 10:25pm UTC](https://discourse.processing.org/t/processing-sketch-to-auto-launch-not-happening-cron-launchd-nor-exported-sketch/31867 "2021-08-23T22:25:31Z")

</div>

Hello, I’m trying to have a Processing sketch launch automatically for installation purposes. I’m using a M1 Mac Mini OS 11.3.1 I have a bash script that runs successfully from the command line (ie, the sketch launche…

---

## ["Welcome to Processing 4" window always launches](https://discourse.processing.org/t/welcome-to-processing-4-window-always-launches/31865)

<div class="topic-metadata">

**Author:** [@LadyK](https://discourse.processing.org/u/LadyK)\
**Replies:** 4\
**Last updated:** [August 23, 2021, 10:00pm UTC](https://discourse.processing.org/t/welcome-to-processing-4-window-always-launches/31865 "2021-08-23T22:00:04Z")

</div>

Hello, First off, congrats on Processing 4! It looks great! Yet, once the application launches, there is no way to stop the launch of the “Welcome to Processing 4” window, despite the tiny check box on the bottom not b…

---

## [Rotate and move java processing](https://discourse.processing.org/t/rotate-and-move-java-processing/31773)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 8\
**Last updated:** [August 23, 2021, 8:14pm UTC](https://discourse.processing.org/t/rotate-and-move-java-processing/31773 "2021-08-23T20:14:02Z")

</div>

I’m trying to make a space invaders game, but when I rotate I’m getting weird results. First it moving up like I want it to but when i rotate it starts moving sideways or even backwards. Can someone explain why it wont f…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=115)

[Next page](https://discourse.processing.org/c/processing/6.md?page=117)
