# Latest

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

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

**Page:** 612

---

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

---

## [Perspective() in VR mode](https://discourse.processing.org/t/perspective-in-vr-mode/519)

<div class="topic-metadata">

**Author:** [@Nasif](https://discourse.processing.org/u/Nasif)\
**Replies:** 4\
**Last updated:** [June 27, 2018, 2:45pm UTC](https://discourse.processing.org/t/perspective-in-vr-mode/519 "2018-06-27T14:45:08Z")

</div>

Hello everyone! I’m currently working on a VR project in which I am trying to simulate a camera. One of the things I want to simulate is zooming in and out. I first thought simply changing the fov in perspective() was t…

---

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

---

## [LifeCycle callbacks](https://discourse.processing.org/t/lifecycle-callbacks/1305)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 4\
**Last updated:** [June 27, 2018, 11:43am UTC](https://discourse.processing.org/t/lifecycle-callbacks/1305 "2018-06-27T11:43:06Z")

</div>

Just a quick one this… I’m exploring the lifecycle callbacks to gain a better understanding of what is going on, but I can’t call super.onRestart() or super.onCreate() … all others … .super.onStart() …onPause(), etc are…

---

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

---

## [How to make a proper nested for loop for checking each item in an array?](https://discourse.processing.org/t/how-to-make-a-proper-nested-for-loop-for-checking-each-item-in-an-array/1292)

<div class="topic-metadata">

**Author:** [@nothome123](https://discourse.processing.org/u/nothome123)\
**Replies:** 6\
**Last updated:** [June 27, 2018, 7:21am UTC](https://discourse.processing.org/t/how-to-make-a-proper-nested-for-loop-for-checking-each-item-in-an-array/1292 "2018-06-27T07:21:48Z")

</div>

im recreating the asteroids game that the coding train did in processing.py. im in the part of the video when daniel is coding the hit detection of the laser ( i named them bullets) to the asteroids. but when i try to do…

---

## [To change the object shape characteristics](https://discourse.processing.org/t/to-change-the-object-shape-characteristics/1259)

<div class="topic-metadata">

**Author:** [@online](https://discourse.processing.org/u/online)\
**Replies:** 4\
**Last updated:** [June 27, 2018, 4:50am UTC](https://discourse.processing.org/t/to-change-the-object-shape-characteristics/1259 "2018-06-27T04:50:59Z")

</div>

Hi. Please tell me how to make the figure of the object and clicking on it with the mouse to change its characteristics ? In the documentation there is an example, but there is a mouse click focused on the position of th…

---

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

---

## [Updating a text file](https://discourse.processing.org/t/updating-a-text-file/1265)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 2:09pm UTC](https://discourse.processing.org/t/updating-a-text-file/1265 "2018-06-26T14:09:28Z")

</div>

So I am trying to make a scoreboard. I have done it before in regular processing, but I have just now realized that with p5js, it downloads the file rather than saving it to a folder, which I guess makes sense. So is the…

---

## [Notification builder](https://discourse.processing.org/t/notification-builder/1101)

<div class="topic-metadata">

**Author:** [@basher24](https://discourse.processing.org/u/basher24)\
**Replies:** 12\
**Last updated:** [June 26, 2018, 1:59pm UTC](https://discourse.processing.org/t/notification-builder/1101 "2018-06-26T13:59:29Z")

</div>

I built an android app that gets a message from a server and pass it to the notification … every thing work wonderful … when i close the app (shutdown) … i stop getting the notification … how can i make my app working …

---

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

---

## [Drop() function working randomly](https://discourse.processing.org/t/drop-function-working-randomly/1244)

<div class="topic-metadata">

**Author:** [@colin](https://discourse.processing.org/u/colin)\
**Replies:** 6\
**Last updated:** [June 26, 2018, 9:08am UTC](https://discourse.processing.org/t/drop-function-working-randomly/1244 "2018-06-26T09:08:42Z")

</div>

Hi. I’m definitely having trouble to make my drag and drop function working. The sketch below grabs the image from the user but don’t manage to save it as a p5 image every time. I’m around 33% successful drops. Any idea…

---

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

---

## [Raspberry PI OS Builder](https://discourse.processing.org/t/raspberry-pi-os-builder/1257)

<div class="topic-metadata">

**Author:** [@madscientist](https://discourse.processing.org/u/madscientist)\
**Replies:** 3\
**Last updated:** [June 25, 2018, 10:57pm UTC](https://discourse.processing.org/t/raspberry-pi-os-builder/1257 "2018-06-25T22:57:37Z")

</div>

I had an Idea for a raspberry pi os builder, like there’s a gui, and the user drags and drops parts of a system to build an Operating System that can then be exported and run on a raspberry pi. Any Ideas how to do this o…

---

## [Help with scrolling in android](https://discourse.processing.org/t/help-with-scrolling-in-android/1254)

<div class="topic-metadata">

**Author:** [@helplouis](https://discourse.processing.org/u/helplouis)\
**Replies:** 2\
**Last updated:** [June 25, 2018, 10:01pm UTC](https://discourse.processing.org/t/help-with-scrolling-in-android/1254 "2018-06-25T22:01:19Z")

</div>

Hi, I want to make a scroller in this app im working on but i dont want a scrolling bar, just to touch and drag like in most apps. How would I go about to do this ? pls help Alternatively, how can I detect which directi…

---

## [Getting raspberry pi sensors to talk to p5.js](https://discourse.processing.org/t/getting-raspberry-pi-sensors-to-talk-to-p5-js/1156)

<div class="topic-metadata">

**Author:** [@alphydan](https://discourse.processing.org/u/alphydan)\
**Replies:** 4\
**Last updated:** [June 25, 2018, 9:29pm UTC](https://discourse.processing.org/t/getting-raspberry-pi-sensors-to-talk-to-p5-js/1156 "2018-06-25T21:29:42Z")

</div>

Question: What is the best way to get real time data from the Raspberry to influence a p5.js drawing? Context: I am running a coding + art project as a school teacher (With students aged 11 - 15). We have a couple of r…

---

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

---

## [How to redraw while in another method?](https://discourse.processing.org/t/how-to-redraw-while-in-another-method/1222)

<div class="topic-metadata">

**Author:** [@benjaminnow](https://discourse.processing.org/u/benjaminnow)\
**Replies:** 8\
**Last updated:** [June 25, 2018, 4:52pm UTC](https://discourse.processing.org/t/how-to-redraw-while-in-another-method/1222 "2018-06-25T16:52:16Z")

</div>

I’m making a programming game for kids to learn to program using processing and python. It involves a wombat which picks up leaves in tiles and there may be some obstacles like rocks. This might be familiar to you if you…

---

## [P5.js communicating bubbles](https://discourse.processing.org/t/p5-js-communicating-bubbles/1201)

<div class="topic-metadata">

**Author:** [@anand](https://discourse.processing.org/u/anand)\
**Replies:** 8\
**Last updated:** [June 25, 2018, 3:51pm UTC](https://discourse.processing.org/t/p5-js-communicating-bubbles/1201 "2018-06-25T15:51:09Z")

</div>

I am rewriting my question on P5.js. The same I had asked on this video\[https://youtu.be/5Q9cA0REztY\] and Dan suggested me to post here. I tried to do the same example myself. I was able to achieve many things except on…

---

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

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

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