# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&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

---

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

---

## [I can't apply textures to custom PShapes](https://discourse.processing.org/t/i-cant-apply-textures-to-custom-pshapes/31863)

<div class="topic-metadata">

**Author:** [@Math\_Machine](https://discourse.processing.org/u/Math_Machine)\
**Replies:** 2\
**Last updated:** [August 23, 2021, 6:08pm UTC](https://discourse.processing.org/t/i-cant-apply-textures-to-custom-pshapes/31863 "2021-08-23T18:08:08Z")

</div>

TLDR: Can you apply a texture spherically to an arbitrary instance of PShape? So, I’ve been writing code to make a solar system model. Recently, I added in Mars’s moons, Phobos and Deimos. Which, unlike everything els…

---

## [Can't use debug, getting a nullponter exception on empty sketches](https://discourse.processing.org/t/cant-use-debug-getting-a-nullponter-exception-on-empty-sketches/31837)

<div class="topic-metadata">

**Author:** [@starplayer](https://discourse.processing.org/u/starplayer)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 5:58pm UTC](https://discourse.processing.org/t/cant-use-debug-getting-a-nullponter-exception-on-empty-sketches/31837 "2021-08-23T17:58:59Z")

</div>

Hey guys. I’ve just installed processing 4.0b1. I can run sketches and all, but with debug turned on, I get the following error, even on an empty sketch: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerExce…

---

## [Pixelation on my sketches](https://discourse.processing.org/t/pixelation-on-my-sketches/31862)

<div class="topic-metadata">

**Author:** [@Tito\_Long](https://discourse.processing.org/u/Tito_Long)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 3:05pm UTC](https://discourse.processing.org/t/pixelation-on-my-sketches/31862 "2021-08-23T15:05:05Z")

</div>

Hi There, total beginner to processing! I’ve been playing around with the program and all of a sudden my sketches have become pixelated when I preview them (please see screenshot attached). I’m using the exact same code…

---

## [How to increase the regularity of the scrolling of the frames? How to have them with a precision of a perfect clock?](https://discourse.processing.org/t/how-to-increase-the-regularity-of-the-scrolling-of-the-frames-how-to-have-them-with-a-precision-of-a-perfect-clock/31790)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 5\
**Last updated:** [August 23, 2021, 10:42am UTC](https://discourse.processing.org/t/how-to-increase-the-regularity-of-the-scrolling-of-the-frames-how-to-have-them-with-a-precision-of-a-perfect-clock/31790 "2021-08-23T10:42:39Z")

</div>

Hello everybody, I’m trying to make music by trigging note each time I made a rotation. To rise up in precision, I rise the frameRatio to 90. But it doesn’t change the regularity of note’s trigging. I have a program c…

---

## [Move triangle up and down using 'w' and 's' keys](https://discourse.processing.org/t/move-triangle-up-and-down-using-w-and-s-keys/31855)

<div class="topic-metadata">

**Author:** [@NewCoder1](https://discourse.processing.org/u/NewCoder1)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 10:21am UTC](https://discourse.processing.org/t/move-triangle-up-and-down-using-w-and-s-keys/31855 "2021-08-23T10:21:18Z")

</div>

Hey I need help with moving my triangle up and down using the ‘w’ and ‘s’ keys. I’ve tried many different types of codes such as using keyPressed, etc but it hasn’t worked out for me. This is what I have at the moment s…

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

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