# Processing

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

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

**Page:** 231

---

## [Error in my code :(](https://discourse.processing.org/t/error-in-my-code/18468)

<div class="topic-metadata">

**Author:** [@noahgabeschaun](https://discourse.processing.org/u/noahgabeschaun)\
**Replies:** 4\
**Last updated:** [March 7, 2020, 10:38pm UTC](https://discourse.processing.org/t/error-in-my-code/18468 "2020-03-07T22:38:53Z")

</div>

I’ve just recently started coding and it says “unexcpected token: void” what’s up with my code? (it’s not finished yet, i’m just trying to run it) Star\[\] stars = new Star\[100\] void setup() { size(400,400); for (int i…

---

## [Creating a Maze Game (Walls Not Working)](https://discourse.processing.org/t/creating-a-maze-game-walls-not-working/18392)

<div class="topic-metadata">

**Author:** [@burakkuboido](https://discourse.processing.org/u/burakkuboido)\
**Replies:** 3\
**Last updated:** [March 7, 2020, 10:37pm UTC](https://discourse.processing.org/t/creating-a-maze-game-walls-not-working/18392 "2020-03-07T22:37:44Z")

</div>

Hey guys, I’ve recently tried making a maze game using 2d arrays. I know this might not be the best way but I’m trying to keep doing this way. Could anyone help me understand why the first wall in the array is registere…

---

## [Hitbox around a triangle?](https://discourse.processing.org/t/hitbox-around-a-triangle/18473)

<div class="topic-metadata">

**Author:** [@anon94203042](https://discourse.processing.org/u/anon94203042)\
**Replies:** 6\
**Last updated:** [March 7, 2020, 9:55pm UTC](https://discourse.processing.org/t/hitbox-around-a-triangle/18473 "2020-03-07T21:55:56Z")

</div>

Is there an accurate way to create a hitbox (for collision detection) around a triangle?

---

## [Pixel flow teleporting test object](https://discourse.processing.org/t/pixel-flow-teleporting-test-object/18395)

<div class="topic-metadata">

**Author:** [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)\
**Replies:** 2\
**Last updated:** [March 7, 2020, 8:02pm UTC](https://discourse.processing.org/t/pixel-flow-teleporting-test-object/18395 "2020-03-07T20:02:00Z")

</div>

Can someone tell me why sometimes it looks like the circle will teleport? import com.thomasdiewald.pixelflow.java.DwPixelFlow; import com.thomasdiewald.pixelflow.java.dwgl.DwGLTexture; import com.thomasdiewald.pixelflow…

---

## [PixelFlow Examples work on 3.1.x but in 3.5 some things are not drawing can you explain why?](https://discourse.processing.org/t/pixelflow-examples-work-on-3-1-x-but-in-3-5-some-things-are-not-drawing-can-you-explain-why/18376)

<div class="topic-metadata">

**Author:** [@kendrick90](https://discourse.processing.org/u/kendrick90)\
**Replies:** 4\
**Last updated:** [March 7, 2020, 7:12pm UTC](https://discourse.processing.org/t/pixelflow-examples-work-on-3-1-x-but-in-3-5-some-things-are-not-drawing-can-you-explain-why/18376 "2020-03-07T19:12:41Z")

</div>

I am using PixelFlow - Fluid\_Basic as my starting point and I noticed that some elements for example the outer boundary are not drawn in recent versions of processing. Can someone explain to me why it won’t draw the obst…

---

## [Is USB hub sufficient to control 4 Arduino boards?](https://discourse.processing.org/t/is-usb-hub-sufficient-to-control-4-arduino-boards/18378)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 2\
**Last updated:** [March 7, 2020, 7:09pm UTC](https://discourse.processing.org/t/is-usb-hub-sufficient-to-control-4-arduino-boards/18378 "2020-03-07T19:09:59Z")

</div>

I am acquiring data from 4 arduino boards (3 Nano and 1 Uno) using serial communication. The USBs of each ardunio is connected to a USB hub device. From USB hub outlet is connected to the PC. I am plotting the received …

---

## [Turn many subclass specific methods into one](https://discourse.processing.org/t/turn-many-subclass-specific-methods-into-one/18463)

<div class="topic-metadata">

**Author:** [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 10:45pm UTC](https://discourse.processing.org/t/turn-many-subclass-specific-methods-into-one/18463 "2020-03-06T22:45:20Z")

</div>

Hello I have 4 different methods to get different objects that derive from a superclass, I want to be able to call a method passing a class as a parameter and getting an ArrayList This are the 4 methods: ArrayList\<Cam…

---

## [Fxml-file integrate in processing?](https://discourse.processing.org/t/fxml-file-integrate-in-processing/18325)

<div class="topic-metadata">

**Author:** [@em\_sha](https://discourse.processing.org/u/em_sha)\
**Replies:** 11\
**Last updated:** [March 7, 2020, 5:43pm UTC](https://discourse.processing.org/t/fxml-file-integrate-in-processing/18325 "2020-03-07T17:43:08Z")

</div>

Hi :slight\_smile: Is there a possibility to integrate a fxml-file in processing? If there is one, could somebody give me an example? Thanks. M.

---

## [Reliable way to make smooth 3D objects?](https://discourse.processing.org/t/reliable-way-to-make-smooth-3d-objects/18322)

<div class="topic-metadata">

**Author:** [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Replies:** 4\
**Last updated:** [March 7, 2020, 5:21pm UTC](https://discourse.processing.org/t/reliable-way-to-make-smooth-3d-objects/18322 "2020-03-07T17:21:54Z")

</div>

Is there a way to make 3D objects in Processing that don’t appear as polygonal? Currently I make 3D shapes by using functions such as beginShape(TRIANGLE\_STRIP), but I would like to learn the more technical aspects. If …

---

## [Getting Swing and Processing to work together](https://discourse.processing.org/t/getting-swing-and-processing-to-work-together/18486)

<div class="topic-metadata">

**Author:** [@Dinoswarleafs](https://discourse.processing.org/u/Dinoswarleafs)\
**Replies:** 0\
**Last updated:** [March 7, 2020, 4:58pm UTC](https://discourse.processing.org/t/getting-swing-and-processing-to-work-together/18486 "2020-03-07T16:58:44Z")

</div>

Hey, Right now I’m creating an application with Swing and Processing in separate windows. I’ve verified the Processing methods I call are functional, so I believe the following issues occur because Processing and Swing …

---

## [Processing listening to wrong IP address when receiving UDP message](https://discourse.processing.org/t/processing-listening-to-wrong-ip-address-when-receiving-udp-message/8175)

<div class="topic-metadata">

**Author:** [@saadjumani](https://discourse.processing.org/u/saadjumani)\
**Replies:** 2\
**Last updated:** [March 7, 2020, 8:44am UTC](https://discourse.processing.org/t/processing-listening-to-wrong-ip-address-when-receiving-udp-message/8175 "2020-03-07T08:44:36Z")

</div>

Hi everyone, I have been trying to connect my NodeMCU device to Processing 3 running on my pc through OSCP5 library through which I am trying to recieve OSC message through UDP port over my local wifi. The problem is th…

---

## [Mixing 2d code and 3d (with kinect and touchboard)](https://discourse.processing.org/t/mixing-2d-code-and-3d-with-kinect-and-touchboard/18353)

<div class="topic-metadata">

**Author:** [@aradeea](https://discourse.processing.org/u/aradeea)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 7:42pm UTC](https://discourse.processing.org/t/mixing-2d-code-and-3d-with-kinect-and-touchboard/18353 "2020-03-06T19:42:48Z")

</div>

Hi there, I have some doubts about an installation project I’m doing. This project involves music, video, a touchboard and a kinect. Here’s what the code is supposed to do: Whenever someone touches one of the touchboa…

---

## [Water flow simulation](https://discourse.processing.org/t/water-flow-simulation/18225)

<div class="topic-metadata">

**Author:** [@LuckSmith](https://discourse.processing.org/u/LuckSmith)\
**Replies:** 5\
**Last updated:** [March 6, 2020, 7:12pm UTC](https://discourse.processing.org/t/water-flow-simulation/18225 "2020-03-06T19:12:37Z")

</div>

Hi, guys, it’s been a while :slight\_smile: Please take a look at https://www.openprocessing.org/sketch/845420 Please be sure to run it not from the browser, because it’s slow. In shortly, what it does: Creates a hig…

---

## [Want My Own Shape for this code](https://discourse.processing.org/t/want-my-own-shape-for-this-code/18366)

<div class="topic-metadata">

**Author:** [@heelaries](https://discourse.processing.org/u/heelaries)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 6:06pm UTC](https://discourse.processing.org/t/want-my-own-shape-for-this-code/18366 "2020-03-06T18:06:55Z")

</div>

I want to add my own image/shape to this code. This is the code from processing I want to add the image to: int num = 50; int\[\] x = new int\[num\]; int\[\] y = new int\[num\]; void setup() { size(100, 100); noStroke(); …

---

## [G4P, extend control class?](https://discourse.processing.org/t/g4p-extend-control-class/17788)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 44\
**Last updated:** [March 6, 2020, 2:32pm UTC](https://discourse.processing.org/t/g4p-extend-control-class/17788 "2020-03-06T14:32:21Z")

</div>

@quark I would like to add a couple of my own classes to G4P or perhaps request them to be added :wink: They are both quite simple but I can’t seem to find a way to get the same functionality and look using G4P alone. …

---

## [Constant rounding](https://discourse.processing.org/t/constant-rounding/18449)

<div class="topic-metadata">

**Author:** [@immorom](https://discourse.processing.org/u/immorom)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 2:17pm UTC](https://discourse.processing.org/t/constant-rounding/18449 "2020-03-06T14:17:27Z")

</div>

Why does this happen?

---

## [Rotate sun keyPressed](https://discourse.processing.org/t/rotate-sun-keypressed/18429)

<div class="topic-metadata">

**Author:** [@M.juliet](https://discourse.processing.org/u/M.juliet)\
**Replies:** 3\
**Last updated:** [March 6, 2020, 7:49am UTC](https://discourse.processing.org/t/rotate-sun-keypressed/18429 "2020-03-06T07:49:47Z")

</div>

Hi, I’m writing some code for a animation project and I want to let ellipses move around a sun. I have four ellipses that move four times around the sun and I want to let them move around when you press the up or the dow…

---

## [Try-catch structure problem](https://discourse.processing.org/t/try-catch-structure-problem/18437)

<div class="topic-metadata">

**Author:** [@JohnC](https://discourse.processing.org/u/JohnC)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 7:07am UTC](https://discourse.processing.org/t/try-catch-structure-problem/18437 "2020-03-06T07:07:15Z")

</div>

here is a minimise code import processing.video.\*; Movie m; boolean error = false; void setup(){ size(200,200); } void draw(){ background(0); if (error){ background(255,0,0); } } void keyPressed(){ if (k…

---

## [LED CONTROL Serial myPort vs. Serial port](https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293)

<div class="topic-metadata">

**Author:** [@kristipham](https://discourse.processing.org/u/kristipham)\
**Replies:** 15\
**Last updated:** [March 6, 2020, 4:47am UTC](https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293 "2020-03-06T04:47:34Z")

</div>

I am trying to control multiple LEDs but I am not quite sure on how to adjust my code accordingly. I have a master code that runs an RTC clock module and a light sensor to an LED. I have separated both my codes. I was ab…

---

## [Processing JS, HTML and PHP issue](https://discourse.processing.org/t/processing-js-html-and-php-issue/18372)

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 2\
**Last updated:** [March 5, 2020, 9:53pm UTC](https://discourse.processing.org/t/processing-js-html-and-php-issue/18372 "2020-03-05T21:53:12Z")

</div>

I’ve made a processing sketch that I had upload on my website (localhost). But the buttons that I programmed doesn’t work because i’m using the “selectInput” function that is not avaible in web. So, I guess I need to mak…

---

## [External cameras available for capture?](https://discourse.processing.org/t/external-cameras-available-for-capture/17875)

<div class="topic-metadata">

**Author:** [@mortap](https://discourse.processing.org/u/mortap)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 9:35pm UTC](https://discourse.processing.org/t/external-cameras-available-for-capture/17875 "2020-03-05T21:35:34Z")

</div>

I am planning to purchase a new camera soon (possibly the Sony DSC-RX mark IV, for example). How can I tell ahead of time if Processing will recognize it when I attach it over USB to the computer?

---

## [Speed of calculations](https://discourse.processing.org/t/speed-of-calculations/17862)

<div class="topic-metadata">

**Author:** [@SurfWise](https://discourse.processing.org/u/SurfWise)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 9:28pm UTC](https://discourse.processing.org/t/speed-of-calculations/17862 "2020-03-05T21:28:27Z")

</div>

Hi there! Does anybody know how many calculation is done in processing per second? I would like to create a simple aeroplane simulator and I am wondering if processing would manage with real-time calculations including:…

---

## [Initializing values in the ControlP5 button library](https://discourse.processing.org/t/initializing-values-in-the-controlp5-button-library/17578)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 9:20pm UTC](https://discourse.processing.org/t/initializing-values-in-the-controlp5-button-library/17578 "2020-03-05T21:20:55Z")

</div>

In the below code snippet I find the “.setValue(0)” line triggers the “BrowseOpenOutputFile()” event handler.This caused an undesired file browser dialog (called in the event handler code) to appear at sketch startup. Is…

---

## [Pixel sorting (time and pixel increment)](https://discourse.processing.org/t/pixel-sorting-time-and-pixel-increment/18321)

<div class="topic-metadata">

**Author:** [@Alexx](https://discourse.processing.org/u/Alexx)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 7:42pm UTC](https://discourse.processing.org/t/pixel-sorting-time-and-pixel-increment/18321 "2020-03-05T19:42:14Z")

</div>

Hi! In this sketch by Kim Asendorf a pixel sorting is performed only once. Is it possible to give movement to this pixel sorting? And most importantly, how can you increase this pixel sorting? int mode = 1; PImage b…

---

## [Sending value through osc](https://discourse.processing.org/t/sending-value-through-osc/18390)

<div class="topic-metadata">

**Author:** [@chakkourism](https://discourse.processing.org/u/chakkourism)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 7:41pm UTC](https://discourse.processing.org/t/sending-value-through-osc/18390 "2020-03-05T19:41:56Z")

</div>

Hello everyone, I am working on a project and i would like to understand how to write if value = 0, don’t send osc message, or instead send another value. if anyone could help me with this, it would mean a lot . Have …

---

## [Animated prototype of interface](https://discourse.processing.org/t/animated-prototype-of-interface/18409)

<div class="topic-metadata">

**Author:** [@eugenie](https://discourse.processing.org/u/eugenie)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 6:49pm UTC](https://discourse.processing.org/t/animated-prototype-of-interface/18409 "2020-03-05T18:49:18Z")

</div>

Hello everybody :slight\_smile: Sory for my English For my internship, I have to try to present different animated prototypes interface. I was advised to use “processing” to design these prototypes. The point is that I …

---

## [About Python-based libraries for Processing](https://discourse.processing.org/t/about-python-based-libraries-for-processing/18142)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 9\
**Last updated:** [March 5, 2020, 6:48pm UTC](https://discourse.processing.org/t/about-python-based-libraries-for-processing/18142 "2020-03-05T18:48:16Z")

</div>

Hi all, I have a few questions regarding the feasibility and the viability of a library/module that would be implemented in Python but operable in both Java and Python mode. Do you know about such library ? Could …

---

## [Prevent Unfolding Map from panning off screen](https://discourse.processing.org/t/prevent-unfolding-map-from-panning-off-screen/18328)

<div class="topic-metadata">

**Author:** [@wcneill](https://discourse.processing.org/u/wcneill)\
**Replies:** 6\
**Last updated:** [March 5, 2020, 6:24pm UTC](https://discourse.processing.org/t/prevent-unfolding-map-from-panning-off-screen/18328 "2020-03-05T18:24:12Z")

</div>

When I using unfolding maps, there is no limit on how far you can pan. When you pan too far, however, this happens: I have tried restricting panning via the method setPanningRestriction(center, maxdistance), however t…

---

## [ControlP5 - Button's Transparency?](https://discourse.processing.org/t/controlp5-buttons-transparency/18393)

<div class="topic-metadata">

**Author:** [@iamjustcurious](https://discourse.processing.org/u/iamjustcurious)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 2:48pm UTC](https://discourse.processing.org/t/controlp5-buttons-transparency/18393 "2020-03-05T14:48:50Z")

</div>

Hello, How can I change the transparency of a button in ControlP5 library?

---

## [Getting webcam to turn on with video library](https://discourse.processing.org/t/getting-webcam-to-turn-on-with-video-library/18207)

<div class="topic-metadata">

**Author:** [@Coton](https://discourse.processing.org/u/Coton)\
**Replies:** 2\
**Last updated:** [March 4, 2020, 9:13pm UTC](https://discourse.processing.org/t/getting-webcam-to-turn-on-with-video-library/18207 "2020-03-04T21:13:16Z")

</div>

Hi! I’m still very new to processing, I haven’t used it in a while and I’ve changed computer since the last time I was experimenting with it. I’m trying to get the built in webcam on my 2013 Macbook Pro Retina to show …

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

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