# Latest

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

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

**Page:** 290

---

## [USB camera not recognized by Processing](https://discourse.processing.org/t/usb-camera-not-recognized-by-processing/25159)

<div class="topic-metadata">

**Author:** [@stivi](https://discourse.processing.org/u/stivi)\
**Replies:** 2\
**Last updated:** [November 4, 2020, 6:43pm UTC](https://discourse.processing.org/t/usb-camera-not-recognized-by-processing/25159 "2020-11-04T18:43:07Z")

</div>

Hey guys! I’m a newbie in processing and am trying to do a project based on some tutorials on youtube about “rasterizing” and image. After doing that i wanted to change form image to video. The problem I’m having is that…

---

## [Flip the image HORIZONTALLY](https://discourse.processing.org/t/flip-the-image-horizontally/25165)

<div class="topic-metadata">

**Author:** [@BettyBai](https://discourse.processing.org/u/BettyBai)\
**Replies:** 3\
**Last updated:** [November 4, 2020, 6:02pm UTC](https://discourse.processing.org/t/flip-the-image-horizontally/25165 "2020-11-04T18:02:42Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I’m new to processing, and I’m trying to flip the image horizontally. However, I am facing the problem of only flipping half of the image, c…

---

## [Problem updating list on click](https://discourse.processing.org/t/problem-updating-list-on-click/25175)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 1\
**Last updated:** [November 4, 2020, 3:52pm UTC](https://discourse.processing.org/t/problem-updating-list-on-click/25175 "2020-11-04T15:52:09Z")

</div>

Hi, I would like to update a list of node objects (rendered as ellipses) every time the mouse is clicked. The problem is that when mouseClicked is invoked , the grow() method appends an infinite amount of new nodes to …

---

## [Using Processing for creating a GUI to display Vibration Measurements from an Arduino (using the Grove SW-420 Vibration Sensor)](https://discourse.processing.org/t/using-processing-for-creating-a-gui-to-display-vibration-measurements-from-an-arduino-using-the-grove-sw-420-vibration-sensor/25166)

<div class="topic-metadata">

**Author:** [@AbroChief](https://discourse.processing.org/u/AbroChief)\
**Replies:** 6\
**Last updated:** [November 4, 2020, 11:36am UTC](https://discourse.processing.org/t/using-processing-for-creating-a-gui-to-display-vibration-measurements-from-an-arduino-using-the-grove-sw-420-vibration-sensor/25166 "2020-11-04T11:36:04Z")

</div>

Hello everyone. I am creating a project, everything has gone perfect and the task is accomplished. I have fixed a Grove SW-420 vibration sensor and a Grove - LoRa Radio 433MHz Transmitter (acting as the client for sendin…

---

## [Calling processing-java from node on Windows 10](https://discourse.processing.org/t/calling-processing-java-from-node-on-windows-10/24819)

<div class="topic-metadata">

**Author:** [@cheister](https://discourse.processing.org/u/cheister)\
**Replies:** 1\
**Last updated:** [November 4, 2020, 7:36am UTC](https://discourse.processing.org/t/calling-processing-java-from-node-on-windows-10/24819 "2020-11-04T07:36:30Z")

</div>

Hello everyone, I am having some problems to execute the processing-java on windows from nodejs. When I use the following processing-java --sketch=$pwd/sketch/ --run in the console it works fine and the sketch is exec…

---

## [Algorithm for dividing a circle, providing labels for only some of the divisions](https://discourse.processing.org/t/algorithm-for-dividing-a-circle-providing-labels-for-only-some-of-the-divisions/25138)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 4\
**Last updated:** [November 3, 2020, 6:45pm UTC](https://discourse.processing.org/t/algorithm-for-dividing-a-circle-providing-labels-for-only-some-of-the-divisions/25138 "2020-11-03T18:45:26Z")

</div>

I am trying to find a reusable algorithm for dividing any integer quantity into an integer number of parts, but providing a label for only some of those parts. For example, numbers on a clock. I have the following, nume…

---

## [sDrop image P2D](https://discourse.processing.org/t/sdrop-image-p2d/25130)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 1\
**Last updated:** [November 3, 2020, 3:15pm UTC](https://discourse.processing.org/t/sdrop-image-p2d/25130 "2020-11-03T15:15:06Z")

</div>

Hi, I’m trying to drag and drop an outside Image in my PApplet with sDrop library but I use P2D renderer. With this renderer is not working but without is it. There is a way to go around, I really need this ? Thanks

---

## [Convert 2D line drawing into 3D object in p5.js](https://discourse.processing.org/t/convert-2d-line-drawing-into-3d-object-in-p5-js/25108)

<div class="topic-metadata">

**Author:** [@sarath.jasrin](https://discourse.processing.org/u/sarath.jasrin)\
**Replies:** 7\
**Last updated:** [November 3, 2020, 11:03am UTC](https://discourse.processing.org/t/convert-2d-line-drawing-into-3d-object-in-p5-js/25108 "2020-11-03T11:03:57Z")

</div>

Hi I’m very new to p5.js. I found p5 is very easy compare with threejs. I wanted to allow user to draw 2lines and convert in to 3D object then apply texture to the 3D. I know the above is more for the forum question. I …

---

## [Ayuda con la anidación del los for x fa :)](https://discourse.processing.org/t/ayuda-con-la-anidacion-del-los-for-x-fa/25067)

<div class="topic-metadata">

**Author:** [@eltorres](https://discourse.processing.org/u/eltorres)\
**Replies:** 3\
**Last updated:** [November 3, 2020, 7:52am UTC](https://discourse.processing.org/t/ayuda-con-la-anidacion-del-los-for-x-fa/25067 "2020-11-03T07:52:02Z")

</div>

PFont font; ArrayList\<walkers\> l = new ArrayList\<walkers\>(); ArrayList\<walkers\> i = new ArrayList\<walkers\>(); ArrayList\<walkers\> L = new ArrayList\<walkers\>(); int mongolicos = 10; int proteccion = 5; int infectado\_pro…

---

## [loadImage() problem / Cross-Origin](https://discourse.processing.org/t/loadimage-problem-cross-origin/24569)

<div class="topic-metadata">

**Author:** [@\_sv\_11](https://discourse.processing.org/u/_sv_11)\
**Replies:** 2\
**Last updated:** [November 3, 2020, 1:43am UTC](https://discourse.processing.org/t/loadimage-problem-cross-origin/24569 "2020-11-03T01:43:13Z")

</div>

Hi @all I want to load data from a weather-api and also i want to load images from my computer. But when i run the code the following error is displayed. (in german) Can someone help me? //-------------------------…

---

## [Recreational coding: Implement a clone of Snake game](https://discourse.processing.org/t/recreational-coding-implement-a-clone-of-snake-game/25145)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [November 3, 2020, 1:05am UTC](https://discourse.processing.org/t/recreational-coding-implement-a-clone-of-snake-game/25145 "2020-11-03T01:05:11Z")

</div>

This is a clone of the popular Snake game from the 80’s. Have fun! Feel free to reskin it if you like it. On codeguppy.com, there is a tutorial under “Games” on how this is built! P.S. Game has a few glitches when e…

---

## [Perceptron in JavaScript](https://discourse.processing.org/t/perceptron-in-javascript/25144)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [November 3, 2020, 1:02am UTC](https://discourse.processing.org/t/perceptron-in-javascript/25144 "2020-11-03T01:02:59Z")

</div>

This is an implementation of a basic perceptron in JavaScript. Inspired by Daniel Shiffman’s work on Neural Networks and other sources. Try to add dots with your mouse on the canvas and see how the Perceptron is “guessi…

---

## [Fourier Transformed Graphic](https://discourse.processing.org/t/fourier-transformed-graphic/25136)

<div class="topic-metadata">

**Author:** [@ImDaGr3en](https://discourse.processing.org/u/ImDaGr3en)\
**Replies:** 1\
**Last updated:** [November 2, 2020, 11:02pm UTC](https://discourse.processing.org/t/fourier-transformed-graphic/25136 "2020-11-02T23:02:37Z")

</div>

My work is finally DONE! After a week and a half of head scratching, troubleshooting, debugging and hard-coding through this problem, I’ve finally come up with the 1.0 version of my Fourier transformed series grapher. T…

---

## [Execution failed for task app](https://discourse.processing.org/t/execution-failed-for-task-app/24563)

<div class="topic-metadata">

**Author:** [@TheEternalDragon](https://discourse.processing.org/u/TheEternalDragon)\
**Replies:** 2\
**Last updated:** [November 2, 2020, 7:55pm UTC](https://discourse.processing.org/t/execution-failed-for-task-app/24563 "2020-11-02T19:55:13Z")

</div>

Full error below as the title wouldn’t accept it I have been stuck on a problem for hours now, and after many hours of debugging I have given up and need help. The error reads: FAILURE: Build failed with an exception. …

---

## [Creative Code Review First session](https://discourse.processing.org/t/creative-code-review-first-session/25137)

<div class="topic-metadata">

**Author:** [@sspboyd](https://discourse.processing.org/u/sspboyd)\
**Replies:** 0\
**Last updated:** [November 2, 2020, 6:40pm UTC](https://discourse.processing.org/t/creative-code-review-first-session/25137 "2020-11-02T18:40:47Z")

</div>

Hi everyone, I’m hosting a virtual event on Thursday Nov 5 @ 8pm (EST) called Creative Code Review. It is a group for people who enjoy creative coding and want to learn from others by participating in code reviews. The…

---

## [Processing app not working](https://discourse.processing.org/t/processing-app-not-working/25135)

<div class="topic-metadata">

**Author:** [@Tay0508](https://discourse.processing.org/u/Tay0508)\
**Replies:** 2\
**Last updated:** [November 2, 2020, 6:06pm UTC](https://discourse.processing.org/t/processing-app-not-working/25135 "2020-11-02T18:06:36Z")

</div>

So I’m not sure what is going on, but I downloaded processing, and I extracted the files, but when I open it, it says error starting up with an entire error page. I am not sure what to do and neither does my teacher.

---

## [P3D: Two towers with a connecting bridge - QuadStrip](https://discourse.processing.org/t/p3d-two-towers-with-a-connecting-bridge-quadstrip/14109)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 6\
**Last updated:** [November 2, 2020, 5:47pm UTC](https://discourse.processing.org/t/p3d-two-towers-with-a-connecting-bridge-quadstrip/14109 "2020-11-02T17:47:16Z")

</div>

I have a more general question concerning how to make two towers with a connecting bridge or more complex stuff. I understand I can make ONE tower using QuadStrip. And the other tower and the bridge too. But how would …

---

## [Serial data from arduino to processing (Vital Signs monitor)](https://discourse.processing.org/t/serial-data-from-arduino-to-processing-vital-signs-monitor/24088)

<div class="topic-metadata">

**Author:** [@IttaloAlvarenga](https://discourse.processing.org/u/IttaloAlvarenga)\
**Replies:** 2\
**Last updated:** [November 2, 2020, 4:22pm UTC](https://discourse.processing.org/t/serial-data-from-arduino-to-processing-vital-signs-monitor/24088 "2020-11-02T16:22:16Z")

</div>

Hello there! I´m new coding with processing and I have some issues that I hope you guys can help me to understand and solve. I´m fascinated about vital signs and I´ve decided to build my own monitor, but I only have some…

---

## [Sound loading/ index.html error](https://discourse.processing.org/t/sound-loading-index-html-error/25087)

<div class="topic-metadata">

**Author:** [@ucsduni](https://discourse.processing.org/u/ucsduni)\
**Replies:** 4\
**Last updated:** [November 2, 2020, 4:34am UTC](https://discourse.processing.org/t/sound-loading-index-html-error/25087 "2020-11-02T04:34:10Z")

</div>

I am having an issue getting my canvas to load when I am using the preload function with a sound. The code is producing a output that just says “Loading…” I think this is an issue with my index.html, but I’ve been trying…

---

## [Need help merging several sketches](https://discourse.processing.org/t/need-help-merging-several-sketches/25083)

<div class="topic-metadata">

**Author:** [@qelouisa](https://discourse.processing.org/u/qelouisa)\
**Replies:** 6\
**Last updated:** [November 1, 2020, 9:18pm UTC](https://discourse.processing.org/t/need-help-merging-several-sketches/25083 "2020-11-01T21:18:08Z")

</div>

Hello everyone, for a school project I am working on interactive visuals with the kinect. I have 3 processing sketches which I want to merge into one, so the visuals loop over into each other. However I am at a loss on h…

---

## [Basic Array Question](https://discourse.processing.org/t/basic-array-question/25077)

<div class="topic-metadata">

**Author:** [@joe\_processing](https://discourse.processing.org/u/joe_processing)\
**Replies:** 1\
**Last updated:** [October 31, 2020, 6:26pm UTC](https://discourse.processing.org/t/basic-array-question/25077 "2020-10-31T18:26:45Z")

</div>

Hi there! I’ve noobie question… I wrote a code that makes a ball appear when the key pressed minus or plus. two questions: I want every press will make one ball (now it looks like 3 at a time). how do I make the arr…

---

## [I need a little help on python](https://discourse.processing.org/t/i-need-a-little-help-on-python/25118)

<div class="topic-metadata">

**Author:** [@Lorenzo](https://discourse.processing.org/u/Lorenzo)\
**Replies:** 2\
**Last updated:** [November 1, 2020, 6:01pm UTC](https://discourse.processing.org/t/i-need-a-little-help-on-python/25118 "2020-11-01T18:01:02Z")

</div>

Hello I’m looking for how to use the enter key instead of the e key in this program. if keyPressed == True: if key==“e”: ent=1 Thank you in advance for your reply

---

## [Show "explosions" in which many dots scatter away from the location of a mouse click](https://discourse.processing.org/t/show-explosions-in-which-many-dots-scatter-away-from-the-location-of-a-mouse-click/25106)

<div class="topic-metadata">

**Author:** [@jeremy](https://discourse.processing.org/u/jeremy)\
**Replies:** 1\
**Last updated:** [November 1, 2020, 10:31am UTC](https://discourse.processing.org/t/show-explosions-in-which-many-dots-scatter-away-from-the-location-of-a-mouse-click/25106 "2020-11-01T10:31:19Z")

</div>

Hi,I’ve a question. I want to write a code like this: Can anyone give me a example ? Thank you!

---

## [PTMX Scale picture](https://discourse.processing.org/t/ptmx-scale-picture/25104)

<div class="topic-metadata">

**Author:** [@Artyom](https://discourse.processing.org/u/Artyom)\
**Replies:** 0\
**Last updated:** [November 1, 2020, 9:12am UTC](https://discourse.processing.org/t/ptmx-scale-picture/25104 "2020-11-01T09:12:38Z")

</div>

Hello! I need help with a library for PTMX games. I don’t know how to scale the picture. It’s too small. I tried to use “setCamSize()” with different parameters, but it didn’t do anything: Ptmx map = new Ptmx(this, "ma…

---

## [How to move the color?](https://discourse.processing.org/t/how-to-move-the-color/25074)

<div class="topic-metadata">

**Author:** [@GoodPro](https://discourse.processing.org/u/GoodPro)\
**Replies:** 2\
**Last updated:** [November 1, 2020, 8:10am UTC](https://discourse.processing.org/t/how-to-move-the-color/25074 "2020-11-01T08:10:50Z")

</div>

Hi, everyone, I’m working on a project to make a car teaser with processing. I want to add a motion that moves the red LED light from left to right, and I want someone to help me. I tried randomizing the color of the st…

---

## [Multi-threaded Graphics\_demo](https://discourse.processing.org/t/multi-threaded-graphics-demo/25100)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [November 1, 2020, 5:08am UTC](https://discourse.processing.org/t/multi-threaded-graphics-demo/25100 "2020-11-01T05:08:23Z")

</div>

I was recently forced to draw a graph from an android thread and much to my surprise it worked. I was under the impression that all drawing had to be done with draw() and, in fact, Processing documentation explicitly st…

---

## [Loading video from base64, putting it on the canvas and adding stuff to each frame, then get the base64 of the new video with canvas stuff](https://discourse.processing.org/t/loading-video-from-base64-putting-it-on-the-canvas-and-adding-stuff-to-each-frame-then-get-the-base64-of-the-new-video-with-canvas-stuff/25090)

<div class="topic-metadata">

**Author:** [@Bas950](https://discourse.processing.org/u/Bas950)\
**Replies:** 0\
**Last updated:** [November 1, 2020, 12:57am UTC](https://discourse.processing.org/t/loading-video-from-base64-putting-it-on-the-canvas-and-adding-stuff-to-each-frame-then-get-the-base64-of-the-new-video-with-canvas-stuff/25090 "2020-11-01T00:57:05Z")

</div>

Could someone help me with this: Loading video from base64, putting it on the canvas and adding stuff to each frame, then get the base64 of the new video with canvas stuff at the end. Already stuck at loading the video…

---

## [Using android dektopmode emui desktop or Samsung dex with sketches?](https://discourse.processing.org/t/using-android-dektopmode-emui-desktop-or-samsung-dex-with-sketches/25089)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [November 1, 2020, 12:20am UTC](https://discourse.processing.org/t/using-android-dektopmode-emui-desktop-or-samsung-dex-with-sketches/25089 "2020-11-01T00:20:14Z")

</div>

Does anyone have any experience of using any of the following to run sketches and how well they behave in the desktop environment?

---

## [Instantiation not working in P5JS](https://discourse.processing.org/t/instantiation-not-working-in-p5js/25024)

<div class="topic-metadata">

**Author:** [@nateb](https://discourse.processing.org/u/nateb)\
**Replies:** 1\
**Last updated:** [October 31, 2020, 8:02pm UTC](https://discourse.processing.org/t/instantiation-not-working-in-p5js/25024 "2020-10-31T20:02:33Z")

</div>

I need to instantiate this so I can combine it with other sketches but keep getting an error. PLS HELP const radius = 100; let x, y; //code for icons p.setup = function(){ p.createCanvas(windowWidth, windowHeight); …

---

## [Problem converting canny algorithm to shader](https://discourse.processing.org/t/problem-converting-canny-algorithm-to-shader/25052)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [October 30, 2020, 3:47pm UTC](https://discourse.processing.org/t/problem-converting-canny-algorithm-to-shader/25052 "2020-10-30T15:47:34Z")

</div>

I’m struggling to produce the same output in glsl. Here is the processing code. void getNeighboursMax3(int x, int y,float t) { boolean k = false; int p = x + y \* img.width; float red = red(sobel.pixels…

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

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