# Processing

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

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

**Page:** 385

---

## [PShape::attrib() and PShape::setAttrib() dont work proprely](https://discourse.processing.org/t/pshape-attrib-and-pshape-setattrib-dont-work-proprely/845)

<div class="topic-metadata">

**Author:** [@Stephcraft](https://discourse.processing.org/u/Stephcraft)\
**Replies:** 5\
**Last updated:** [June 27, 2018, 9:37pm UTC](https://discourse.processing.org/t/pshape-attrib-and-pshape-setattrib-dont-work-proprely/845 "2018-06-27T21:37:12Z")

</div>

the attrib() and setAttrib() do not work proprely in all scenarios The only way it works is when using attrib() in a not GROUP PShape. Here is a working Exemple : // // Working Exemple // PShape shape; PShader shade…

---

## [dataPath("") only works in "data" folder](https://discourse.processing.org/t/datapath-only-works-in-data-folder/1310)

<div class="topic-metadata">

**Author:** [@grumo](https://discourse.processing.org/u/grumo)\
**Replies:** 5\
**Last updated:** [June 27, 2018, 6:13pm UTC](https://discourse.processing.org/t/datapath-only-works-in-data-folder/1310 "2018-06-27T18:13:14Z")

</div>

I use this script for reading and filtering files by extension in a folder. The thing is that it only works when reading “/data” if I do “/data/something” or “/something” it won’t work. Is driving me crazy. I’m working i…

---

## [Using args\[\] for opening files](https://discourse.processing.org/t/using-args-for-opening-files/942)

<div class="topic-metadata">

**Author:** [@madscientist](https://discourse.processing.org/u/madscientist)\
**Replies:** 14\
**Last updated:** [June 27, 2018, 12:34am UTC](https://discourse.processing.org/t/using-args-for-opening-files/942 "2018-06-27T00:34:00Z")

</div>

I am working on a program that I want to be able to open files with by double-clicking on the file and choosing “open with…” - name of exported sketch. I know the program can open the files because it opens them just fi…

---

## [Help needed for squares animation](https://discourse.processing.org/t/help-needed-for-squares-animation/1293)

<div class="topic-metadata">

**Author:** [@cycblonde](https://discourse.processing.org/u/cycblonde)\
**Replies:** 6\
**Last updated:** [June 27, 2018, 2:55pm UTC](https://discourse.processing.org/t/help-needed-for-squares-animation/1293 "2018-06-27T14:55:31Z")

</div>

Hello, I am a student at the Slade school of Art and I am looking for some help. I have been trying to make animations of squares in after effects all term and my tutor told me about processing. I have a bit of experien…

---

## [Geolocation and Osc Message](https://discourse.processing.org/t/geolocation-and-osc-message/1117)

<div class="topic-metadata">

**Author:** [@netphysicist](https://discourse.processing.org/u/netphysicist)\
**Replies:** 7\
**Last updated:** [June 27, 2018, 2:14pm UTC](https://discourse.processing.org/t/geolocation-and-osc-message/1117 "2018-06-27T14:14:12Z")

</div>

Hello, i try to create a programm in Java which sends geolocation( longitude, latitude) from Android to PC via oscP5 library. Based on AccelerometerData example i made this code but my problem is that when i run the co…

---

## [What is better pc/mac for Visuals and Audio processing](https://discourse.processing.org/t/what-is-better-pc-mac-for-visuals-and-audio-processing/1308)

<div class="topic-metadata">

**Author:** [@Spampi\_ES](https://discourse.processing.org/u/Spampi_ES)\
**Replies:** 7\
**Last updated:** [June 27, 2018, 2:07pm UTC](https://discourse.processing.org/t/what-is-better-pc-mac-for-visuals-and-audio-processing/1308 "2018-06-27T14:07:42Z")

</div>

Hi to everyone, I hope I’m not off-topic. My question is really simple: I should buy a new laptop and I don’t know if I should take a windows one or a OSX one. I’m really into processing from a while, and I would like …

---

## [How to run a processing sketch even when the canvas is minimized](https://discourse.processing.org/t/how-to-run-a-processing-sketch-even-when-the-canvas-is-minimized/1307)

<div class="topic-metadata">

**Author:** [@prasad](https://discourse.processing.org/u/prasad)\
**Replies:** 1\
**Last updated:** [June 27, 2018, 1:11pm UTC](https://discourse.processing.org/t/how-to-run-a-processing-sketch-even-when-the-canvas-is-minimized/1307 "2018-06-27T13:11:33Z")

</div>

First of all, Is running the sketch even after minimizing the canvas possible? I am going to use the exported .exe version of the sketch once completed. Problem I am facing is 2 part. I am trying to make an image capt…

---

## [Find the color of a pixel relative to a new origin after translating and rotating?](https://discourse.processing.org/t/find-the-color-of-a-pixel-relative-to-a-new-origin-after-translating-and-rotating/1298)

<div class="topic-metadata">

**Author:** [@gamebuilder116](https://discourse.processing.org/u/gamebuilder116)\
**Replies:** 2\
**Last updated:** [June 27, 2018, 10:05am UTC](https://discourse.processing.org/t/find-the-color-of-a-pixel-relative-to-a-new-origin-after-translating-and-rotating/1298 "2018-06-27T10:05:16Z")

</div>

After translating and rotating and attempting to use get(0,0) to find the color value of the point at the NEW origin, I am simply returned the value of the very top left pixel, regardless of these transformations and rot…

---

## [Help with calling the parent file](https://discourse.processing.org/t/help-with-calling-the-parent-file/1202)

<div class="topic-metadata">

**Author:** [@helplouis](https://discourse.processing.org/u/helplouis)\
**Replies:** 1\
**Last updated:** [June 27, 2018, 12:02am UTC](https://discourse.processing.org/t/help-with-calling-the-parent-file/1202 "2018-06-27T00:02:18Z")

</div>

Hi, currently trying to make meme soundboard, and I’m trying to create a array of the sound classes whilst using the processing sound library. So my question for any good samaritan willing to plead for my cause is how ca…

---

## [Detect Motion - Moving object with camera input](https://discourse.processing.org/t/detect-motion-moving-object-with-camera-input/1182)

<div class="topic-metadata">

**Author:** [@brunofontainha](https://discourse.processing.org/u/brunofontainha)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 1:44pm UTC](https://discourse.processing.org/t/detect-motion-moving-object-with-camera-input/1182 "2018-06-26T13:44:43Z")

</div>

Hi, i would like to have the camera position at one corner and moving an object from left-right and right-left in the middle of the screen. However i struggling to manage not having at the top a full line with the came…

---

## [G4P changing size of dropList Button](https://discourse.processing.org/t/g4p-changing-size-of-droplist-button/1153)

<div class="topic-metadata">

**Author:** [@Sonia](https://discourse.processing.org/u/Sonia)\
**Replies:** 11\
**Last updated:** [June 26, 2018, 9:08am UTC](https://discourse.processing.org/t/g4p-changing-size-of-droplist-button/1153 "2018-06-26T09:08:59Z")

</div>

Hello Is ther a way to change the size of the dropList Button please in G4P libraire? I would like to use it on a tactile screen and the button is very to small for easy touch. Thanks for your help ! Sonia

---

## [Help with code project](https://discourse.processing.org/t/help-with-code-project/1219)

<div class="topic-metadata">

**Author:** [@Jewlz0205](https://discourse.processing.org/u/Jewlz0205)\
**Replies:** 4\
**Last updated:** [June 26, 2018, 9:03am UTC](https://discourse.processing.org/t/help-with-code-project/1219 "2018-06-26T09:03:19Z")

</div>

Hello! My teacher asked us to do a simple wind chill calculation and have our code run to the display window along with a string of text. I feel like all of my calculations are correct, however, I could really use some t…

---

## [Png image question](https://discourse.processing.org/t/png-image-question/1243)

<div class="topic-metadata">

**Author:** [@Nano](https://discourse.processing.org/u/Nano)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 5:51am UTC](https://discourse.processing.org/t/png-image-question/1243 "2018-06-26T05:51:31Z")

</div>

How to read the position of the opaque area on the ‘png’ image? the alpha() function? void mkey() { for (int i = 0; i\<img.width; i++) { for (int j = 0; j\<img.height; j++) { int index = i+j\*img.width; color col = im…

---

## [Feeling ambitious!](https://discourse.processing.org/t/feeling-ambitious/1098)

<div class="topic-metadata">

**Author:** [@Carmine](https://discourse.processing.org/u/Carmine)\
**Replies:** 7\
**Last updated:** [June 26, 2018, 5:48am UTC](https://discourse.processing.org/t/feeling-ambitious/1098 "2018-06-26T05:48:40Z")

</div>

I’ve been using Unity3D for years. I have games in the various app stores and one on Steam. I just got into Processing. I’m going to be using it to teach artists/designers who wan to learn programming. Anyway… I want t…

---

## [PostgreSQL user needs guidance in building sql-library-processing](https://discourse.processing.org/t/postgresql-user-needs-guidance-in-building-sql-library-processing/1268)

<div class="topic-metadata">

**Author:** [@erictheise](https://discourse.processing.org/u/erictheise)\
**Replies:** 0\
**Last updated:** [June 26, 2018, 5:14am UTC](https://discourse.processing.org/t/postgresql-user-needs-guidance-in-building-sql-library-processing/1268 "2018-06-26T05:14:11Z")

</div>

Three years ago a user posted about a problem with single quotes in the PostgreSQL driver. I’ve hit the same problem – is the intersection of Processing and PostgreSQL really just two users? – and twelve days ago created…

---

## [Coding Landmarks displaying info](https://discourse.processing.org/t/coding-landmarks-displaying-info/1256)

<div class="topic-metadata">

**Author:** [@Radccoon](https://discourse.processing.org/u/Radccoon)\
**Replies:** 3\
**Last updated:** [June 26, 2018, 3:38am UTC](https://discourse.processing.org/t/coding-landmarks-displaying-info/1256 "2018-06-26T03:38:23Z")

</div>

I’m trying to code some landmarks, (as shown in the image) but when you put the cursor on top of the landmark displays some info. So far I manage to create this. But I just can’t figure out how to do what I want. Can …

---

## [Texture transparency problem with P3D for Doom clone](https://discourse.processing.org/t/texture-transparency-problem-with-p3d-for-doom-clone/641)

<div class="topic-metadata">

**Author:** [@luxregina](https://discourse.processing.org/u/luxregina)\
**Replies:** 5\
**Last updated:** [June 26, 2018, 1:53am UTC](https://discourse.processing.org/t/texture-transparency-problem-with-p3d-for-doom-clone/641 "2018-06-26T01:53:08Z")

</div>

Hello everyone! I’m currently coding a “Doom” clone, using P3D. I’m not using any external library. I’m having a weird artifact that happens when I’m using a masked texture. I’ve tried several methods to fix it, but to…

---

## [Radio waves animation](https://discourse.processing.org/t/radio-waves-animation/1135)

<div class="topic-metadata">

**Author:** [@deanomite](https://discourse.processing.org/u/deanomite)\
**Replies:** 11\
**Last updated:** [June 26, 2018, 1:45am UTC](https://discourse.processing.org/t/radio-waves-animation/1135 "2018-06-26T01:45:56Z")

</div>

Hi guys, I’m trying to code this radio waves animation. I want each circle to fade off towards the end of its cycle so that the opacity change is staggered. Right now, all the circles fade off together which is not the …

---

## [Run function on 'Close'](https://discourse.processing.org/t/run-function-on-close/1228)

<div class="topic-metadata">

**Author:** [@madscientist](https://discourse.processing.org/u/madscientist)\
**Replies:** 1\
**Last updated:** [June 25, 2018, 1:39am UTC](https://discourse.processing.org/t/run-function-on-close/1228 "2018-06-25T01:39:55Z")

</div>

OK, so I’m trying to create an app where the user is prompted to save when the red ‘X’ a.k.a. the ‘Close’ button is clicked, but I can’t figure out how to run a function when that is clicked. I DO know how to prevent the…

---

## [Need help understanding the shuffle cards method](https://discourse.processing.org/t/need-help-understanding-the-shuffle-cards-method/1247)

<div class="topic-metadata">

**Author:** [@ProcessingPro](https://discourse.processing.org/u/ProcessingPro)\
**Replies:** 3\
**Last updated:** [June 25, 2018, 6:13pm UTC](https://discourse.processing.org/t/need-help-understanding-the-shuffle-cards-method/1247 "2018-06-25T18:13:16Z")

</div>

I don’t understand the //shuffle cards thing. //assigning values to each card in the grid int\[\] values = new int\[20\]; for (int i=0; i\<icons.length; i++) { icons\[i\] = loadImage(filename\[i\]); values\[2\*i\] = i; …

---

## [Well scoped variables each draw vs global variables](https://discourse.processing.org/t/well-scoped-variables-each-draw-vs-global-variables/1242)

<div class="topic-metadata">

**Author:** [@cuI6QV0SphbBeN9E](https://discourse.processing.org/u/cuI6QV0SphbBeN9E)\
**Replies:** 11\
**Last updated:** [June 25, 2018, 3:23pm UTC](https://discourse.processing.org/t/well-scoped-variables-each-draw-vs-global-variables/1242 "2018-06-25T15:23:27Z")

</div>

I understand the difference between global variables and locally-scoped variables each draw. If I’m going to use a variable only inside draw (or keyPressed, or any function), good programming practice dictates that it i…

---

## [Arduino to Processing // Reading data from sensors to control video output](https://discourse.processing.org/t/arduino-to-processing-reading-data-from-sensors-to-control-video-output/1223)

<div class="topic-metadata">

**Author:** [@Lula](https://discourse.processing.org/u/Lula)\
**Replies:** 4\
**Last updated:** [June 25, 2018, 11:52am UTC](https://discourse.processing.org/t/arduino-to-processing-reading-data-from-sensors-to-control-video-output/1223 "2018-06-25T11:52:49Z")

</div>

Hi there! :slight\_smile: I’m very new to Processing and am currently working on an interactive, Uni project and was wondering if anyone could please help me. : ) Usng FSR and Piezo sensors, I would like to transfer dat…

---

## [Use a class declared as .pde in a .java file](https://discourse.processing.org/t/use-a-class-declared-as-pde-in-a-java-file/1237)

<div class="topic-metadata">

**Author:** [@Manuel](https://discourse.processing.org/u/Manuel)\
**Replies:** 3\
**Last updated:** [June 25, 2018, 11:46am UTC](https://discourse.processing.org/t/use-a-class-declared-as-pde-in-a-java-file/1237 "2018-06-25T11:46:20Z")

</div>

Hi, I’m using a .java file to contain an enum with extended variables an behaviours, but I want it to contain an object of one of the classes contained in a .pde file, however the compiler says that that class does not e…

---

## [PGraphics and PApplets](https://discourse.processing.org/t/pgraphics-and-papplets/1227)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 6\
**Last updated:** [June 25, 2018, 10:16am UTC](https://discourse.processing.org/t/pgraphics-and-papplets/1227 "2018-06-25T10:16:25Z")

</div>

Hello. Im trying to do a preview output of main buffer Graphic in a extra pApplet. Here my code: layerWindow p; LayerManager layer; void settings(){ size(1280, 720, P3D); } void setup(){ p = new layerWindow(); l…

---

## [Try catch with serial](https://discourse.processing.org/t/try-catch-with-serial/1148)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 5\
**Last updated:** [June 25, 2018, 9:49am UTC](https://discourse.processing.org/t/try-catch-with-serial/1148 "2018-06-25T09:49:04Z")

</div>

Hi, I’m using an arduino that I plugged after my program is running. I would like, if there is a problem that my app doesn’t crash. I think to use this : try { Serial serial = new Serial(this, "/dev/ttyACM0", 1920…

---

## [How to export a sketch as .exe](https://discourse.processing.org/t/how-to-export-a-sketch-as-exe/1233)

<div class="topic-metadata">

**Author:** [@prasad](https://discourse.processing.org/u/prasad)\
**Replies:** 4\
**Last updated:** [June 25, 2018, 8:47am UTC](https://discourse.processing.org/t/how-to-export-a-sketch-as-exe/1233 "2018-06-25T08:47:49Z")

</div>

i need to create a .exe of my project to run independently of processing environment. How do i do it.

---

## [Processing to Arduino to Neopixels communication problems](https://discourse.processing.org/t/processing-to-arduino-to-neopixels-communication-problems/1210)

<div class="topic-metadata">

**Author:** [@mhol](https://discourse.processing.org/u/mhol)\
**Replies:** 5\
**Last updated:** [June 25, 2018, 3:34am UTC](https://discourse.processing.org/t/processing-to-arduino-to-neopixels-communication-problems/1210 "2018-06-25T03:34:24Z")

</div>

Hello! I’m trying change the intensity of my Neopixels with a string of values from processing. Setup is pretty simple - 15 Neopixels wired to Arduino Uno. Signal on pin 6. I’m sending a string of 16 characters from pr…

---

## [Point "over" object (inside to push ans pop matrix)](https://discourse.processing.org/t/point-over-object-inside-to-push-ans-pop-matrix/1224)

<div class="topic-metadata">

**Author:** [@ferrari](https://discourse.processing.org/u/ferrari)\
**Replies:** 3\
**Last updated:** [June 25, 2018, 3:26am UTC](https://discourse.processing.org/t/point-over-object-inside-to-push-ans-pop-matrix/1224 "2018-06-25T03:26:12Z")

</div>

Hello, I need to detect when a point is over an object (mouse, for example), but this object was previously moved, rotated and scaled inside to pushMatrix() and popMatrix() Any idea or suggestion is welcome and appreci…

---

## [How to add groupCanvas to accordion in controlP5?](https://discourse.processing.org/t/how-to-add-groupcanvas-to-accordion-in-controlp5/1169)

<div class="topic-metadata">

**Author:** [@newton45](https://discourse.processing.org/u/newton45)\
**Replies:** 0\
**Last updated:** [June 22, 2018, 1:50pm UTC](https://discourse.processing.org/t/how-to-add-groupcanvas-to-accordion-in-controlp5/1169 "2018-06-22T13:50:35Z")

</div>

I want to create canvas and draw something in the group, and I also want to make these group to shrink and arrange like “Accordion” class. But these too seems can’t work together. Is there any other way to make it work? …

---

## [Calculating the distance of a vertex from the center of a "Perlin Noisy" sphere](https://discourse.processing.org/t/calculating-the-distance-of-a-vertex-from-the-center-of-a-perlin-noisy-sphere/1157)

<div class="topic-metadata">

**Author:** [@UtrimiqueTrebus12](https://discourse.processing.org/u/UtrimiqueTrebus12)\
**Replies:** 2\
**Last updated:** [June 24, 2018, 6:45pm UTC](https://discourse.processing.org/t/calculating-the-distance-of-a-vertex-from-the-center-of-a-perlin-noisy-sphere/1157 "2018-06-24T18:45:48Z")

</div>

I have some weird problems. I would need some help. import peasy.\*; int resolution = 100; float r = 500; float lat,lon; float xoff,yoff; PVector\[\]\[\] globularLandscape; float rangeMin = 0; float rangeMax = 40; PeasyCam …

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

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