# Latest

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

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

**Page:** 199

---

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

---

## [Canvas.parent() with Multiple HTML files](https://discourse.processing.org/t/canvas-parent-with-multiple-html-files/31892)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 3\
**Last updated:** [August 26, 2021, 12:31am UTC](https://discourse.processing.org/t/canvas-parent-with-multiple-html-files/31892 "2021-08-26T00:31:12Z")

</div>

Hello all! I’m sure this is a simple question but I’m having some trouble finding the answer. I have a website I am designing that has multiple HTML pages. The main page is a standard “index.html” file and the subseque…

---

## [Combine 2 projects](https://discourse.processing.org/t/combine-2-projects/31921)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 1\
**Last updated:** [August 25, 2021, 10:20pm UTC](https://discourse.processing.org/t/combine-2-projects/31921 "2021-08-25T22:20:04Z")

</div>

Hey, What is the best way to combine 2 projects together? The two of them are in the same screen size (full), and I want to make 1 project that the user can select which project to watch and the go back to the other on…

---

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

---

## [Writing out to PImage or PGraphics in shader](https://discourse.processing.org/t/writing-out-to-pimage-or-pgraphics-in-shader/31893)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [August 24, 2021, 5:26pm UTC](https://discourse.processing.org/t/writing-out-to-pimage-or-pgraphics-in-shader/31893 "2021-08-24T17:26:27Z")

</div>

I’m not sure this is doable, or at least I know this is doable but perhaps not the way I want. I understand that there is a layout variable we can use to write out to a buffer. layout(location = 0) out vec4 out\_color; …

---

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

---

## [Mirroring lists for symmetrical images](https://discourse.processing.org/t/mirroring-lists-for-symmetrical-images/31844)

<div class="topic-metadata">

**Author:** [@LindowMan](https://discourse.processing.org/u/LindowMan)\
**Replies:** 2\
**Last updated:** [August 25, 2021, 8:18am UTC](https://discourse.processing.org/t/mirroring-lists-for-symmetrical-images/31844 "2021-08-25T08:18:28Z")

</div>

Hi! I am working on a sketch to generate symmetrical patterns consisting of 4 parts. Right now I am just using random values for testing. The way it works is that I generate an initial list of lists of random values. Ea…

---

## [Why loadVideo() is not available?](https://discourse.processing.org/t/why-loadvideo-is-not-available/31622)

<div class="topic-metadata">

**Author:** [@matsuda](https://discourse.processing.org/u/matsuda)\
**Replies:** 6\
**Last updated:** [August 25, 2021, 2:51am UTC](https://discourse.processing.org/t/why-loadvideo-is-not-available/31622 "2021-08-25T02:51:57Z")

</div>

Hi there We can deal with an image using loadImage() and also using createImg(). However, in case of video, we can use createVideo() but “loadVideo()” is not available. It seems to be inconsistent. Is there any reas…

---

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

---

## [Py5 Thonny plug-in](https://discourse.processing.org/t/py5-thonny-plug-in/31902)

<div class="topic-metadata">

**Author:** [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Replies:** 0\
**Last updated:** [August 24, 2021, 11:01pm UTC](https://discourse.processing.org/t/py5-thonny-plug-in/31902 "2021-08-24T23:01:06Z")

</div>

If you’re keen to explore py5 as a Python-based Processing alternative, then the Thonny IDE is a great way to do so. I’ve created a plug-in to simplify the setup involved. Here’s the GitHub repo with the installation ste…

---

## [Pinewood Derby Car Center-of-Gravity Visualization](https://discourse.processing.org/t/pinewood-derby-car-center-of-gravity-visualization/31898)

<div class="topic-metadata">

**Author:** [@BillV](https://discourse.processing.org/u/BillV)\
**Replies:** 0\
**Last updated:** [August 24, 2021, 8:26pm UTC](https://discourse.processing.org/t/pinewood-derby-car-center-of-gravity-visualization/31898 "2021-08-24T20:26:32Z")

</div>

This sketch was written to provide a visual aid to graphically demonstrate the effect on the center-of-gravity (CG) of a pinewood derby car by the car’s wheelbase (axle separation) and weight distribution between the fro…

---

## [Hot Wheels Electronic Finish Line with Arduino and Sensors](https://discourse.processing.org/t/hot-wheels-electronic-finish-line-with-arduino-and-sensors/21787)

<div class="topic-metadata">

**Author:** [@tomjuggler](https://discourse.processing.org/u/tomjuggler)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 8:11pm UTC](https://discourse.processing.org/t/hot-wheels-electronic-finish-line-with-arduino-and-sensors/21787 "2021-08-24T20:11:57Z")

</div>

I made a Hot Wheels car finish line for my son. Naturally the Arduino controlled sensors needed to be connected to my Laptop running a Processing sketch. “Winner, Lane Two!” All code and circuit is included in the write…

---

## [Strange behaviour for bezier() in subpixel stroke weight](https://discourse.processing.org/t/strange-behaviour-for-bezier-in-subpixel-stroke-weight/31875)

<div class="topic-metadata">

**Author:** [@andreiantonescu](https://discourse.processing.org/u/andreiantonescu)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 5:15pm UTC](https://discourse.processing.org/t/strange-behaviour-for-bezier-in-subpixel-stroke-weight/31875 "2021-08-24T17:15:38Z")

</div>

Hello there. I’ve encountered some strange behaviour for bezier() when using subpixel (\<0.49) stroke weights. This seems to happen only on some curve configurations and only on Chrome: The curve on the top has a gl…

---

## [Gallery: Linear transformation visualiser](https://discourse.processing.org/t/gallery-linear-transformation-visualiser/31853)

<div class="topic-metadata">

**Author:** [@Ariadne](https://discourse.processing.org/u/Ariadne)\
**Replies:** 4\
**Last updated:** [August 24, 2021, 3:49pm UTC](https://discourse.processing.org/t/gallery-linear-transformation-visualiser/31853 "2021-08-24T15:49:23Z")

</div>

Recently, I was trying to create a 2D linear transformation visualiser to help one of my friends learn linear algebra. While I initially created it in Scratch 2.0 (my friend wasn’t familiar with any other programming lan…

---

## [Ml5: hands object in draw() is undefined](https://discourse.processing.org/t/ml5-hands-object-in-draw-is-undefined/31845)

<div class="topic-metadata">

**Author:** [@k5221](https://discourse.processing.org/u/k5221)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 3:35pm UTC](https://discourse.processing.org/t/ml5-hands-object-in-draw-is-undefined/31845 "2021-08-24T15:35:58Z")

</div>

I’m trying to incorporate a model to detect hands in the camera provided by ml5 into my work (a similar example is available here). The modelLoaded function is properly called, but I’m getting the error that ‘hands’ wit…

---

## [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 render LaTeX?](https://discourse.processing.org/t/how-to-render-latex/31841)

<div class="topic-metadata">

**Author:** [@Ariadne](https://discourse.processing.org/u/Ariadne)\
**Replies:** 4\
**Last updated:** [August 23, 2021, 2:40pm UTC](https://discourse.processing.org/t/how-to-render-latex/31841 "2021-08-23T14:40:10Z")

</div>

For a recent math visualizer I was programming, I needed to render LaTeX. I normally use Manim for such visualisations, but this time I decided to use p5.js. But it appears that there is no library to do this. What can …

---

## [Accessing sound in Android](https://discourse.processing.org/t/accessing-sound-in-android/31793)

<div class="topic-metadata">

**Author:** [@MPROCD](https://discourse.processing.org/u/MPROCD)\
**Replies:** 6\
**Last updated:** [August 23, 2021, 11:29am UTC](https://discourse.processing.org/t/accessing-sound-in-android/31793 "2021-08-23T11:29:58Z")

</div>

I am working on a control application using Android as compiled from a Processing sketch. I need to use the Android sound device, just to produce an alarm buzz sound. Any idea how to access this device? Thanks

---

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

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

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