# Latest

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

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

**Page:** 155

---

## [Adding Functionality to Extended Code Completion](https://discourse.processing.org/t/adding-functionality-to-extended-code-completion/32962)

<div class="topic-metadata">

**Author:** [@MundaneMonkeys](https://discourse.processing.org/u/MundaneMonkeys)\
**Replies:** 2\
**Last updated:** [October 21, 2021, 2:57pm UTC](https://discourse.processing.org/t/adding-functionality-to-extended-code-completion/32962 "2021-10-21T14:57:20Z")

</div>

Hello! As a learning exercise, I was exploring Jonathan Dahlberg’s Extended Code Completion. I changed it to read a .json file to allow users to add their own macros. I think it is stable enough and useful enough to w…

---

## [How to export frames as layers to an ico file](https://discourse.processing.org/t/how-to-export-frames-as-layers-to-an-ico-file/35448)

<div class="topic-metadata">

**Author:** [@Fred-Sheppard](https://discourse.processing.org/u/Fred-Sheppard)\
**Replies:** 0\
**Last updated:** [February 25, 2022, 7:57pm UTC](https://discourse.processing.org/t/how-to-export-frames-as-layers-to-an-ico-file/35448 "2022-02-25T19:57:54Z")

</div>

I want to be able to export the processing window across several frames, using saveFrames() or similar, to a single ico file with one layer per frame. It might work similar to the code shown. PImage img; void setup() {…

---

## [AWT Components in Default Processing Window](https://discourse.processing.org/t/awt-components-in-default-processing-window/35401)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 8\
**Last updated:** [February 25, 2022, 4:29pm UTC](https://discourse.processing.org/t/awt-components-in-default-processing-window/35401 "2022-02-25T16:29:16Z")

</div>

With a little help from a StackOverflow thread we are able to get the frame for Processing’s default window (https://stackoverflow.com/questions/39107750/java-and-processing-3-0-frame-class-deprecated-is-there-an-alterna…

---

## [How to make a variable decrease then increase when it reaches a point](https://discourse.processing.org/t/how-to-make-a-variable-decrease-then-increase-when-it-reaches-a-point/35442)

<div class="topic-metadata">

**Author:** [@adora](https://discourse.processing.org/u/adora)\
**Replies:** 2\
**Last updated:** [February 25, 2022, 12:53pm UTC](https://discourse.processing.org/t/how-to-make-a-variable-decrease-then-increase-when-it-reaches-a-point/35442 "2022-02-25T12:53:22Z")

</div>

So I have my variable x and I want it to keep on decreasing until it reaches 10 and then start increasing to 50 then go back to 10 and keep on repeating (e.g. 12, 11, 10, 11, 12, 13, …, 49, 50, 49, 48, …, 11, 10). This …

---

## [Duplicate class Error thrown with ShortMessage library on Android mode](https://discourse.processing.org/t/duplicate-class-error-thrown-with-shortmessage-library-on-android-mode/35443)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 0\
**Last updated:** [February 25, 2022, 11:36am UTC](https://discourse.processing.org/t/duplicate-class-error-thrown-with-shortmessage-library-on-android-mode/35443 "2022-02-25T11:36:29Z")

</div>

I’m running Processing v3.5.4 on Windows10. I’ve downloaded the package from: C:\\Users\\home\\Documents\\Processing\\libraries\\ShortMessage I added the library ShortMessage from the default list. I can run the sample code R…

---

## [¿Cómo rotar Colores?](https://discourse.processing.org/t/como-rotar-colores/35383)

<div class="topic-metadata">

**Author:** [@juan\_esteban](https://discourse.processing.org/u/juan_esteban)\
**Replies:** 4\
**Last updated:** [February 25, 2022, 10:50am UTC](https://discourse.processing.org/t/como-rotar-colores/35383 "2022-02-25T10:50:40Z")

</div>

Alguien me puede colaborar con este codigo ¿Qué tengo de malo? face\_with\_head\_bandage: Cada vez que se de clic Izquierdo en cualquiera de los cinco círculos, los colores de los círculo rotan una posición a la…

---

## ["no content type found for .mp3" error](https://discourse.processing.org/t/no-content-type-found-for-mp3-error/35343)

<div class="topic-metadata">

**Author:** [@heurihermilab](https://discourse.processing.org/u/heurihermilab)\
**Replies:** 11\
**Last updated:** [February 24, 2022, 9:36pm UTC](https://discourse.processing.org/t/no-content-type-found-for-mp3-error/35343 "2022-02-24T21:36:00Z")

</div>

Howdy all, I’m trying to work with the example at reference | p5.js but clicking on the canvas to start/pause the audio inexplicably only works once for each state the sketch only executes once, thereafter failing…

---

## [Problem with displaying other players](https://discourse.processing.org/t/problem-with-displaying-other-players/35425)

<div class="topic-metadata">

**Author:** [@IZFvhbadfso](https://discourse.processing.org/u/IZFvhbadfso)\
**Replies:** 1\
**Last updated:** [February 24, 2022, 5:22pm UTC](https://discourse.processing.org/t/problem-with-displaying-other-players/35425 "2022-02-24T17:22:25Z")

</div>

I’m currently programming a simple game to test out p5.js where you fly around in space, there is a bunch of earths, and now I tried to add multiplayer with node.js, but I have a problem with displaying the other player…

---

## [Automatic calendar](https://discourse.processing.org/t/automatic-calendar/35412)

<div class="topic-metadata">

**Author:** [@Malleat](https://discourse.processing.org/u/Malleat)\
**Replies:** 2\
**Last updated:** [February 24, 2022, 1:41pm UTC](https://discourse.processing.org/t/automatic-calendar/35412 "2022-02-24T13:41:48Z")

</div>

Hello everyone ! I want to create an interractive calendar for my projects, with the years / month / day and weeks number. Like i will use the excel librairy to set up every dates, and target dates, then it will automa…

---

## [Need help with really old code](https://discourse.processing.org/t/need-help-with-really-old-code/35248)

<div class="topic-metadata">

**Author:** [@lois](https://discourse.processing.org/u/lois)\
**Replies:** 5\
**Last updated:** [February 24, 2022, 1:27pm UTC](https://discourse.processing.org/t/need-help-with-really-old-code/35248 "2022-02-24T13:27:48Z")

</div>

Hello, I need to transition code in Processing 1.5.1 running on Solaris to a current version running on Linux. I am new to Processing but I have years of programming experience in other languages. At the moment I am …

---

## [Multi-output audio interface?](https://discourse.processing.org/t/multi-output-audio-interface/34873)

<div class="topic-metadata">

**Author:** [@fastfourier](https://discourse.processing.org/u/fastfourier)\
**Replies:** 17\
**Last updated:** [February 23, 2022, 10:33pm UTC](https://discourse.processing.org/t/multi-output-audio-interface/34873 "2022-02-23T22:33:02Z")

</div>

Hi all, I would like to use a certain output (or output pair) on the sound card. Sound.list() reports that my device has 14 “max inputs” and 14 “max outputs” which is correct, but I see no way to access them. All sound…

---

## [Texture as data in shader has odd behavior](https://discourse.processing.org/t/texture-as-data-in-shader-has-odd-behavior/33197)

<div class="topic-metadata">

**Author:** [@altitudinem](https://discourse.processing.org/u/altitudinem)\
**Replies:** 18\
**Last updated:** [February 23, 2022, 8:20pm UTC](https://discourse.processing.org/t/texture-as-data-in-shader-has-odd-behavior/33197 "2022-02-23T20:20:17Z")

</div>

Dear community, I’m learning how to use a shader, especially within p5js. I’ve learned from this post how to pass a set of data as a texture and use it in the shader program. I appreciate that @hamoid and @myselfhims…

---

## [Testing equality of vectors in a 2 dimensional array](https://discourse.processing.org/t/testing-equality-of-vectors-in-a-2-dimensional-array/35389)

<div class="topic-metadata">

**Author:** [@arathorn76](https://discourse.processing.org/u/arathorn76)\
**Replies:** 5\
**Last updated:** [February 23, 2022, 7:23pm UTC](https://discourse.processing.org/t/testing-equality-of-vectors-in-a-2-dimensional-array/35389 "2022-02-23T19:23:53Z")

</div>

Hello together, I have a problem testing equality of one line of a 2D array against a possible new line. My goal is to add a new line only if a line with the same elements does not yet exist. To achieve this I wrote t…

---

## [How to add math.js to the p5js editor on browser](https://discourse.processing.org/t/how-to-add-math-js-to-the-p5js-editor-on-browser/35390)

<div class="topic-metadata">

**Author:** [@TheSynchronomicon](https://discourse.processing.org/u/TheSynchronomicon)\
**Replies:** 3\
**Last updated:** [February 23, 2022, 4:23pm UTC](https://discourse.processing.org/t/how-to-add-math-js-to-the-p5js-editor-on-browser/35390 "2022-02-23T16:23:08Z")

</div>

I need to use math.js to solve a system of equations but I honestly have no clue on how to add the math.js library to the browser editor for p5js. I have already tried creating a new sketch file and copying over the html…

---

## [Erasmus. Looking for host Institution](https://discourse.processing.org/t/erasmus-looking-for-host-institution/35395)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 4:01pm UTC](https://discourse.processing.org/t/erasmus-looking-for-host-institution/35395 "2022-02-23T16:01:58Z")

</div>

HI All, I am looking for any higher education institutions located in EU where you know there is some interest in Processing, and which could host students and/or teachers in a learning mobility project under the Europe…

---

## [Need Help On NDS Emulators](https://discourse.processing.org/t/need-help-on-nds-emulators/35380)

<div class="topic-metadata">

**Author:** [@Edwardmarroquin](https://discourse.processing.org/u/Edwardmarroquin)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 9:47am UTC](https://discourse.processing.org/t/need-help-on-nds-emulators/35380 "2022-02-23T09:47:35Z")

</div>

Hi, everyone. I am posting this for a need. For a couple of days, I am looking for some programs of NDS emulators or just emulators. Can you provide any suggestions in this regard?

---

## [JFrame\_example\_](https://discourse.processing.org/t/jframe-example/35370)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [February 22, 2022, 4:40am UTC](https://discourse.processing.org/t/jframe-example/35370 "2022-02-22T04:40:13Z")

</div>

Before I waste too much time on this, would someone please remind me why this is a bad idea and shouldn’t be pursued. Other than the fact that I have two windows (one of which I didn’t ask for) it seems to work ok. Act…

---

## [Need some help with translate() and rotate()](https://discourse.processing.org/t/need-some-help-with-translate-and-rotate/35372)

<div class="topic-metadata">

**Author:** [@adora](https://discourse.processing.org/u/adora)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 9:21pm UTC](https://discourse.processing.org/t/need-some-help-with-translate-and-rotate/35372 "2022-02-22T21:21:59Z")

</div>

Hi, so for my code, I want the heart shape to continuously rotate 360 degrees while keeping its position in the center of the screen. Currently, however, it rotates around the screen for some reason. How can I make it st…

---

## [Sphere-Sphere Intersect](https://discourse.processing.org/t/sphere-sphere-intersect/35364)

<div class="topic-metadata">

**Author:** [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 5:41pm UTC](https://discourse.processing.org/t/sphere-sphere-intersect/35364 "2022-02-22T17:41:31Z")

</div>

When two spheres overlap in 3D, they create a circle, where they intersect. I would like to be able to create a (random) point on this circle. Here is what I have so far: Axis a through the center of the circle (long b…

---

## [Image movement management - Donkey Kong Game](https://discourse.processing.org/t/image-movement-management-donkey-kong-game/35374)

<div class="topic-metadata">

**Author:** [@cisky](https://discourse.processing.org/u/cisky)\
**Replies:** 1\
**Last updated:** [February 22, 2022, 11:50am UTC](https://discourse.processing.org/t/image-movement-management-donkey-kong-game/35374 "2022-02-22T11:50:20Z")

</div>

please format code with \</\> button \* homework policy \* asking questions We need help with the image movement management of a Mario image in our game (see how it’s managed in this game freekong org). We don’t know how…

---

## [Abort loadSound()](https://discourse.processing.org/t/abort-loadsound/35377)

<div class="topic-metadata">

**Author:** [@Lerudan](https://discourse.processing.org/u/Lerudan)\
**Replies:** 0\
**Last updated:** [February 22, 2022, 10:02am UTC](https://discourse.processing.org/t/abort-loadsound/35377 "2022-02-22T10:02:20Z")

</div>

I’m building a little applet with audio-files. Each level starts with loading an audiofile. I also use the history api of the browser, to give each level a usable URL. Now if a user changes the history state, while loa…

---

## [Duplicate Curves](https://discourse.processing.org/t/duplicate-curves/35366)

<div class="topic-metadata">

**Author:** [@jmankoff](https://discourse.processing.org/u/jmankoff)\
**Replies:** 4\
**Last updated:** [February 22, 2022, 4:55am UTC](https://discourse.processing.org/t/duplicate-curves/35366 "2022-02-22T04:55:55Z")

</div>

Hi, I’m trying to generate an SVG with bezier curves in it from processing. However, when I open the resulting SVG in illustrator, there are duplicates of every curve – one with no fill but a line, and one with no line,…

---

## [GL.getExtension ('OES\_standard\_derivatives');](https://discourse.processing.org/t/gl-getextension-oes-standard-derivatives/29854)

<div class="topic-metadata">

**Author:** [@BigBigRed](https://discourse.processing.org/u/BigBigRed)\
**Replies:** 6\
**Last updated:** [February 22, 2022, 3:11am UTC](https://discourse.processing.org/t/gl-getextension-oes-standard-derivatives/29854 "2022-02-22T03:11:19Z")

</div>

I am trying to work with some code that someone else did. my p5js sketch is hanging/ crashing at the line ‘vec3 normal = vec3(-dFdx(f), -dFdy(f), 0.5) + 0.5;’. My diagnostic efforts lead me to think that the call to ‘dF…

---

## [Collision detection for player sprite and platforms sprites](https://discourse.processing.org/t/collision-detection-for-player-sprite-and-platforms-sprites/35363)

<div class="topic-metadata">

**Author:** [@RafaDuarte](https://discourse.processing.org/u/RafaDuarte)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 10:13pm UTC](https://discourse.processing.org/t/collision-detection-for-player-sprite-and-platforms-sprites/35363 "2022-02-21T22:13:56Z")

</div>

I have read some topics here on the Processing forum and watched some videos on YouTube towards collision detection in simple games, however most of them are centred in drawings made on Processing itself, such as circles…

---

## [Take triangle from image onto display](https://discourse.processing.org/t/take-triangle-from-image-onto-display/35281)

<div class="topic-metadata">

**Author:** [@Sekoia](https://discourse.processing.org/u/Sekoia)\
**Replies:** 10\
**Last updated:** [February 21, 2022, 9:48pm UTC](https://discourse.processing.org/t/take-triangle-from-image-onto-display/35281 "2022-02-21T21:48:46Z")

</div>

Hey all, I’m trying to merge two images in a marching squares shape. In some cases, that would mean I need to extract a triangle from one of the images (a small rectangular isoceles triangle). I did find How to copy a t…

---

## [Initializing multiple timers within the draw loop ()](https://discourse.processing.org/t/initializing-multiple-timers-within-the-draw-loop/35335)

<div class="topic-metadata">

**Author:** [@basicvisual](https://discourse.processing.org/u/basicvisual)\
**Replies:** 10\
**Last updated:** [February 21, 2022, 9:45pm UTC](https://discourse.processing.org/t/initializing-multiple-timers-within-the-draw-loop/35335 "2022-02-21T21:45:45Z")

</div>

Hello , I am trying to understand the concept of timers in p5js. If i understand , there is no way to initialize two timers in the draw loop. I was using the millis function to take the note of time. For example in the …

---

## [Need some help with cursor interaction with objects](https://discourse.processing.org/t/need-some-help-with-cursor-interaction-with-objects/35357)

<div class="topic-metadata">

**Author:** [@adora](https://discourse.processing.org/u/adora)\
**Replies:** 2\
**Last updated:** [February 21, 2022, 4:33pm UTC](https://discourse.processing.org/t/need-some-help-with-cursor-interaction-with-objects/35357 "2022-02-21T16:33:12Z")

</div>

Basically, I want to code something where when the cursor hovers over a circle shape, another shape (the heart) will rotate smoothly and change colours until the circle changes position. The aim of it is for you to keep …

---

## [    This is the code that I have written so far. When the mouse is clicked, objects will appear but I want the program structured, in which if the mouse is pressed again on an object, the object will delete.           ](https://discourse.processing.org/t/this-is-the-code-that-i-have-written-so-far-when-the-mouse-is-clicked-objects-will-appear-but-i-want-the-program-structured-in-which-if-the-mouse-is-pressed-again-on-an-object-the-object-will-delete/35348)

<div class="topic-metadata">

**Author:** [@erijgeirg](https://discourse.processing.org/u/erijgeirg)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 6:18am UTC](https://discourse.processing.org/t/this-is-the-code-that-i-have-written-so-far-when-the-mouse-is-clicked-objects-will-appear-but-i-want-the-program-structured-in-which-if-the-mouse-is-pressed-again-on-an-object-the-object-will-delete/35348 "2022-02-21T06:18:30Z")

</div>

public class circle { float x, y; int circleShape; public circle(float x, float y) { this.x = x; this.y = y; circleShape = floor(random(3)); } public void drawcircle() { if (circleShape == 0) { circle1();} } p…

---

## [Keyboard detection](https://discourse.processing.org/t/keyboard-detection/35346)

<div class="topic-metadata">

**Author:** [@Sikorsky](https://discourse.processing.org/u/Sikorsky)\
**Replies:** 0\
**Last updated:** [February 21, 2022, 12:46am UTC](https://discourse.processing.org/t/keyboard-detection/35346 "2022-02-21T00:46:24Z")

</div>

Hi mates! Is there a way to detect that status of the virtual keyboard? I use a variable to control the status of the keyboard, but if I close the keyboard with the keyboard button then it does not trigger an event and…

---

## [Problem with reading a html file](https://discourse.processing.org/t/problem-with-reading-a-html-file/32277)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 2\
**Last updated:** [February 20, 2022, 8:27pm UTC](https://discourse.processing.org/t/problem-with-reading-a-html-file/32277 "2022-02-20T20:27:44Z")

</div>

Hey, I want to write a class with which you can get a certain element from a website. For example give the class a link and an xpath and as result I want a string with the code of the element. link:Ludmilla von Böhmen…

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

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