# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=24

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

**Page:** 25

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Reducing points in polygon](https://discourse.processing.org/t/reducing-points-in-polygon/13590)

<div class="topic-metadata">

**Author:** [@jeffthompson](https://discourse.processing.org/u/jeffthompson)\
**Replies:** 6\
**Last updated:** [February 19, 2024, 4:07am UTC](https://discourse.processing.org/t/reducing-points-in-polygon/13590 "2024-02-19T04:07:53Z")

</div>

I’ve been working with this example code over on the old forum, which reduces the number of points in a polygon using the Ramer-Douglas-Peucker algorithm. It works great for my purposes, but for one weird thing: it creat…

---

## [Lerp flow field and attractor](https://discourse.processing.org/t/lerp-flow-field-and-attractor/43934)

<div class="topic-metadata">

**Author:** [@Leo\_Aguiar](https://discourse.processing.org/u/Leo_Aguiar)\
**Replies:** 1\
**Last updated:** [February 18, 2024, 4:44pm UTC](https://discourse.processing.org/t/lerp-flow-field-and-attractor/43934 "2024-02-18T16:44:47Z")

</div>

Hello forum, I am looking for help on an issue where only one object is being affected by an attractor. I am building on top of different tutorials I have found on YouTube. The sketch basically has a noise field that is …

---

## [How to export from Word to Processing](https://discourse.processing.org/t/how-to-export-from-word-to-processing/43831)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 4\
**Last updated:** [February 16, 2024, 9:16pm UTC](https://discourse.processing.org/t/how-to-export-from-word-to-processing/43831 "2024-02-16T21:16:51Z")

</div>

Hello all, I exported a Word Document to a text document. When I load the text document in processing though, special signs such as äöü are destroyed. Since my question: How to export from word to processing? I use A…

---

## [Numpad keycodes are acting weird?](https://discourse.processing.org/t/numpad-keycodes-are-acting-weird/43917)

<div class="topic-metadata">

**Author:** [@Edenstudent](https://discourse.processing.org/u/Edenstudent)\
**Replies:** 5\
**Last updated:** [February 16, 2024, 7:28am UTC](https://discourse.processing.org/t/numpad-keycodes-are-acting-weird/43917 "2024-02-16T07:28:48Z")

</div>

So, I know that the keyCodes are different for the numpad and that they actually if you have NumLock on or off. I have a little program that gets the numbers for me: void setup() { } void draw() { } void keyPressed() …

---

## [Getting the window position in P2D](https://discourse.processing.org/t/getting-the-window-position-in-p2d/43543)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 3\
**Last updated:** [February 15, 2024, 6:59am UTC](https://discourse.processing.org/t/getting-the-window-position-in-p2d/43543 "2024-02-15T06:59:14Z")

</div>

Hello :slight\_smile: I want to get the window position of a window to if the window is offscreen correct it & correctly implement 3d movement (rotation with mouse). However, the versions i saw don’t work on P2D, P3D or …

---

## [How to move an image (without redrawing it)](https://discourse.processing.org/t/how-to-move-an-image-without-redrawing-it/43875)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 19\
**Last updated:** [February 14, 2024, 3:23am UTC](https://discourse.processing.org/t/how-to-move-an-image-without-redrawing-it/43875 "2024-02-14T03:23:12Z")

</div>

I want to load a large image (PImage img;), change some of the pixels, move the image horizontally or vertically, change some more pixels, move the image again, and so on… This should be easy, but I can’t find a way to …

---

## [Mipmaps in OpenGL](https://discourse.processing.org/t/mipmaps-in-opengl/42315)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 2\
**Last updated:** [February 13, 2024, 8:18pm UTC](https://discourse.processing.org/t/mipmaps-in-opengl/42315 "2024-02-13T20:18:52Z")

</div>

I have the following image: And the following sketch: PImage img; PGraphics big; PGraphics small; boolean from\_big\_pg = true; void setup() { size(320, 180, P2D); img = loadImage("big.png"); big = createGraph…

---

## [String art in Processing. What I've got so far. SOLVED](https://discourse.processing.org/t/string-art-in-processing-what-ive-got-so-far-solved/43886)

<div class="topic-metadata">

**Author:** [@Matty27](https://discourse.processing.org/u/Matty27)\
**Replies:** 2\
**Last updated:** [February 11, 2024, 5:54pm UTC](https://discourse.processing.org/t/string-art-in-processing-what-ive-got-so-far-solved/43886 "2024-02-11T17:54:14Z")

</div>

Good afternoon all. I’m trying to use processing to create some “string art”, which is overlapping lines that form curves. The code I’ve got is below. I’ve tried to make it so that I don’t have hard-coded values, meanin…

---

## [Serial buffer contains old data on new connection?](https://discourse.processing.org/t/serial-buffer-contains-old-data-on-new-connection/43826)

<div class="topic-metadata">

**Author:** [@YoSteve](https://discourse.processing.org/u/YoSteve)\
**Replies:** 2\
**Last updated:** [February 6, 2024, 7:21am UTC](https://discourse.processing.org/t/serial-buffer-contains-old-data-on-new-connection/43826 "2024-02-06T07:21:10Z")

</div>

I am using arduino to send data to processing sketch. Arduino code: // arduino void setup() { Serial.begin(38400); Serial.write('P'); Serial.write('P'); Serial.write('P'); } void loop() { Serial.write(analogRead(0…

---

## [Cannot save() images in exported app (Mac) when downloaded from Internet](https://discourse.processing.org/t/cannot-save-images-in-exported-app-mac-when-downloaded-from-internet/43834)

<div class="topic-metadata">

**Author:** [@Akz](https://discourse.processing.org/u/Akz)\
**Replies:** 2\
**Last updated:** [February 6, 2024, 2:26pm UTC](https://discourse.processing.org/t/cannot-save-images-in-exported-app-mac-when-downloaded-from-internet/43834 "2024-02-06T14:26:56Z")

</div>

I exported a macOS application that uses save() to export png files to the application’s base directory (parallel to the app file). It works fine while running in processing. It works fine as an application running on …

---

## [Start Win Explorer with folder](https://discourse.processing.org/t/start-win-explorer-with-folder/41901)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 4\
**Last updated:** [February 5, 2024, 4:52pm UTC](https://discourse.processing.org/t/start-win-explorer-with-folder/41901 "2024-02-05T16:52:39Z")

</div>

hello all, how can I start Win explorer with explorer? I read this: Parameter des Windows Explorers "explorer.exe" - Windows FAQ but this doesn’t work launch ( "explorer.exe"+ " /n," + sketchPath("")+…

---

## [Kinect for Processing. Unable on Windows 10!](https://discourse.processing.org/t/kinect-for-processing-unable-on-windows-10/43830)

<div class="topic-metadata">

**Author:** [@edugimeno](https://discourse.processing.org/u/edugimeno)\
**Replies:** 0\
**Last updated:** [February 4, 2024, 6:58pm UTC](https://discourse.processing.org/t/kinect-for-processing-unable-on-windows-10/43830 "2024-02-04T18:58:31Z")

</div>

Hi There! I had a program on Processing that I developed for a client 2 years ago. It was used to measure depth of a surface and show a scale of colors. Its using Kinect V1. It was running fine on an older computer (W …

---

## [Adding an existing 2 dimensional array to a JSONObject](https://discourse.processing.org/t/adding-an-existing-2-dimensional-array-to-a-jsonobject/43807)

<div class="topic-metadata">

**Author:** [@remka](https://discourse.processing.org/u/remka)\
**Replies:** 5\
**Last updated:** [February 2, 2024, 7:58am UTC](https://discourse.processing.org/t/adding-an-existing-2-dimensional-array-to-a-jsonobject/43807 "2024-02-02T07:58:32Z")

</div>

Hi everyone, I am fairly new to Java and Processing, …coming from Javascript many things still look like black magic to me :slight\_smile: … I am trying to format some data to JSON to send via websockets to an esp32 boa…

---

## [Did anyone make a Controller for Mouse to steer camera pos and look At in 3D?](https://discourse.processing.org/t/did-anyone-make-a-controller-for-mouse-to-steer-camera-pos-and-look-at-in-3d/43598)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 5\
**Last updated:** [January 5, 2024, 2:45pm UTC](https://discourse.processing.org/t/did-anyone-make-a-controller-for-mouse-to-steer-camera-pos-and-look-at-in-3d/43598 "2024-01-05T14:45:24Z")

</div>

Hello all, did anyone make a Controller with onscreen buttons for the Mouse to steer the camera pos and look At in P3D? Thanks! Happy new year! Chrisir

---

## [Is there a way to disable Processing's P3D transparency performance algorithm?](https://discourse.processing.org/t/is-there-a-way-to-disable-processings-p3d-transparency-performance-algorithm/43795)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 0\
**Last updated:** [January 30, 2024, 5:55pm UTC](https://discourse.processing.org/t/is-there-a-way-to-disable-processings-p3d-transparency-performance-algorithm/43795 "2024-01-30T17:55:06Z")

</div>

I am trying to make a voxel game and had great success until now, i added 3d chunks & an lod system. The only problem i’m facing is transparency. I was just wondering if there is a way to disable processing’s algorit…

---

## [Problems with Processing](https://discourse.processing.org/t/problems-with-processing/43754)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 4\
**Last updated:** [January 29, 2024, 2:11pm UTC](https://discourse.processing.org/t/problems-with-processing/43754 "2024-01-29T14:11:40Z")

</div>

This isn’t supposed to harrass anyone or bash on the language! Sadly processing has a giant lack of documentation, stuff that is not incredibly basic is not in the new docs, only on old forums where almost all links are…

---

## [Help with a drop and drag code (drag 4 images)](https://discourse.processing.org/t/help-with-a-drop-and-drag-code-drag-4-images/43650)

<div class="topic-metadata">

**Author:** [@Codedstuff](https://discourse.processing.org/u/Codedstuff)\
**Replies:** 1\
**Last updated:** [January 8, 2024, 4:49pm UTC](https://discourse.processing.org/t/help-with-a-drop-and-drag-code-drag-4-images/43650 "2024-01-08T16:49:06Z")

</div>

HI :slight\_smile: I’m having problem with understanding this array I have four pictures loaded, but when i open it only 3 of them shows I also want to add some extra pictures in the array, but it wont let me. In the …

---

## [Usb webcam " Internal data stream error"](https://discourse.processing.org/t/usb-webcam-internal-data-stream-error/39073)

<div class="topic-metadata">

**Author:** [@blippr](https://discourse.processing.org/u/blippr)\
**Replies:** 4\
**Last updated:** [January 28, 2024, 4:25pm UTC](https://discourse.processing.org/t/usb-webcam-internal-data-stream-error/39073 "2024-01-28T16:25:37Z")

</div>

Hi, I have trouble trying to get Processing to recognise usb webcams. This camera works in Quicktime and other apps like PureData on the same computer. What am I doing wrong? Processing console: Processing video libra…

---

## [Pixelation problem](https://discourse.processing.org/t/pixelation-problem/43773)

<div class="topic-metadata">

**Author:** [@Philippe1](https://discourse.processing.org/u/Philippe1)\
**Replies:** 0\
**Last updated:** [January 27, 2024, 10:31am UTC](https://discourse.processing.org/t/pixelation-problem/43773 "2024-01-27T10:31:08Z")

</div>

Hello I am animating bezier curves and I have pixelation during animation. Even with the “smooth” command this persists. It’s even worse when I record it on video. I work in P3D mode. Is there another mode that woul…

---

## [Problem to make two Bezier curves evolve independently of each other](https://discourse.processing.org/t/problem-to-make-two-bezier-curves-evolve-independently-of-each-other/43750)

<div class="topic-metadata">

**Author:** [@Philippe1](https://discourse.processing.org/u/Philippe1)\
**Replies:** 2\
**Last updated:** [January 27, 2024, 9:42am UTC](https://discourse.processing.org/t/problem-to-make-two-bezier-curves-evolve-independently-of-each-other/43750 "2024-01-27T09:42:50Z")

</div>

Hello, I would like to evolve two Bezier curves independently. I would like both to have a rotation in the center of the screen. However, the second has a completely different behavior. What is the coding so that two…

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

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