# Latest

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

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

**Page:** 47

---

## [Improving the accuracy of a neural network for digit recognition](https://discourse.processing.org/t/improving-the-accuracy-of-a-neural-network-for-digit-recognition/22139)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [March 4, 2024, 4:02pm UTC](https://discourse.processing.org/t/improving-the-accuracy-of-a-neural-network-for-digit-recognition/22139 "2024-03-04T16:02:32Z")

</div>

I’m attempting to code a neural network to recognise handwritten characters currently using the mnist digit database. I’m specifically using a lower 14x14 resolution. I created a new neural network which is initialised …

---

## [Add files/folders during export](https://discourse.processing.org/t/add-files-folders-during-export/44022)

<div class="topic-metadata">

**Author:** [@bananana](https://discourse.processing.org/u/bananana)\
**Replies:** 1\
**Last updated:** [March 4, 2024, 1:34pm UTC](https://discourse.processing.org/t/add-files-folders-during-export/44022 "2024-03-04T13:34:00Z")

</div>

I maintain a Processing library that requires some specific .dll/.dylib/.so files that I include with the library when it is downloaded. When a sketch that includes my library, how can have these folders copied into the…

---

## [Flip (flop?) texture in a 3d .obj loaded. (java)](https://discourse.processing.org/t/flip-flop-texture-in-a-3d-obj-loaded-java/44023)

<div class="topic-metadata">

**Author:** [@vkbr](https://discourse.processing.org/u/vkbr)\
**Replies:** 1\
**Last updated:** [March 4, 2024, 12:33am UTC](https://discourse.processing.org/t/flip-flop-texture-in-a-3d-obj-loaded-java/44023 "2024-03-04T00:33:04Z")

</div>

Hello everyone. long time no see… : ) I.m loading an file.obj but the texture is flipped or flopped, not sure. Can I flip it? I’m using the example code for loading shapes so far. The model has this files: so the…

---

## [SD Plotter DB® version 2.31 — Program for automation and data recorder via Arduino and developed in Processing 4](https://discourse.processing.org/t/sd-plotter-db-version-2-31-program-for-automation-and-data-recorder-via-arduino-and-developed-in-processing-4/44020)

<div class="topic-metadata">

**Author:** [@Spidoug](https://discourse.processing.org/u/Spidoug)\
**Replies:** 0\
**Last updated:** [March 3, 2024, 4:24am UTC](https://discourse.processing.org/t/sd-plotter-db-version-2-31-program-for-automation-and-data-recorder-via-arduino-and-developed-in-processing-4/44020 "2024-03-03T04:24:56Z")

</div>

The software was developed for industrial automation, focusing on the management of a pilot plant for the chemical industry, but as the probe inputs are renameable and the parameters can be changed, there are countless p…

---

## [How do you make or do overlaps?](https://discourse.processing.org/t/how-do-you-make-or-do-overlaps/44010)

<div class="topic-metadata">

**Author:** [@QuWack-fan-Duck](https://discourse.processing.org/u/QuWack-fan-Duck)\
**Replies:** 2\
**Last updated:** [March 1, 2024, 3:52pm UTC](https://discourse.processing.org/t/how-do-you-make-or-do-overlaps/44010 "2024-03-01T15:52:00Z")

</div>

how can you create or do overlaps to make something happen

---

## [Timestretching sound clips](https://discourse.processing.org/t/timestretching-sound-clips/44008)

<div class="topic-metadata">

**Author:** [@larsh](https://discourse.processing.org/u/larsh)\
**Replies:** 3\
**Last updated:** [March 1, 2024, 12:36pm UTC](https://discourse.processing.org/t/timestretching-sound-clips/44008 "2024-03-01T12:36:12Z")

</div>

Hi all, I’m quite new to Processing and coding in general. I am developing a sketch where I want the user to be able to play the same sound clip at various speeds without altering the pitch - I believe this is called “ti…

---

## [How to import processing4-video into a java project?](https://discourse.processing.org/t/how-to-import-processing4-video-into-a-java-project/44004)

<div class="topic-metadata">

**Author:** [@kflak](https://discourse.processing.org/u/kflak)\
**Replies:** 6\
**Last updated:** [February 29, 2024, 1:31pm UTC](https://discourse.processing.org/t/how-to-import-processing4-video-into-a-java-project/44004 "2024-02-29T13:31:19Z")

</div>

Hi, I’m trying to get processing working within the context of a java project. So far I’ve succesfully managed to pull in processing-core using maven, but I’m struggling with processing-video. I am a total noob when it …

---

## [Maintaining same visual angle of stacked layers](https://discourse.processing.org/t/maintaining-same-visual-angle-of-stacked-layers/43995)

<div class="topic-metadata">

**Author:** [@travis.stdenis](https://discourse.processing.org/u/travis.stdenis)\
**Replies:** 7\
**Last updated:** [February 29, 2024, 5:35am UTC](https://discourse.processing.org/t/maintaining-same-visual-angle-of-stacked-layers/43995 "2024-02-29T05:35:20Z")

</div>

What I’m trying to achieve is cross-sections of a 3D noise cube. The look I’m going for is like this: But what I’m getting is more like this given the default perspective of the environment giving the conical perspec…

---

## [Choosing chronological order](https://discourse.processing.org/t/choosing-chronological-order/44000)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 2\
**Last updated:** [February 28, 2024, 2:28pm UTC](https://discourse.processing.org/t/choosing-chronological-order/44000 "2024-02-28T14:28:55Z")

</div>

I am creating an example of state-driven agent design using finite state machines. It will be part of a p5js / Javascript library for autonomous agents. The large table at the bottom is a logger showing state changes an…

---

## [How to visualise the "timeline" of a song](https://discourse.processing.org/t/how-to-visualise-the-timeline-of-a-song/43999)

<div class="topic-metadata">

**Author:** [@Irrlicht](https://discourse.processing.org/u/Irrlicht)\
**Replies:** 1\
**Last updated:** [February 27, 2024, 7:51pm UTC](https://discourse.processing.org/t/how-to-visualise-the-timeline-of-a-song/43999 "2024-02-27T19:51:30Z")

</div>

Hi, first post here, so I hop I won’t do anything wrong and if I do, please just tell me… (and english as a second language, so i try to explain what I have in mind…) So, I’m trying to visualise sound in a grid, by chan…

---

## [Saving images from drawing](https://discourse.processing.org/t/saving-images-from-drawing/43953)

<div class="topic-metadata">

**Author:** [@Kamel0](https://discourse.processing.org/u/Kamel0)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 11:08am UTC](https://discourse.processing.org/t/saving-images-from-drawing/43953 "2024-02-27T11:08:04Z")

</div>

Hello, Can you point me to an example of saving image(s)? I want to save an image or sequence of images of what is drawn using p5py. I assume this relates to using the offscreen buffer. Please clarify. Thanks!

---

## [Wrong line numbers in error messages when using .java files](https://discourse.processing.org/t/wrong-line-numbers-in-error-messages-when-using-java-files/43983)

<div class="topic-metadata">

**Author:** [@quirin](https://discourse.processing.org/u/quirin)\
**Replies:** 10\
**Last updated:** [February 26, 2024, 5:08pm UTC](https://discourse.processing.org/t/wrong-line-numbers-in-error-messages-when-using-java-files/43983 "2024-02-26T17:08:39Z")

</div>

My sketch contains two files: BrokenErrorMessage.pde, whose content is irrelevant, and SomeJavaCodeWithErrors.java:public class SomeJavaCodeWithErrors // line 1 { // line 2 public st…

---

## [Drag and dropping an image into a running sketch and reading its info](https://discourse.processing.org/t/drag-and-dropping-an-image-into-a-running-sketch-and-reading-its-info/43993)

<div class="topic-metadata">

**Author:** [@Sayoregg](https://discourse.processing.org/u/Sayoregg)\
**Replies:** 1\
**Last updated:** [February 26, 2024, 11:39am UTC](https://discourse.processing.org/t/drag-and-dropping-an-image-into-a-running-sketch-and-reading-its-info/43993 "2024-02-26T11:39:32Z")

</div>

I want to create a sketch where you can drag and drop an image into the window, which then sets the window size to that of the image and then draws the image in the center of the window. I already found how to dynamical…

---

## [New Library for Processing: FIP (Fast Image Processing)](https://discourse.processing.org/t/new-library-for-processing-fip-fast-image-processing/43908)

<div class="topic-metadata">

**Author:** [@prontopablo](https://discourse.processing.org/u/prontopablo)\
**Replies:** 4\
**Last updated:** [February 26, 2024, 2:58pm UTC](https://discourse.processing.org/t/new-library-for-processing-fip-fast-image-processing/43908 "2024-02-26T14:58:51Z")

</div>

FIP Hello all! I’ve just released my new library for Processing: FIP (Fast Image Processing). What is it? FIP is a library that allows you to add real-time post-processing / image-processing effects to your P…

---

## [How to get the current index in a forEach loop?](https://discourse.processing.org/t/how-to-get-the-current-index-in-a-foreach-loop/43992)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 4\
**Last updated:** [February 26, 2024, 12:07pm UTC](https://discourse.processing.org/t/how-to-get-the-current-index-in-a-foreach-loop/43992 "2024-02-26T12:07:29Z")

</div>

Hello, Is it possible to have the current index of the item currently handled inside a forEach loop? Thank you.

---

## [Fixing diagonal movement speed (FIXED)](https://discourse.processing.org/t/fixing-diagonal-movement-speed-fixed/43991)

<div class="topic-metadata">

**Author:** [@Np3](https://discourse.processing.org/u/Np3)\
**Replies:** 5\
**Last updated:** [February 25, 2024, 11:21pm UTC](https://discourse.processing.org/t/fixing-diagonal-movement-speed-fixed/43991 "2024-02-25T23:21:35Z")

</div>

Firstly, I apologize if this question seems dumb, I’ve only been coding in processing for about 2 months. I’m trying to create a top-down game, and as of right now, I have a blue square (player) that gets chased around …

---

## [Adding a mini game to my visual novel](https://discourse.processing.org/t/adding-a-mini-game-to-my-visual-novel/43986)

<div class="topic-metadata">

**Author:** [@omagash](https://discourse.processing.org/u/omagash)\
**Replies:** 8\
**Last updated:** [February 25, 2024, 6:50pm UTC](https://discourse.processing.org/t/adding-a-mini-game-to-my-visual-novel/43986 "2024-02-25T18:50:00Z")

</div>

Hi everyone! I am working on a visual novel game project and I wanted to add a mini game(flappy birds) as a seperate challenge to enter the next chapter to the story. I am struggling with adding the game code that my te…

---

## [Existing p5.js code I should learn from?](https://discourse.processing.org/t/existing-p5-js-code-i-should-learn-from/43941)

<div class="topic-metadata">

**Author:** [@bodomo](https://discourse.processing.org/u/bodomo)\
**Replies:** 6\
**Last updated:** [February 23, 2024, 8:58pm UTC](https://discourse.processing.org/t/existing-p5-js-code-i-should-learn-from/43941 "2024-02-23T20:58:17Z")

</div>

Hello, I just went through “Getting started with p5.js”, an excellent resource. Although I found it very easy to understand (I have extensive experience programming in other languages, not so much in JS), I’m aware of th…

---

## [Triangle thingy](https://discourse.processing.org/t/triangle-thingy/43956)

<div class="topic-metadata">

**Author:** [@cattclawzz](https://discourse.processing.org/u/cattclawzz)\
**Replies:** 6\
**Last updated:** [February 23, 2024, 1:15pm UTC](https://discourse.processing.org/t/triangle-thingy/43956 "2024-02-23T13:15:59Z")

</div>

This is a triangle thingy, that’s what the file is called so I’m going with that name, i made it a couple months ago, pretty simple but i think it turned out great, click the coloured circles to move the triangle float …

---

## [Setting Pixels of a Webcam Capture](https://discourse.processing.org/t/setting-pixels-of-a-webcam-capture/43976)

<div class="topic-metadata">

**Author:** [@dswayne92](https://discourse.processing.org/u/dswayne92)\
**Replies:** 4\
**Last updated:** [February 23, 2024, 1:02pm UTC](https://discourse.processing.org/t/setting-pixels-of-a-webcam-capture/43976 "2024-02-23T13:02:29Z")

</div>

Hello everyone, I’m working on a ‘pixel mask’ sketch which would take a Capture camera input, compare the color of pixels to a tracked color (retrieved by mousePressed()), then ‘mask’ those pixels by setting their alpha…

---

## [Python Graphics Demos Not Loading](https://discourse.processing.org/t/python-graphics-demos-not-loading/43975)

<div class="topic-metadata">

**Author:** [@asterobiology](https://discourse.processing.org/u/asterobiology)\
**Replies:** 3\
**Last updated:** [February 23, 2024, 11:49am UTC](https://discourse.processing.org/t/python-graphics-demos-not-loading/43975 "2024-02-23T11:49:36Z")

</div>

I just downloaded Processing 4.3 and installed Python Mode for Processing 4 from the Contribution Manager. However, when I open up the graphics demos, such as Tentacles, and try to press Run, the demo will not load. The …

---

## [JAR won't load in Processing 4.3 but did in 4.2](https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973)

<div class="topic-metadata">

**Author:** [@Philip](https://discourse.processing.org/u/Philip)\
**Replies:** 6\
**Last updated:** [February 22, 2024, 6:49pm UTC](https://discourse.processing.org/t/jar-wont-load-in-processing-4-3-but-did-in-4-2/43973 "2024-02-22T18:49:34Z")

</div>

Hi, sketch works fine under 4.2 but with 4.3, I get “The package “javax.mail” does not exist. You might be missing a library.” javax.mail.jar still resides in code folder next to the sketch. Any ideas? Thanks, Philip …

---

## [How to add images?](https://discourse.processing.org/t/how-to-add-images/43963)

<div class="topic-metadata">

**Author:** [@WillyGrz](https://discourse.processing.org/u/WillyGrz)\
**Replies:** 2\
**Last updated:** [February 21, 2024, 5:23pm UTC](https://discourse.processing.org/t/how-to-add-images/43963 "2024-02-21T17:23:08Z")

</div>

Hey, i’m only a few moths in but can’t figure out how to load images. All tutorials I see on this are either from a different processing like 3, or I can’t understand. They have a bunch of folders to put it into, and I …

---

## [Problem on my Game](https://discourse.processing.org/t/problem-on-my-game/43939)

<div class="topic-metadata">

**Author:** [@NoKyNo](https://discourse.processing.org/u/NoKyNo)\
**Replies:** 2\
**Last updated:** [February 21, 2024, 12:16pm UTC](https://discourse.processing.org/t/problem-on-my-game/43939 "2024-02-21T12:16:22Z")

</div>

Its my main code Player witch; boolean left, up, right,jump,test; PImage playerArt; PImage fondImage,cloud1,cloud2,rainbow1,rainbow2,tree1,tree2,tree3,tree4,grass,cobble,fondgris,fondmar,fondmar2; int \[\] maprow= {1, 1,…

---

## [Using OSC messages in Processing in p5.js mode](https://discourse.processing.org/t/using-osc-messages-in-processing-in-p5-js-mode/43871)

<div class="topic-metadata">

**Author:** [@mormegil](https://discourse.processing.org/u/mormegil)\
**Replies:** 1\
**Last updated:** [February 19, 2024, 12:39am UTC](https://discourse.processing.org/t/using-osc-messages-in-processing-in-p5-js-mode/43871 "2024-02-19T00:39:01Z")

</div>

Hello there, I have started discovering Processing only yesterday, but I am already trying out connecting a few things with OSC. Right now I am stuck at figuring out connecting OSC to p5.js scripts run from Processing 4…

---

## [App Icon Processing 4](https://discourse.processing.org/t/app-icon-processing-4/43918)

<div class="topic-metadata">

**Author:** [@Edenstudent](https://discourse.processing.org/u/Edenstudent)\
**Replies:** 5\
**Last updated:** [February 21, 2024, 6:57am UTC](https://discourse.processing.org/t/app-icon-processing-4/43918 "2024-02-21T06:57:54Z")

</div>

I’m trying to set the icon for the application (and in the task bar) in Processing4, and I have this: PImage icon = loadImage("icon.png"); surface.setIcon(icon); The image is 778x758; it doesn’t show up though in t…

---

## [How to create the below image using p5.js](https://discourse.processing.org/t/how-to-create-the-below-image-using-p5-js/43951)

<div class="topic-metadata">

**Author:** [@m00n620](https://discourse.processing.org/u/m00n620)\
**Replies:** 1\
**Last updated:** [February 20, 2024, 12:40pm UTC](https://discourse.processing.org/t/how-to-create-the-below-image-using-p5-js/43951 "2024-02-20T12:40:50Z")

</div>

How to generate this art? Please help!

---

## [Working on a Simon says game](https://discourse.processing.org/t/working-on-a-simon-says-game/43955)

<div class="topic-metadata">

**Author:** [@cattclawzz](https://discourse.processing.org/u/cattclawzz)\
**Replies:** 7\
**Last updated:** [February 20, 2024, 10:26am UTC](https://discourse.processing.org/t/working-on-a-simon-says-game/43955 "2024-02-20T10:26:44Z")

</div>

having issues with line 27 and 28, I’m not sure how to properly write that line \<//r,b,g,y boolean colours = {false,false,false,false}; color coloursTrue = {color(255, 0, 0) , color(0,0,255) , color(0,255,0) , color(2…

---

## [G4P - how I can keep open a dropdown list?](https://discourse.processing.org/t/g4p-how-i-can-keep-open-a-dropdown-list/43947)

<div class="topic-metadata">

**Author:** [@qualidat](https://discourse.processing.org/u/qualidat)\
**Replies:** 1\
**Last updated:** [February 20, 2024, 9:56am UTC](https://discourse.processing.org/t/g4p-how-i-can-keep-open-a-dropdown-list/43947 "2024-02-20T09:56:15Z")

</div>

G4P does not contain a list box. The dropdownlist shows closest. But it is not nice to always open them first. Is there a trick to keep a dropdownlist open permanently? As a replacement for a list box …

---

## [Looping several videos](https://discourse.processing.org/t/looping-several-videos/43854)

<div class="topic-metadata">

**Author:** [@uili](https://discourse.processing.org/u/uili)\
**Replies:** 2\
**Last updated:** [February 19, 2024, 11:54am UTC](https://discourse.processing.org/t/looping-several-videos/43854 "2024-02-19T11:54:20Z")

</div>

https://editor.p5js.org/guillermo\_d/sketches/jMAtBLViX Hello!! I have three videos in this sketch, but i only get the first one to loop. I need to make a loop with the three videos. I’ve been trying different options an…

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

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